Mouse control on InventryGUI....
by Ironbelly Studios · in General Discussion · 12/09/2008 (11:57 pm) · 2 replies
Hi all,
I am very new to TGE 1.4. I want to have a mouse control on InventoryGUI.
I have had all the keyboard control on the InventoryGUI.
All the files like .......
InventoryGui.gui,
InventoryGui.cs,
guiDragDropButtonCtrl.cc,
guiDragDropButtonCtrl.h are in the proper places.
Now what kind of implementation would I go for
and where ?? So that I can drop items from the InventoryGUI
by dragging it out . So say you drag it out to the top of the
screen and let go, it would fly hard and high, if you dragged it to
the bottom it would be thrown at their feet.
Please suggest some.
Lots of thanks in advanced.
I am very new to TGE 1.4. I want to have a mouse control on InventoryGUI.
I have had all the keyboard control on the InventoryGUI.
All the files like .......
InventoryGui.gui,
InventoryGui.cs,
guiDragDropButtonCtrl.cc,
guiDragDropButtonCtrl.h are in the proper places.
Now what kind of implementation would I go for
and where ?? So that I can drop items from the InventoryGUI
by dragging it out . So say you drag it out to the top of the
screen and let go, it would fly hard and high, if you dragged it to
the bottom it would be thrown at their feet.
Please suggest some.
Lots of thanks in advanced.
About the author
#2
yeah, I have done the search.. But the thing is I don't know where to implement those
codes, means in which .cs or .cc or .h or .gui.
I got my Inventory right as I wanted. But I couldn't drag-drop those items from
Inventory GUI to the canvas GUI by using Mouse. On inventory, mouse is working fine, like droppedupon
from one slot to an another.
So say you drag it out to the top of the
screen and let go, it would fly hard and high, if you dragged it to
the bottom it would be thrown at their feet.
So please suggest me how to drag an Item from Inventory GUI and drop it to the Canvas GUI..
Do I have to go for some other interfaces between 2 GUI(INVENTORY and CANVAS)??
12/12/2008 (12:35 am)
Thanks Timothyyeah, I have done the search.. But the thing is I don't know where to implement those
codes, means in which .cs or .cc or .h or .gui.
I got my Inventory right as I wanted. But I couldn't drag-drop those items from
Inventory GUI to the canvas GUI by using Mouse. On inventory, mouse is working fine, like droppedupon
from one slot to an another.
So say you drag it out to the top of the
screen and let go, it would fly hard and high, if you dragged it to
the bottom it would be thrown at their feet.
So please suggest me how to drag an Item from Inventory GUI and drop it to the Canvas GUI..
Do I have to go for some other interfaces between 2 GUI(INVENTORY and CANVAS)??
Torque Owner Timothy Castagna
TK Games LLC