GUI variable fields
by Drew -Gaiiden- Sikora · in Torque Game Builder · 07/13/2005 (10:44 pm) · 2 replies
I have a text edit control in my GUI that holds the player's name. In the "variable" field I have it set to $gameData.playerOne.name:
$gameData = new ScriptObject(gameData);
$gameData.playerOne = new ScriptObject();
$gameData.playerOne.name = "player 1";That's just a condensed version of my $gameData structure obviously. I understood that the "variable" field was used with the GUI control so that when the control was updated it would update whatever variable was specified in the "variable" field. However if I change the text in the edit box and dump() the playerOne data, .name still equals "player 1". What am I missing?
Torque Owner Philip Mansfield
Default Studio Name