View Issue Details

IDProjectCategoryLast Update
0019191AI War 2SuggestionFeb 2, 2018 11:45 pm
ReporterBadgerBadger Assigned ToBadgerBadger  
Status closedResolutionfixed 
Product Version0.450 Sound! 
Summary0019191: Button on game start screen to report a bug
DescriptionIt occurs to me that y'all might want to make it easier for folks to report bugs in game. Here's a button on the main screen.
TagsNo tags attached.

Activities

BadgerBadger

Jun 26, 2017 8:28 pm

manager  

KDL_UIWindows.xml (21,283 bytes)   
<?xml version="1.0" encoding="utf-8"?>
<root>
  <window name="Window_DebugInfo"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_DebugInfo"
              x="0.0"
              y="10.0"
  >
  	<element prefab_lookup_name="BasicText" x="20.0" y="0.0" width="50" height="50" type_name="tText" />
  </window>
  <window name="Window_PausedInfo"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_PausedInfo"
              x="0.0"
              y="10.0"
  >
  	<element prefab_lookup_name="BasicText" x="40.0" y="20.0" width="20" height="10" type_name="tText" />
  </window>
  <window name="Window_ErrorReportMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_ErrorReportMenu"
              x="0.0"
              y="10.0"
  >
  	<element prefab_lookup_name="BasicText" x="40.0" y="20.0" width="20" height="3" type_name="tText" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="40.0" y="23.0" width="5" height="3" type_name="bOpenLog" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="45.0" y="23.0" width="5" height="3" type_name="bIgnore" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="50.0" y="23.0" width="10" height="3" type_name="bIgnoreAndSuppress" />
  </window>
  <window name="Window_MainMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_MainMenu"
              x="0.0"
              y="0.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="14.0" width="20" height="6" override_image_name="dummyImageName" type_name="bStartGame" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="21.0" width="20" height="6" type_name="bConnectToServer" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="28.0" width="20" height="6" type_name="bLoadGame" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="35.0" width="20" height="6" type_name="bOpenReleaseNotes" />
        <element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="42.0" width="20" height="6" type_name="bOpenTutorial" />
        <element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="49.0" width="20" height="6" type_name="bReportBug" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="56.0" width="20" height="6" type_name="bExitApplication" />
  	
  	<!--
  	<element prefab_lookup_name="BasicImageDrawer" x="0.0" y="48.0" width="10" height="6" type_name="bRawImageTest" />
  	-->
  </window>
  <window name="Window_LoadGameMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_LoadGameMenu"
              x="0.0"
              y="0.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" button_width="24" button_height="3" type_name="bsLoadGameButtons" click_sound="ButtonStartGame"  />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="17.0" y="0.0" width="20" height="6" type_name="bClose" />
  </window>
  
  <window name="Window_SaveGameMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_SaveGameMenu"
              x="0.0"
              y="0.0"
  >
  	<element prefab_lookup_name="BasicTextbox" x="0.0" y="3.0" width="15" height="4" type_name="iSaveGameName" />
    <element prefab_lookup_name="ButtonBlueSmallerCenter" x="16.0" y="3.0" width="12" height="4" type_name="bSaveGameName" />
    
    <element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="10.0" width="16" height="12" button_width="16" button_height="3" type_name="bsSaveGameButtons" />
    <element prefab_lookup_name="ButtonBlueSmallerCenter" x="28.0" y="3.0" width="12" height="4" type_name="bClose" />
    
 
  </window>
          
  <window name="Window_GameSetup"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_GameSetup"
              x="0.0"
              y="10.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" type_name="bStartGame" click_sound="ButtonStartGame" />
  	<element prefab_lookup_name="BasicTextbox" x="0.0" y="3.0" width="15" height="6" type_name="iSeed" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="15.0" y="3.0" width="9" height="3" type_name="bUseSeed" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="15.0" y="6.0" width="9" height="3" type_name="bRandomSeed" />
  	<element prefab_lookup_name="BasicDropdown" x="0.0" y="9.0" width="18" height="6" type_name="dMapType" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="15.0" width="10" height="3" type_name="bQuitGame" />
  </window>
  <window name="Window_InGameBottomMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameBottomMenu"
              x="0.0"
              y="0.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="3" type_name="bsControlGroupRow" />
  </window>
  <window name="Window_InGameCommandsMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameCommandsMenu"
              x="0.0"
              y="3.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleFRD" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bScrap" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="20.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleBuildMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="30.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleHackingMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="40.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleWarheadMenu" />
  </window>  
  <window name="Window_InGameMasterMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameMasterMenu"
              x="0.0"
              y="3.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleEscapeMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleDebugMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="20.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleTimingMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="30.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleTechMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="40.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bTogglePlanetMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="50.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleObjectivesMenu" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="60.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleControlGroupsMenu" />
  </window>  
  <window name="Window_InGameEscapeMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameEscapeMenu"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bSaveGame" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bExitGame" />
  </window>
  <window name="Window_InGameDeveloperToolsMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameDeveloperToolsMenu"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bRevealAll" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bGiveMetal" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="20.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bGiveScience" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="30.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bGiveHacking" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="40.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bIncreaseAIP" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="50.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bSpawnWave" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="60.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleTracingMenu" />
  	<!--
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bAdd" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bSubtract" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bIncreaseScale" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bDecreaseScale" />
  	-->
  </window>
  <window name="Window_InGameTracingMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameTracingMenu"
              x="0.0"
              y="9.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="6" type_name="bsMenuSelectionRow" />
  </window>
  <window name="Window_InGameTimingMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameTimingMenu"
              x="0.0"
              y="6.0"
  >  
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bDecreaseFrameSize" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bIncreaseFrameSize" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="20.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bDecreaseFrameFrequency" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="30.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bIncreaseFrameFrequency" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="40.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bTogglePause" />
  </window>
  <window name="Window_FindPlanetMenu"
          dll_name="AIWarExternalCode"
          type_name="Arcen.AIW2.External.Window_FindPlanetMenu"
          x="0.0"
          y="6.0"
          >

        <element prefab_lookup_name="BasicTextbox" x="00.0" y="4.0" width="30" height="4"   button_width="20" button_height="6" type_name="iPlanetName" />  
        <element prefab_lookup_name="ButtonBlueSmallerCenter" x="31.0" y="4.0" width="10" height="4"  button_width="10" button_height="6" type_name="bFindPlanet" />
        <element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="9.0" width="10" height="4"  button_width="10" button_height="6" type_name="bCloseFindPlanet" />
        <element prefab_lookup_name="BasicText" x="0.0" y="0.0" width="30" height="2" x_align="Left" type_name="tAutoCompletion" />
  </window>
  
  <window name="Window_InGamePlanetActionMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGamePlanetActionMenu"
              x="0.0"
              y="6.0"
              >

  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="6" type_name="bsItems" /> 
  </window>
  <window name="Window_InGameObjectivesWindow"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameObjectivesWindow"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="50" button_height="3" type_name="bsObjectives" />
  </window>
  <window name="Window_InGameControlGroupsMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameControlGroupsMenu"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" y_align="Bottom" type_name="bToggleStandardGroupsMenu" />
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="10.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="3" type_name="bsControlGroups" />	
  </window>
  <window name="Window_InGameStandardGroupsMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameStandardGroupsMenu"
              x="0.0"
              y="9.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="6" y_align="Bottom" type_name="bSelectAllMobileMilitary" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="10.0" y="0.0" width="10" height="6" y_align="Bottom" type_name="bSelectController" />
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="20.0" y="0.0" width="10" height="6" y_align="Bottom" type_name="bSelectSpaceDock" />
  </window>
  <window name="Window_InGameBuildMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameBuildMenu"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="9.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="6" type_name="bsMenuGrid" />
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="6.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="3" type_name="bsMenuSelectionRow" />
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="6" type_name="bsQueueItemRow" />
  </window>
  <window name="Window_InGameHackingMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameHackingMenu"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="6" type_name="bsItems" />
  </window>
  <window name="Window_InGameWarheadMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameWarheadMenu"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="6" type_name="bsItems" />
  </window>
  <window name="Window_InGameTechMenu"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameTechMenu"
              x="0.0"
              y="6.0"
  >
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="3.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="6" type_name="bsMenuGrid" />
  	<element prefab_lookup_name="ButtonSet_BlueSmallerCenter" x="0.0" y="0.0" width="1" height="1" y_align="Bottom" button_width="10" button_height="3" type_name="bsMenuSelectionRow" />
  </window>
  <window name="Window_InGameOutlineSidebar"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameOutlineSidebar"
              x="0.0"
              y="0.0"
  >
  	<element prefab_lookup_name="ImageButtonSet_SidebarIcons" x="2.0" y="14.0" width="20" height="60" button_width="6" button_height="6"  x_align="Left" y_align="Top" type_name="bsOutlineItems" />
  </window>
  <window name="Window_GUIToggling"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_GUIToggling"
              x="0.0"
              y="0.0"
  >
  	<element prefab_lookup_name="ButtonBlueSmallerCenter" x="0.0" y="0.0" width="10" height="3" x_align="Right" type_name="bToggleGUI" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="3.0" width="10" height="3" x_align="Right" type_name="tVersion" />
  </window>
  <window name="Window_InGameTopRightInfo"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameTopRightInfo"
              x="0.0"
              y="10.0"
  >
  	<element prefab_lookup_name="BasicText" x="0.0" y="0.0" width="20" height="4" x_align="Right" type_name="tText" />
  </window>
  <window name="Window_InGameBottomLeftInfo"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameBottomLeftInfo"
              x="0.0"
              y="2.0"
  >
  	<element prefab_lookup_name="BasicText" x="0.0" y="0.0" width="60" height="20" y_align="Bottom" type_name="tText" />
  </window>
  <window name="Window_InGameBottomRightInfo"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_InGameBottomRightInfo"
              x="0.0"
              y="2.0"
  >
  	<element prefab_lookup_name="BasicText" x="0.0" y="0.0" width="40" height="4" x_align="Right" y_align="Bottom" type_name="tText" />
  </window>
  <window name="Window_ResourceBar"
              dll_name="AIWarExternalCode"
              type_name="Arcen.AIW2.External.Window_ResourceBar"
              x="0.0"
              y="0.0"
  >
  	<element prefab_lookup_name="BasicText" x="0.0" y="0.0" width="10" height="4" font_size="13" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="10.0" y="0.0" width="10" height="4" font_size="13" type_name="tMetal" />
  	<element prefab_lookup_name="BasicText" x="20.0" y="0.0" width="10" height="4" font_size="13" type_name="tFuel" />
  	<element prefab_lookup_name="BasicText" x="30.0" y="0.0" width="10" height="4" font_size="13" type_name="tPower" />
  	<element prefab_lookup_name="BasicText" x="40.0" y="0.0" width="10" height="4" font_size="13" type_name="tScience" />
  	<element prefab_lookup_name="BasicText" x="50.0" y="0.0" width="10" height="4" font_size="13" type_name="tHacking" />
  	<element prefab_lookup_name="BasicText" x="60.0" y="0.0" width="10" height="4" font_size="13" type_name="tAIProgress" />
  	<element prefab_lookup_name="BasicText" x="70.0" y="0.0" width="10" height="4" font_size="13" type_name="tThreat" />
  	<element prefab_lookup_name="BasicText" x="80.0" y="0.0" width="10" height="4" font_size="13" type_name="tAttack" />
  	
  	<element prefab_lookup_name="BasicText" x="0.0" y="4.0" width="30" height="4" type_name="tWavePrediction" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="8.0" width="30" height="4" type_name="tCPAPrediction" />
  	
  	<!--
  	<element prefab_lookup_name="BasicText" x="50.0" y="0.0" width="10" height="4" type_name="tAIProgress" />
  	<element prefab_lookup_name="BasicText" x="60.0" y="0.0" width="10" height="4" type_name="tAIProgress" />
  	<element prefab_lookup_name="BasicText" x="70.0" y="0.0" width="10" height="4" type_name="tAIProgress" />
  	<element prefab_lookup_name="BasicText" x="80.0" y="0.0" width="10" height="4" type_name="tAIProgress" />
  	<element prefab_lookup_name="BasicText" x="90.0" y="0.0" width="10" height="4" type_name="tAIProgress" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="10.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="20.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="30.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="40.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="50.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="60.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="70.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="80.0" width="10" height="10" type_name="tTime" />
  	<element prefab_lookup_name="BasicText" x="0.0" y="90.0" width="10" height="10" type_name="tTime" />
  	-->
  </window>  
</root>
KDL_UIWindows.xml (21,283 bytes)   
Window_MainMenu.cs (5,543 bytes)   
using Arcen.Universal;
using Arcen.AIW2.Core;
using System;
using System.Collections.Generic;
using System.IO;
using System.Diagnostics;
using UnityEngine;

namespace Arcen.AIW2.External
{
    public class Window_MainMenu : WindowControllerAbstractBase
    {
        public static Window_MainMenu Instance;
        public Window_MainMenu()
        {
            Instance = this;
        }

        public string TargetIP = string.Empty;

        public override bool GetShouldDrawThisFrame_Subclass()
        {
            if ( !base.GetShouldDrawThisFrame_Subclass() )
                return false;
            if ( World.Instance.IsLoaded )
                return false;
            if ( World_AIW2.Instance.InSetupPhase )
                return false;
            return true;
        }

        public class bStartGame : ButtonAbstractBase
        {
            public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
            {
                base.GetTextToShow( Buffer );
                Buffer.Add( "Start New Game" );
            }
            public override void HandleClick() { Input_MainHandler.HandleInner( 0, "DebugGenerateMap" ); }
            public override void HandleMouseover() { }
            public override void OnUpdate() { }
        }

        public class bOpenTutorial : ButtonAbstractBase
        {
            public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
            {
                base.GetTextToShow( Buffer );
                Buffer.Add( "Open Tutorial \n(In External Browser)" );
            }
            public override void HandleClick() { Process.Start( "https://wiki.arcengames.com/index.php?title=AI_War_2:Earlier_Than_Earlier_Alpha_Play_Instructions" ); }
            public override void HandleMouseover() { }
            public override void OnUpdate() { }
        }

      public class bReportBug : ButtonAbstractBase
        {
            public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
            {
                base.GetTextToShow( Buffer );
                Buffer.Add( "Report A Bug (In External Browser)" );
            }
            public override void HandleClick() { Process.Start( "https://bugtracker.arcengames.com" ); }
            public override void HandleMouseover() { }
            public override void OnUpdate() { }
        }

    public class bConnectToServer : ButtonAbstractBase
        {
            public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
            {
                base.GetTextToShow( Buffer );
                Buffer.Add( "Debug: Connect To " ).Add( Instance.TargetIP ).Add( "\n" ).Add( "(change in PlayerData/AlphaMPTarget.txt)" );
            }
            public override void HandleClick() { Input_MainHandler.HandleInner( 0, "DebugConnectToLocalServer" ); }
            public override void HandleMouseover() { }
            public override void OnUpdate()
            {
                string filename = "AlphaMPTarget.txt";
                string path = Engine_Universal.CurrentPlayerDataDirectory + filename;
                if ( !File.Exists( path ) )
                    return;
                string rawText = File.ReadAllText( path );
                Instance.TargetIP = rawText.Trim();
            }
        }

        public class bLoadGame : ButtonAbstractBase
        {
            public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
            {
                base.GetTextToShow( Buffer );
                Buffer.Add( "Load Game" );
            }
            public override void HandleClick() { Window_LoadGameMenu.Instance.Open(); }
            public override void HandleMouseover() { }
            public override void OnUpdate() { }
        }

        public class bOpenReleaseNotes : ButtonAbstractBase
        {
            public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
            {
                base.GetTextToShow( Buffer );
                Buffer.Add( "Open Release Notes\n(In External Browser)" );
            }
            public override void HandleClick() { Process.Start( "https://wiki.arcengames.com/index.php?title=AI_War_2:AI_War_2#Release_History" ); }
            public override void HandleMouseover() { }
            public override void OnUpdate() { }
        }

        public class bExitApplication : ButtonAbstractBase
        {
            public override void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
            {
                base.GetTextToShow( Buffer );
                Buffer.Add( "Exit Game" );
            }
            public override void HandleClick() { Engine_Universal.ForceClose(); }
            public override void HandleMouseover() { }
            public override void OnUpdate() { }
        }

        //public class bTextWithInlineImagesTest : IArcenUI_TextWithInlineImages_Controller
        //{
        //    protected ArcenUI_TextWithInlineImages element;

        //    public void GetTextToShow( ArcenDoubleCharacterBuffer Buffer )
        //    {
        //        //Buffer.Add( "boo!" );
        //    }

        //    public void OnUpdate()
        //    {
                
        //    }

        //    public void SetElement( ArcenUI_Element Element )
        //    {
        //        this.element = (ArcenUI_TextWithInlineImages)Element;
        //    }
        //}
    }
}
Window_MainMenu.cs (5,543 bytes)   

Michael

Jan 31, 2018 2:08 pm

administrator   ~0046793

This could be helpful during beta testing.

BadgerBadger

Feb 2, 2018 11:45 pm

manager   ~0046844

Such a button has been added to the main screen.

Issue History

Date Modified Username Field Change
Jun 26, 2017 8:28 pm BadgerBadger New Issue
Jun 26, 2017 8:28 pm BadgerBadger File Added: KDL_UIWindows.xml
Jun 26, 2017 8:28 pm BadgerBadger File Added: Window_MainMenu.cs
Jan 31, 2018 2:08 pm Michael Assigned To => BadgerBadger
Jan 31, 2018 2:08 pm Michael Status new => assigned
Jan 31, 2018 2:08 pm Michael Note Added: 0046793
Feb 2, 2018 11:45 pm BadgerBadger Status assigned => closed
Feb 2, 2018 11:45 pm BadgerBadger Resolution open => fixed
Feb 2, 2018 11:45 pm BadgerBadger Note Added: 0046844