GuiCheckBoxCtrl assistance, please.
by Nathan Huffman · in Torque Game Engine · 06/12/2006 (2:13 pm) · 2 replies
Hey, gents. Maybe you can help me figure this one out?
Using Torque 1.4 w/ TLK, I've added a GuiCheckBoxCtrl to my interface and set it's "command" to be:
Echo("Test Echo");
...for testing purposes.
When I check the box, it echos twice. When I uncheck the box, it echos twice. Well, this is making it a pain in the rear when I set the command to be something like function ToggleWhatever(), because it's changing whatever's setting then changing it right back!
Could someone help me find out why GuiCheckBoxCtrl is calling it's "command" twice?
Using Torque 1.4 w/ TLK, I've added a GuiCheckBoxCtrl to my interface and set it's "command" to be:
Echo("Test Echo");
...for testing purposes.
When I check the box, it echos twice. When I uncheck the box, it echos twice. Well, this is making it a pain in the rear when I set the command to be something like function ToggleWhatever(), because it's changing whatever's setting then changing it right back!
Could someone help me find out why GuiCheckBoxCtrl is calling it's "command" twice?
#2
Anyways, thanks Josh hehe :)
06/12/2006 (2:47 pm)
Hehe, yeah I came to the same solution just before re-checking my thread. Weird.Anyways, thanks Josh hehe :)
Torque Owner Josh Moore
www.garagegames.com/mg/forums/result.thread.php?qt=45792
Edit: Pretty funny that we both posted new threads on the same issue at the exact same time(Jun 12, 2006 14:31).