Game Development Community

TGE 1.5 and GUI problem

by Andrea Fraboni · in Torque Game Engine · 02/04/2007 (11:41 am) · 5 replies

When I modify PlayGui.gui by GUI Editor [F10] and I save it ..... when I relaunch the mod compare the mouse pointer but I can't move the camera in the game WHY ????

The same problem present when I open playgui.gui with Gui Editor and save it without changes !!!

Why ???

With comparison between playgui.gui and new playgui.gui I see that the editor adds new parameters WHY ?

Help me please !!!

Thanks to All

bye

#1
02/04/2007 (11:44 am)
How are you modifying it , what parameters are being added?
#2
02/04/2007 (12:28 pm)
OK

I see that I resolve the problem with :

new GameTSCtrl(PlayGui) {

canSaveDynamicFields = "1";

Profile = "GuiContentProfile";

........................................................

;-)
#3
02/04/2007 (2:49 pm)
Hmm...thats odd - I've come across the same problem you've mentioned before, and the solution has been to ensure that I have the following in the GUI:

noCursor=true;

In my playGUI, I actually have

canSaveDynamicFields = "0";

Interesting...

--Amr
#4
02/05/2007 (9:24 am)
Yes ..... I think yes

good

thank you

;-)
#5
02/06/2007 (6:33 am)
Well, I attempted the fix... However, when I attempted to restart, My mouse problem still exsisted...

All I modified was the Health Bar, and blue bar in appearance, size and shape...

(WARNING: I have no practical experiance in scripting. Only basic working knowlage of basic, and trying to learn tg code...)

Added to playGui:
noCursor=true;

And changed
canSaveDynamicFields = "0";
to
canSaveDynamicFields = "1";

Still to no effect on regaining mouse control in game...
----------------------Add Edit-----------------------------------------------
Good News...
When adding

noCursor=true;

place in the section

new GameTSCtrl(PlayGui) {

then restart... Compleate restart of the game. Then it should work fine :D