Checkbox
by Andrei Georgescu · in Torque Game Builder · 07/30/2010 (8:55 am) · 5 replies
Hello! How can I check the checkstate of a CheckBox GUI button please?
I've tried checkbox.value / checkbox.checked.. and more with no success.
I've tried checkbox.value / checkbox.checked.. and more with no success.
#2
07/30/2010 (4:46 pm)
Pff.. thanks.
#3
But for now, I just keep it in mind as a rule of thumb.
07/30/2010 (7:14 pm)
I'd really like to understand why the gui elements need the getter/setter functions and scene objects work fine using dot syntax. But for now, I just keep it in mind as a rule of thumb.
#4
I don't know why "value" wasn't added to the base GuiControl, but since it's not there, you can't use the dot syntax. Well... except for the GuiSliderCtrl because it does add a "value" field. But just ignore that. *GRIN*
07/30/2010 (8:47 pm)
In each scriptable class there can be a static function called "initPersistFields". It sets up the dot syntax getters and setters (which can be direct memory access or redirected through functions).I don't know why "value" wasn't added to the base GuiControl, but since it's not there, you can't use the dot syntax. Well... except for the GuiSliderCtrl because it does add a "value" field. But just ignore that. *GRIN*
Torque Owner RollerJesus
Dream. Build. Repeat.