//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiBitmapCtrl(RoadGangsMain) {
   canSaveDynamicFields = "0";
   isContainer = "1";
   Profile = "GuiDefaultProfile";
   HorizSizing = "relative";
   VertSizing = "relative";
   Position = "0 0";
   Extent = "1024 768";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";
   bitmap = "~/data/images/gui/main.png";
   wrap = "0";

   new GuiBitmapButtonTextCtrl(startscreenbutton2) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiButton28FF";
      HorizSizing = "relative";
      VertSizing = "relative";
      Position = "193 720";
      Extent = "155 35";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "InitSaveGame();";
      hovertime = "1000";
      text = "Saved game";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/data/images/gui/btn_small.png";
   };
   new GuiBitmapButtonTextCtrl(startscreenbutton3) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiButton28FF";
      HorizSizing = "relative";
      VertSizing = "relative";
      Position = "351 720";
      Extent = "155 35";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "canvas.SetContent(\"quickbattle1\");";
      hovertime = "1000";
      text = "Quick Battle";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/data/images/gui/btn_small.png";
   };
   new GuiBitmapButtonTextCtrl(startscreenbutton4) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiButton28FF";
      HorizSizing = "relative";
      VertSizing = "relative";
      Position = "509 720";
      Extent = "155 35";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "InitOptions();";
      hovertime = "1000";
      text = "Options";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/data/images/gui/btn_small.png";
   };
   new GuiBitmapButtonTextCtrl(startscreenbutton5) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiButton28FF";
      HorizSizing = "relative";
      VertSizing = "relative";
      Position = "668 720";
      Extent = "155 35";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "Canvas.PushDialog(\"credit\");";
      hovertime = "1000";
      text = " Credits";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/data/images/gui/btn_small.png";
   };
   new GuiBitmapButtonTextCtrl(startscreenbutton6) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiButton28FF";
      HorizSizing = "relative";
      VertSizing = "relative";
      Position = "827 720";
      Extent = "155 35";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "quit();";
      tooltipprofile = "GuiDefaultProfile";
      hovertime = "1000";
      text = "Quit";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/data/images/gui/btn_small.png";
   };
   new GuiBitmapButtonTextCtrl(startscreenbutton1) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiButton28FF";
      HorizSizing = "relative";
      VertSizing = "relative";
      Position = "35 720";
      Extent = "155 35";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "DisplayIntroDialog();";
      tooltipprofile = "GuiDefaultProfile";
      hovertime = "1000";
      text = "New Game";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/data/images/gui/btn_small.png";
   };
};
//--- OBJECT WRITE END ---

function Main::OnWake()
{
   $GameStarted = "";
}
