Multiple Language GUI
by Lexi Pimenidis · in Torque Game Engine · 11/25/2002 (2:20 am) · 2 replies
Hi!
I'm trying to create a GUI with support for multiple
languages by assigning the texts by a
function GetText(%textid) which utilizes a global variable $pref::language, "text = GetText(12);"
Unfortunately it seems like all controls get their text once and it then remains stationary, is there the possibility to write a simple loop which replaces the text for all controls?
Thanks!
I'm trying to create a GUI with support for multiple
languages by assigning the texts by a
function GetText(%textid) which utilizes a global variable $pref::language, "text = GetText(12);"
Unfortunately it seems like all controls get their text once and it then remains stationary, is there the possibility to write a simple loop which replaces the text for all controls?
Thanks!
Alex "IkoTikashi" Zappe
new GuiButtonCtrl(StartButton) {
[blablabla]
text = "Start Game!";
};
Then in the same .GUI file I have a function
function MyGUI::onWake()
{
StartButton.text = "Test";
}
Hope that helps ! ;)