//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(formation) {
   canSaveDynamicFields = "0";
   isContainer = "1";
   Profile = "GuiDefaultProfile";
   HorizSizing = "right";
   VertSizing = "bottom";
   Position = "0 0";
   Extent = "1024 768";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";

   new GuiChunkedBitmapCtrl() {
      canSaveDynamicFields = "0";
      isContainer = "1";
      Profile = "GuiDefaultProfile";
      HorizSizing = "center";
      VertSizing = "center";
      Position = "288 152";
      Extent = "448 464";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      bitmap = "~/data/images/gui/background1.png";
      useVariable = "0";
      tile = "0";

      new GuiChunkedBitmapCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "1";
         Profile = "GuiDefaultProfile";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "36 38";
         Extent = "367 142";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         hovertime = "1000";
         bitmap = "~/data/images/gui/large_sq_brdr.png";
         useVariable = "0";
         tile = "0";

         new GuiBitmapCtrl() {
            canSaveDynamicFields = "0";
            isContainer = "0";
            Profile = "GuiDefaultProfile";
            HorizSizing = "right";
            VertSizing = "bottom";
            Position = "15 6";
            Extent = "337 130";
            MinExtent = "8 2";
            canSave = "1";
            Visible = "1";
            hovertime = "1000";
            bitmap = "~/data/images/gui/panel_bg3.png";
            wrap = "0";
         };
         new GuiMLTextCtrl(formationdesc) {
            canSaveDynamicFields = "0";
            isContainer = "0";
            Profile = "GuiMLProfile";
            HorizSizing = "right";
            VertSizing = "bottom";
            Position = "18 13";
            Extent = "332 14";
            MinExtent = "8 2";
            canSave = "1";
            Visible = "1";
            hovertime = "1000";
            lineSpacing = "2";
            allowColorChars = "0";
            maxChars = "-1";
         };
      };
      new GuiBitmapButtonTextCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GuiButton28FF";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "135 186";
         Extent = "167 35";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         Command = "ChooseBattleFormation(line);";
         hovertime = "1000";
         text = "Line";
         groupNum = "-1";
         buttonType = "PushButton";
         useMouseEvents = "0";
         bitmap = "~/data/images/gui/btn_big.png";
      };
      new GuiBitmapButtonTextCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GuiButton28FF";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "134 248";
         Extent = "167 35";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         Command = "ChooseBattleFormation(skirmishline);";
         hovertime = "1000";
         text = "Skirmish Line";
         groupNum = "-1";
         buttonType = "PushButton";
         useMouseEvents = "0";
         bitmap = "~/data/images/gui/btn_big.png";
      };
      new GuiBitmapButtonTextCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GuiButton28FF";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "134 304";
         Extent = "167 35";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         Command = "ChooseBattleFormation(heaviesfirst);";
         hovertime = "1000";
         text = "Heavy First";
         groupNum = "-1";
         buttonType = "PushButton";
         useMouseEvents = "0";
         bitmap = "~/data/images/gui/btn_big.png";
      };
      new GuiBitmapButtonTextCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GuiButton28FF";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "133 353";
         Extent = "167 35";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         Command = "ChooseBattleFormation(lightfirst);";
         hovertime = "1000";
         text = "Light First";
         groupNum = "-1";
         buttonType = "PushButton";
         useMouseEvents = "0";
         bitmap = "~/data/images/gui/btn_big.png";
      };
      new GuiBitmapButtonTextCtrl() {
         canSaveDynamicFields = "0";
         isContainer = "0";
         Profile = "GuiButton28FF";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "134 402";
         Extent = "167 35";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         Command = "ChooseBattleFormation(box);";
         hovertime = "1000";
         text = "Box";
         groupNum = "-1";
         buttonType = "PushButton";
         useMouseEvents = "0";
         bitmap = "~/data/images/gui/btn_big.png";
      };
   };
};
//--- OBJECT WRITE END ---
