Game Development Community

Trouble with the gui

by Bill Henderson · in Torque Game Engine · 03/13/2002 (3:38 pm) · 4 replies

Is it something I am doing wrong or what!
I am trying to get a slider gui object's value to reflect a number typed into a textedit box.

The error is in this line of code:
%slider.setScriptValue(%textbox.getText());
Its says that setScriptValue and getText are not valid commands.

#1
03/13/2002 (4:45 pm)
try this

%slider.setValue();

:)
#2
03/13/2002 (4:46 pm)
well turns out its not setScriptValue but setValue, even though in the code it says setScriptValue.
getText still doesnt work though.
Does anyone know why?

(Whoa beat me to the post by 1 min)
#3
03/13/2002 (5:08 pm)
AAAA!
Turns out its not getText but getValue!
Odd thing is is that getValue isnt in the code but getText is.
#4
03/14/2002 (1:52 am)
I can relate to your woes.

The first time I really started playing with GUI elements I took serious thought into actually shooting my monitor ... just to teach it a lesson.

Good luck.