• Draggable Derma
    5 replies, posted
For my inventory system I need a way to make the item icons drag and droppable, is this currently possible in derma? If so, how? Thank you for the assistance.
If you wanted to code your own system, you could get the mouses [B]local pos[/B] (in relation to the icon's top-left corner) on mouse down, and have a think hook set the icon to the mouses [B]screen pos[/B] minus the [B]local pos[/B], until the mouse button is released. This would have the effect of allowing the icon to be picked up from anywhere and moved. You could then create a snapping system to make it look neater.
It is possible with some work like mentioned above, but there is no easy derma control to do this.
When the 'super update' comes around garry is doing huge amounts of work on GUI/Derma, he has promised us Draggable panels and Panel docks, so just hold tight. So basicly, a panel can be dragged by clicking on it, and dropped (if within range) into a Panel Dock. TF2 Style.
I'm getting more and more exited.
Excited.* not exited. Stay in school, my friend.
Sorry, you need to Log In to post a reply to this thread.