99using C7GameData . Save ;
1010using Serilog ;
1111
12- [ Tool ]
1312public partial class ScenarioSetup : Control {
1413 private static ILogger log = LogManager . ForContext < ScenarioSetup > ( ) ;
1514
@@ -34,8 +33,6 @@ public partial class ScenarioSetup : Control {
3433
3534 // Called when the node enters the scene tree for the first time.
3635 public override void _Ready ( ) {
37- background . Texture = TextureLoader . Load ( "player_setup.background" ) ;
38-
3936 SaveGame save = GetSave ( ) ;
4037
4138 // Set up buttons for the civs the player can play as.
@@ -89,10 +86,7 @@ public override void _Ready() {
8986 container . CustomMinimumSize = new Vector2 ( 843.0f / difficultyContainer . Columns , 0 ) ;
9087 }
9188
92- TextureLoader . SetButtonTextures ( confirm , "ui.confirm" ) ;
9389 confirm . Pressed += CreateGame ;
94-
95- TextureLoader . SetButtonTextures ( cancel , "ui.cancel" ) ;
9690 cancel . Pressed += BackToMainMenu ;
9791 }
9892
@@ -110,13 +104,7 @@ private void DisplaySelectedLeader() {
110104 }
111105
112106 private SaveGame GetSave ( ) {
113- string loadGamePath ;
114- try {
115- loadGamePath = GetNode < GlobalSingleton > ( "/root/GlobalSingleton" ) . LoadGamePath ;
116- } catch ( Exception e ) {
117- // Provide a default for the editor, which can't use GlobalSingleton
118- loadGamePath = Util . Civ3MediaPath ( "Conquests/Conquests/9 WWII in the Pacific.biq" ) ;
119- }
107+ string loadGamePath = GetNode < GlobalSingleton > ( "/root/GlobalSingleton" ) . LoadGamePath ;
120108 return SaveManager . LoadSave ( loadGamePath ,
121109 GamePaths . DefaultBicPath ,
122110 ( string scenarioSearchPath ) => {
0 commit comments