Game Development Community

Check if a gui is pushed.

by BryceSquared · in Torque 3D Professional · 01/13/2010 (4:36 am) · 2 replies

I have a function in the onWake function for my loot gui. I want to do something like this.

function getLoot(%container)
{
   if(LootMenu.isPushed)
   {
      //close it
   }
   //open it
}

Is there a built in function like this already?

#1
01/13/2010 (5:17 am)
The method isAwake() checks to see if the control is currently "awake", which basically translates to is it a member of the Canvas.
function getLoot(%container)
{
   if(LootMenu.isAwake())
   {
      //close it
   }
   //open it
}
#2
01/13/2010 (5:34 am)
awesome, thanks Phil