Game Development Community

RC3: Build Project- inserts Level Control widget

by Alex Rice · in Torque Game Builder · 06/17/2006 (7:22 am) · 5 replies

After I built my project, I launched it and up in the top left corner there is some artifact from the "Level Control" of the Level Builder.

#1
06/17/2006 (7:25 am)
This stuff:

new GuiStackControl(LBPlayWindowCtrlStack) {
         StackingType = "Horizontal";
         HorizStacking = "Left to Right";
         VertStacking = "Top to Bottom";
         Padding = "4";
         canSaveDynamicFields = "0";
         Profile = "EditorButtonRight";
         HorizSizing = "right";
         VertSizing = "bottom";
         position = "0 0";
         Extent = "123 24";
         MinExtent = "24 24";
         canSave = "1";
         Visible = "1";
         hovertime = "1000";

         new GuiTextCtrl(LBPlayWindowToolbarCaption) {
            canSaveDynamicFields = "0";
            Profile = "EditorTextHLBoldCenter";
            HorizSizing = "right";
            VertSizing = "bottom";
            position = "0 0";
            Extent = "91 24";
            MinExtent = "8 2";
            canSave = "1";
            Visible = "1";
            hovertime = "1000";
            text = "Level Control";
            maxLength = "1024";
         };
         new GuiIconButtonCtrl(LBPlayWindowStopBtn) {
            canSaveDynamicFields = "0";
            Profile = "EditorButtonToolbar";
            HorizSizing = "right";
            VertSizing = "bottom";
            position = "95 0";
            Extent = "24 24";
            MinExtent = "8 2";
            canSave = "1";
            Visible = "1";
            Command = "toggleLevelEditor();";
            Accelerator = "escape";
            hovertime = "1000";
            groupNum = "-1";
            buttonType = "PushButton";
            buttonMargin = "4 4";
            iconBitmap = "tools/leveleditor/gui/images/iconStop.png";
            iconLocation = "Left";
            sizeIconToButton = "0";
            textLocation = "None";
            textMargin = "4";
         };
      };
   };
#2
06/17/2006 (2:58 pm)
That button has always been there for me since I started using TGB. It is meant to toggle the editor. I'd imagine you can remove it once you don't need the editors any more.
#3
06/17/2006 (3:11 pm)
Yeah but it's not visible on my level when I'm editing it. Apparently Build [edit: TGB] seems to insert it into my project on the fly, or pops it open when the level is loaded. To get rid of it I had to copy my .gui file into the Build folder, and edit it the gui file there, and re-run the project. because only .dsos are available in the Build folder. There is probably an easier way but it's something the Build process should take care of you.
#4
06/18/2006 (6:42 am)
It's not visible when you're editing because none of the gui elements are viewable in the level editor. The gui is loaded when you actually launch the level that uses the gui.
#5
06/19/2006 (6:17 am)
It's a bug