Game Development Community

1.5 gui playGui.cs

by mb · in Torque Game Engine · 11/20/2006 (10:30 pm) · 1 replies

The 1.5 gui editor changes my playgui.gui:

1. I copied playGui.gui from starter.fps (from 1.4).
2. I added a guiTextCtrl & named it ScoreCounter like in the starter tutorial
3. I saved the gui.
4. I exited the game, then loaded it again and now I have a cursor on the screen and cant move my player.

I used winMerge to check the differences in the two files.

The original playGui looked like:

new GameTSCtrl(PlayGui) {
   profile = "GuiContentProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 8";
   visible = "1";
   helpTag = "0";
      noCursor = "1";


The gui I saved, which I only added a text ctrl to, looks like:
new GameTSCtrl(PlayGui) {
   canSaveDynamicFields = "0";
   Profile = "GuiContentProfile";
   HorizSizing = "right";
   VertSizing = "bottom";
   position = "0 0";
   Extent = "640 480";
   MinExtent = "8 8";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";
   applyFilterToChildren = "1";
   cameraZRot = "0";
   forceFOV = "0";


The editor changed the file for some odd reason on its own. Also this happened befor I ever copied the file from 1.4. I copied the other file because the editor messed up my original.

#1
11/20/2006 (11:08 pm)
@mb

This has been the source of some annoyance for me as well. It's been mentioned quite a bit on the boards since 1.5 was released. It's a bug, and you have to add "noCursor = "1";" to the .gui file every time you make a change to your PlayGui.

:(