//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(OptionsDialog) {
   canSaveDynamicFields = "0";
   isContainer = "1";
   Profile = "GuiDefaultProfile";
   HorizSizing = "center";
   VertSizing = "center";
   Position = "0 0";
   Extent = "800 600";
   MinExtent = "8 8";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";

   new GuiBitmapCtrl(optionsDialogBackground) {
      canSaveDynamicFields = "0";
      isContainer = "1";
      Profile = "GameNoBorderProfile";
      HorizSizing = "center";
      VertSizing = "center";
      Position = "128 56";
      Extent = "675 554";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      bitmap = "game/data/images/dialogGUI/optionsWindow.png";
      wrap = "0";

      new GuiTextCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GameTextProfile";
         HorizSizing = "relative";
         VertSizing = "relative";
         Position = "288 32";
         Extent = "143 36";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         hovertime = "1000";
         text = "Options";
         maxLength = "1024";
      };
      new GuiTabBookCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "1";
         Profile = "GameTabBookProfile";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "48 64";
         Extent = "576 400";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         hovertime = "1000";
         TabPosition = "Top";
         TabHeight = "24";
         TabMargin = "7";
         MinTabWidth = "64";

         new GuiTabPageCtrl() {
            canSaveDynamicFields = "0";
            isContainer = "1";
            Profile = "GameTabPageProfile";
            HorizSizing = "right";
            VertSizing = "bottom";
            Position = "0 24";
            Extent = "576 376";
            MinExtent = "8 2";
            canSave = "1";
            Visible = "0";
            hovertime = "1000";
            text = "Controls";
            maxLength = "1024";

            new GuiBitmapButtonCtrl(optionsLeftButton) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameControlsButtonProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "120 144";
               Extent = "136 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               Command = "activateOptionsButton(optionsLeftButton);";
               hovertime = "1000";
               groupNum = "-1";
               buttonType = "PushButton";
               UseMouseEvents = "0";
            };
            new GuiTextCtrl() {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "32 152";
               Extent = "80 24";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Left:";
               maxLength = "1024";
            };
            new GuiTextCtrl() {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "16 208";
               Extent = "96 24";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Right:";
               maxLength = "1024";
            };
            new GuiBitmapButtonCtrl(optionsRightButton) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameControlsButtonProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "120 200";
               Extent = "136 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               Command = "activateOptionsButton(optionsRightButton);";
               hovertime = "1000";
               groupNum = "-1";
               buttonType = "PushButton";
               UseMouseEvents = "0";
            };
            new GuiTextCtrl() {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "328 152";
               Extent = "72 24";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Fire:";
               maxLength = "1024";
            };
            new GuiBitmapButtonCtrl(optionsFireButton) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameControlsButtonProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "412 144";
               Extent = "136 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               Command = "activateOptionsButton(optionsFireButton);";
               hovertime = "1000";
               groupNum = "-1";
               buttonType = "PushButton";
               UseMouseEvents = "0";
            };
            new GuiBitmapButtonCtrl(optionsShieldButton) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameControlsButtonProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "412 200";
               Extent = "136 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               Command = "activateOptionsButton(optionsShieldButton);";
               hovertime = "1000";
               groupNum = "-1";
               buttonType = "PushButton";
               UseMouseEvents = "0";
            };
            new GuiTextCtrl() {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "280 208";
               Extent = "122 24";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Special:";
               maxLength = "1024";
            };
            new GuiTextCtrl() {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "234 96";
               Extent = "143 36";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Controls";
               maxLength = "1024";
            };
         };
         new GuiTabPageCtrl() {
            canSaveDynamicFields = "0";
            isContainer = "1";
            Profile = "GameTabPageProfile";
            HorizSizing = "right";
            VertSizing = "bottom";
            Position = "0 24";
            Extent = "576 376";
            MinExtent = "8 2";
            canSave = "1";
            Visible = "0";
            hovertime = "1000";
            text = "Sound & Music";
            maxLength = "1024";

            new GuiTextCtrl() {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "40 64";
               Extent = "329 41";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Music volume:";
               maxLength = "1024";
            };
            new GuiSliderCtrl(optionsMusicSlider) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GuiSliderProfile";
               HorizSizing = "right";
               VertSizing = "relative";
               Position = "32 104";
               Extent = "512 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               Command = "optionsMusicSliderCallback(optionsMusicSlider);";
               hovertime = "1000";
               range = "0.000 1.000";
               ticks = "1";
               value = "0.5";
            };
            new GuiSliderCtrl(optionsSfxSlider) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GuiSliderProfile";
               HorizSizing = "right";
               VertSizing = "relative";
               Position = "32 216";
               Extent = "512 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               Command = "optionsSfxSliderCallback(optionsSfxSlider);";
               hovertime = "1000";
               range = "0.000 1.000";
               ticks = "1";
               value = "0.5";
            };
            new GuiTextCtrl() {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "relative";
               VertSizing = "relative";
               Position = "40 176";
               Extent = "329 38";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Sound effects:";
               maxLength = "1024";
            };
         };
         new GuiTabPageCtrl() {
            canSaveDynamicFields = "0";
            isContainer = "1";
            Profile = "GameTabPageProfile";
            HorizSizing = "right";
            VertSizing = "bottom";
            Position = "0 24";
            Extent = "576 376";
            MinExtent = "8 2";
            canSave = "1";
            Visible = "1";
            hovertime = "1000";
            text = "Display";
            maxLength = "1024";

            new GuiCheckBoxCtrl(fullscreenCheckbox) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameCheckBoxProfile";
               HorizSizing = "right";
               VertSizing = "bottom";
               Position = "80 280";
               Extent = "140 30";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Fullscreen at startup";
               groupNum = "-1";
               buttonType = "ToggleButton";
               UseMouseEvents = "0";
               useInactiveState = "0";
            };
            new GuiPopUpMenuCtrl(fullScreenResolutionPopup) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GamePopUpMenuProfile";
               HorizSizing = "right";
               VertSizing = "bottom";
               Position = "176 72";
               Extent = "152 24";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               maxLength = "1024";
               maxPopupHeight = "200";
               sbUsesNAColor = "0";
               reverseTextList = "0";
               bitmapBounds = "16 16";
            };
            new GuiCheckBoxCtrl(stretchToFitCheckbox) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameCheckBoxProfile";
               HorizSizing = "right";
               VertSizing = "bottom";
               Position = "80 320";
               Extent = "304 40";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "Stretch to fit  wide displays (fullscreen only)";
               groupNum = "-1";
               buttonType = "ToggleButton";
               UseMouseEvents = "0";
               useInactiveState = "0";
            };
            new GuiSliderCtrl(windowSizeSlider) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameSliderProfile";
               HorizSizing = "right";
               VertSizing = "bottom";
               Position = "80 160";
               Extent = "392 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               range = "50.000 90.000";
               ticks = "1";
               value = "50";
		altCommand = "windowSizeSliderCallback();";
            };
            new GuiTextCtrl(windowSizePercentText) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "right";
               VertSizing = "bottom";
               Position = "488 168";
               Extent = "64 24";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "90%";
               maxLength = "1024";
            };
            new GuiTextCtrl(windowSizeText) {
               canSaveDynamicFields = "0";
               isContainer = "0";
               Profile = "GameTextProfile";
               HorizSizing = "right";
               VertSizing = "bottom";
               Position = "218 200";
               Extent = "120 32";
               MinExtent = "8 2";
               canSave = "1";
               Visible = "1";
               hovertime = "1000";
               text = "1024x800";
               maxLength = "1024";
            };
         };
      };
      new GuiBitmapButtonCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GameButtonProfile";
         HorizSizing = "relative";
         VertSizing = "relative";
         Position = "368 481";
         Extent = "118 40";
         MinExtent = "8 8";
         canSave = "1";
         Visible = "1";
         Command = "closeOptionsDialog();";
         hovertime = "0";
         groupNum = "-1";
         buttonType = "PushButton";
         UseMouseEvents = "0";
         bitmap = "~/data/images/dialogBox/cancelButton";
      };
      new GuiBitmapButtonCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GameButtonProfile";
         HorizSizing = "relative";
         VertSizing = "relative";
         Position = "495 480";
         Extent = "117 40";
         MinExtent = "8 8";
         canSave = "1";
         Visible = "1";
         Command = "optionsDialogOKButtonPushed();";
         hovertime = "0";
         groupNum = "-1";
         buttonType = "PushButton";
         UseMouseEvents = "0";
         bitmap = "~/data/images/dialogBox/okButton";
      };
   };
};
//--- OBJECT WRITE END ---
