ID:33630
 
That title sounds weird, but well the new elements in Byond are called "Child elements" so I guess that is the proper plural?

If you feel like looking at messy, buggy, un-commented code, I have just the thing for you: my late night, half-awake attempt at a container system using panes and grids. Feel free to take it and do what you will with it. I don't need to hear about the bugs though, I probably already know about them. That is unless you also plan on fixing them.

Here was what I was trying to accomplish:
--Click and Drag inventory
--The ability to open and close bags that are in your inventory. (pick up a bag and double click it)
--The ability for bags to reduce the weight of the items inside of them. (which was why I choose to have a proc that re-scans the inventory/bag every time instead of just adding and subtracting the weight. (this doesn't work right now))
--Experiment with the new features.


NOTE: This was in no way an attempt to make a good looking skin. Just to make it work...sort of. So beware of ugly icons and the such.

Here is the link:
I suggest running it before you look at the code.
http://members.byond.com/Drumersl/files/Inventory_src.zip
[Edit] Try the new inventory file under my files.