Changing gui profile in code
by James Laker (BurNinG) · in Torque Game Engine · 05/10/2007 (9:30 am) · 2 replies
Hey again
I'm not able to get my Radiobuttons to update their profile.
When I create it, it works fine. But I need to change the profile of some RadioButtons to indicate that they belong to a different team.
I tested that the profiles (guiRadioEnemyProfile and guiRadioAlliesProfile) work.
But as soon I change them in code using:
The disappear never to be seen again.
Is there anything I'm missing? Something I should do afterwards to make it update?
I'm not able to get my Radiobuttons to update their profile.
When I create it, it works fine. But I need to change the profile of some RadioButtons to indicate that they belong to a different team.
I tested that the profiles (guiRadioEnemyProfile and guiRadioAlliesProfile) work.
But as soon I change them in code using:
spawnctrl->setField("profile", "guiRadioEnemyProfile");The disappear never to be seen again.
Is there anything I'm missing? Something I should do afterwards to make it update?
#2
05/10/2007 (9:44 am)
It's fine for you to use James. I use it for a lot of objects, such a precipitation, sun, and sky. Good work =)
Torque Owner James Laker (BurNinG)
Not sure if it's the correct way of doing it, but when I call this it works:
What bothers me is that inspectPostApply is for the Editor? Is it okay for me to use it here?