public void activate_home_base(string background) { if (!Global.game_system.preparations) { Global.game_actors.heal_battalion(); Global.game_system.preparations = true; Global.game_system.home_base = true; Global.game_temp.menuing = true; if (!Global.content_exists(@"Graphics/Panoramas/" + background)) { background = DEFAULT_HOME_BASE_BACKGROUND; } Global.game_system.home_base_background = background; Global.battalion.enter_home_base(); if (Constants.Support.BASE_COUNTS_AS_SEPARATE_CHAPTER) { Global.game_state.reset_support_data(); } MapMenu = new HomeBaseMenuManager(this); start_preparations(); } }
public void resume_home_base() { if (Global.game_system.home_base) { Global.game_temp.menuing = true; MapMenu = new HomeBaseMenuManager(this, true); start_preparations(); } }
public void resume_preparations_item_menu() { if (Global.game_system.preparations) { Global.game_temp.menuing = true; if (Global.game_system.home_base) { var homeBaseMenuManager = new HomeBaseMenuManager(this); homeBaseMenuManager.ResumeItemUse(); MapMenu = homeBaseMenuManager; } else { var preparationsMenuManager = new PreparationsMenuManager(this); preparationsMenuManager.ResumeItemUse(); MapMenu = preparationsMenuManager; } Global.Audio.BgmFadeOut(); Global.game_state.play_preparations_theme(); } }