예제 #1
0
        public void resume_preparations()
        {
            if (Global.game_system.preparations)
            {
                Global.game_temp.menuing = true;

                MapMenu = new PreparationsMenuManager(this, true);
                start_preparations();
            }
        }
예제 #2
0
        public void activate_preparations()
        {
            if (!Global.game_system.preparations)
            {
                Global.game_actors.heal_battalion();

                Global.game_system.preparations = true;
                Global.game_temp.menuing        = true;

                MapMenu = new PreparationsMenuManager(this, deployUnits: true);
                start_preparations();
            }
        }
예제 #3
0
        protected void update_preparations_menu_calls()
        {
            if (Global.game_system.preparations)
            {
                if (Global.game_temp.map_menu_call)
                {
                    Global.game_system.play_se(System_Sounds.Unit_Select);
                    Global.game_map.clear_move_range();
                    Global.game_temp.menuing       = true;
                    Global.game_temp.menu_call     = false;
                    Global.game_temp.map_menu_call = false;

                    var preparationsMenuManager = new PreparationsMenuManager(this);
                    preparationsMenuManager.CheckMap(Changing_Formation);
                    MapMenu = preparationsMenuManager;

                    Changing_Formation = false;
                    Global.game_map.clear_move_range();
                    Global.game_map.move_range_visible = false;
                }
            }
        }
예제 #4
0
        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();
            }
        }