Game Development Community

Void GuiTextEditSliderCtrl::setValue() should call onAction()

by Mark Harmon · in Torque Game Engine · 01/23/2004 (9:49 pm) · 4 replies

Just add onAction() as the last function call of void GuiTextEditSliderCtrl::setValue()

Otherwise command never gets called.

#1
01/23/2004 (11:26 pm)
Is this desirable behavior?
#2
01/25/2004 (10:21 pm)
It is if you want the changing of the GuiTextEditSlider to call the command member's script. So when I change number of nodes from 6 to 5 it triggers the update of the filter's number of control nodes.

It seems like a bug because garage game's code is assuming it works the way I described above.
#3
01/25/2004 (10:45 pm)
Wild... I'll see what I can do. If you want a faster resolution, mail me a link to this thread - my mail client is my todo list. :)
#4
01/29/2004 (12:02 am)
I agree with Mark, I've done the same thing (add onAction()) so the slider updates the script value in real time.