Problem description: So I want to drag an item from inventory but instead of using interface grids i have a pop out hud that i want to drag it to, how could i work that location?
Aug 13 2016, 4:56 pm
|
|
Did you check the DM Reference entry for "MouseDrop proc"?
|
i did but i didnt really understand how i could specify for it to drop over a certain icon on my hud
|
When a client drags and drops an object onto something, the engine calls client.MouseDrop(object, etc.), which by default calls object.MouseDrop(etc.). You can override one of those in order to add "on mouse drop" behavior.
Here's the part of the DM guide on about procs and overriding: http://www.byond.com/docs/guide/chap06.html If you have your code set up so that all items derive from some base /obj/item type: obj/item |