ID:139677
 
Code:
obj/MouseDrop(src_object, over_object, src_location, over_location, src_control, over_control)
if(src in usr.contents)
if(src_control == "body_window.grid2")
src.slot = 1
usr.Update_Inventory()
usr.overlays += src.norm_img
src.icon = src.body_img
usr << output("<IMG SRC=\ref[src.icon]>","grid2:1,1")


Problem description:
So I have a game in the making which uses dragging and dropping of objects from your inventory (grid1) to your character window (grid2) to equip items to your character.

I want to move the obj from grid1 and change the icon to the large icon (153x260px) when the obj is dropped onto grid2. Now this works great however to drag n drop it back into my inventory, I can't drag it as it's not an object, it's an icon.

If I move the object itself - usr << output(src,"grid2:1,1") - *which is what I want to do!* then the icon doesn't display in the grid because it's not a 32x32 icon.

Can someone help please?

At present, all grids are limited to displaying either a 16x16 icon or scaling all icons to fit world.icon_size (usually 32x32).
In response to Lummox JR
Thanks for the reply Lummox JR. :)