03-01-2009, 07:04 AM
Can anyone think of a good way to sort items in a visual inventory? I didn't think it'd be that hard, but I was thinking that maybe just dragging an item to an empty slot... Pesudo Code? Actual code?
Dragging to sort Vis Inv
|
03-01-2009, 07:04 AM
Can anyone think of a good way to sort items in a visual inventory? I didn't think it'd be that hard, but I was thinking that maybe just dragging an item to an empty slot... Pesudo Code? Actual code?
03-01-2009, 07:11 AM
Make a picture box to transfer the item's picture onto and have the picture box follow the mouse. On the mousemove event check if a variable set in keydown is true (keyup make it false) and if it is clear the item's picture and move it to the mouse picture box and then on keyup check if in range of another empty item slot or something...not too hard. Dugor programmed it in Mirage Realms.
03-01-2009, 11:52 PM
I surely did do this already.
Just track the slot you moved to the slot you are moving it to. Send a packet with that info then change it server side. Switch the slots and send the info back. |
« Next Oldest | Next Newest »
|