Can someone give me an example of how to use the dragndrop library? There is like zero documentation for it so I have no idea what I'm doing.
It's simple, you don't use dragndrop library.
[url]http://wiki.garrysmod.com/page/Panel/Receiver[/url]
[url]http://wiki.garrysmod.com/page/Panel/Droppable[/url]
Ah thanks that's a huge help. Also I just remembered that Sandbox uses it so I can just look off of there.
Actually I have no idea what I'm doing. Does anyone have any examples of this being used as it doesn't seem to work for me.
You execute Panel:Receiver on the panel that your dragndrop panels must be dropped to ( There can be multiple ) and then you execute Panel:Droppble on only panel that must be pickup-able and dragable by mouse. Note, that receiver name and droppable name must be the same.
Sorry, you need to Log In to post a reply to this thread.