Wow... both texts drawn! I have no Idea why!
Posted: Thu Jul 31, 2008 11:57 pm
I have two texts which i want to be shown, but one at time!
I have a bool, and if is true, i want 'text one' to be shown, if false i want "text two" to replace text one.
what's wrong??
Thanks in advance!
Sorry my english and my noobness:D hehe
I have a bool, and if is true, i want 'text one' to be shown, if false i want "text two" to replace text one.
what's wrong??
Code: Select all
if (variable == true)
{
textvar=device->getGUIEnvironment()->addStaticText(L"text one",pos);
}
else
if (variable == false)
{
textvar=device->getGUIEnvironment()->addStaticText(L"text two",pos);
}
Sorry my english and my noobness:D hehe