Game Development Community

T3D 1.1 Beta 3 - Gui Editor Saving for GuiCheckBoxCtrl Text

by Nathan Bowhay - ESAL · in Torque 3D Professional · 05/05/2011 (11:30 am) · 3 replies

Build: 1.1 Beta 3 (Possibly other versions as well, it's been around for a while)
Platform: All or N/A? Vista, XP and Windows 7 for sure.
Target: Gui Editor/Gui Saving

Issues:
When you don't want a check box to have text you can set the text to "", but when it is saved since the field is empty then it reverts to the default value of "Button". So when you save the gui you will notice it says text = "Button"; when you want text = "";

Steps to Reproduce:
1. Open gui editor
2. Create a new gui
3. Create a GuiCheckBoxCtrl
4. Set the "Text" field to "" (empty string)
5. Save the gui
6. Open the new gui in a text editor and you will see the Text field for it is button also you can open it in torque and you will notice the text is there.

Suggested Fix(s):
Make default value "".
don't follow the standard empty field for the text variable.

#1
05/05/2011 (4:10 pm)
As a workaround, have you tried setting it to " ", i.e. just whitespace? Also, if you size down the control to just display the checkbox, the text can be pretty much set to anything--it won't display anyway.

Just workarounds but should do the trick.
#2
05/05/2011 (4:18 pm)
Didn't think of the white space. That works. I have actually just been using the re-size trick, it is just a little frustrating and figured I would point it out. Cause it does seem like a bug, although a minor one. And specifically for the text field if you leave it empty (no white space) it should save it with that.
#3
05/05/2011 (4:23 pm)
Agree. That'd be the proper behavior.