Getting the gui control under a gui control :)
by Chris "Dark" Evans · in Torque Game Engine · 08/26/2001 (5:46 am) · 0 replies
How can get the gui control that is under another gui control? I'm not talking about a child getting a parent.
I'm making an RPG and right now I'm working on the inventory system. It's going to be a grid like Diablo 2 and most other RPG's.
I'm using a modified bitmap control. Whatever image it has it will tile, then it snaps into position depending on how big it is so it doesn't cut off any of the tiles. It makes a nice grid.
I'm going to use another modified bitmap control to represent the items a player has. I want it to snap into place when it's in the right position, over the grid. I can do that easily, as long as I know what the grid is.
I can't make the item bitmap a child because it needs to be able to drag to another, different grid.
I'm going to bed now. When I get Up I'm going to screw with the onMouseMove code to see if I can get it to work. I'll probably have to make an array.
Dark
I'm making an RPG and right now I'm working on the inventory system. It's going to be a grid like Diablo 2 and most other RPG's.
I'm using a modified bitmap control. Whatever image it has it will tile, then it snaps into position depending on how big it is so it doesn't cut off any of the tiles. It makes a nice grid.
I'm going to use another modified bitmap control to represent the items a player has. I want it to snap into place when it's in the right position, over the grid. I can do that easily, as long as I know what the grid is.
I can't make the item bitmap a child because it needs to be able to drag to another, different grid.
I'm going to bed now. When I get Up I'm going to screw with the onMouseMove code to see if I can get it to work. I'll probably have to make an array.
Dark