Game Development Community

GUI Button Hilight

by Howard Dortch · in Torque Game Engine · 04/24/2005 (5:52 am) · 2 replies

In my dialog sequence to put a player in the game I have a series of selections for skin, weapon etc. I have back buttons set up to bail out of a dialog and return to main or last one selected. When I return to some of the other dialogs in the sequence the last button that was pressed on a previous dialog is still selected or lit up until I hover the mouse over it and back off.
So the question is what method can I or should I use to open a dialog with all buttons set to a normal state?

#1
04/24/2005 (7:54 am)
I have the same problem also. i just never bothered to fix it.

i think it has something to do with a dialog having no chunked bitmapp in the bakground.

i could be completly wrong but thats what i think.
#2
04/24/2005 (8:30 am)
I guess I will dig into engine code, seems when you pop the dialog there should be a "destructor" (for lack of a better word) mechanism to reset all elements to a normal state for buttons. Seems it just gets closed with current state and when reopened it sets the state for current settings. I figured there was some call like getContent() or some such to get any active or hovered states and render accordingly. I could go through every button in the dialog and manually set the buttons normal but thats reallllly ugly.