Shunpo
icon_state = ""
MouseDrag(src_object,over_object,src_location,over_location,src_control,over_control,params)
var/icon/I = new(src.icon,src.icon_state)
mouse_drag_pointer = I
MouseDrop(over_object,src_location,over_location, src_control,over_control,params)
usr<<"test"
if(istype(over_object,/obj/HUDS/))
usr<<"testtrue"
for(var/obj/HUDS/J in over_object)
usr<<"testtrusdsae"
Problem description:
it knows what its being dragged onto, but i want it to add an overlay of its self to the hud. any help
The reference on MouseDrop elaborates on the different arguments the proc takes.
over_control: The id of the skin control the object was dropped onto
If you compare the explanation on what over_control is with what you thought it would be, do you realize something?
Agrey123 wrote:
You seem to have a serious misunderstanding between object type and object instance.
Edit:
I just saw the 'over_object=src' part.
That is something you might want to reconsider and reread on as well.