Gui Help
by Walker Twyman · in Torque Game Engine · 11/27/2007 (9:50 am) · 4 replies
I am sure this is a relatively simple question. I'm just playing around with PlayGUI. I moved the health and energy bars, set sizing to relative. Everything looked great to me. I saved and quit my game. Started it back up a few minutes later after making NO changes at all to the game (I was going to do some mapping). Now I have an arrow on my screen and cannot control my player. I really don't know how to remove it and I'd like some help. Replacing the old PlayGUI fixes this problem. ANY editing I do to the PlayGUI causes it to happen again. Help would be MUCH appreciated.
About the author
#2
11/27/2007 (10:13 am)
Thanks for the reply. Nocursor didn't work. I'm on torque 1.5. Any other ideas?
#3
I'd double-check the client/ui/playGui.gui file and look for ANY noCursor in the file. Make sure all of them in the Play GUI are set to 0. I'd then check any popups that you might be showing (although it sounds like you've not done anything like that). After that, I'd be at a loss.
Good luck!
11/27/2007 (11:19 am)
That is usually the problem. Whenever a GUI is added, pushed, or whatever to the screen, Torque iterates through all of the controls and popups seeing any of them have the noCursor variable set to 0. If any one of them do then it turns the cursor on (which on the Play GUI causes the mouse to not control the character).I'd double-check the client/ui/playGui.gui file and look for ANY noCursor in the file. Make sure all of them in the Play GUI are set to 0. I'd then check any popups that you might be showing (although it sounds like you've not done anything like that). After that, I'd be at a loss.
Good luck!
#4
11/27/2007 (12:21 pm)
I don't even have nocursor in there. It's really throwing me for a loop. Well, I think it is something the editor is doing. I have NO trouble editing the script manually. I still wish I could use the editor. I guess I'll have to use the editor to move the stuff and get coordinates. Then, export all that into my other file >_<. I find the GUI editor is quite lacking though compared to the mission editor. Oh well.
Associate William Lee Sims
Machine Code Games
noCursor = "0";
Change this to
noCursor = "1";
and you'll be back in business.