Esempio n. 1
0
        public ScreenFadeMenu PromotionScreenFade(Maybe <int> promotionId = default(Maybe <int>))
        {
            ScreenFadeMenu result = new PromotionFadeMenu(
                ActorId, this.SelectedItem, promotionId);

            return(result);
        }
Esempio n. 2
0
        protected void AddItemMenu(bool returningToItemUse = false)
        {
            var itemsMenu = new Window_Prep_Items(returningToItemUse);

            itemsMenu.UnitSelected  += ItemsMenu_UnitSelected;
            itemsMenu.Status        += preparationsMenu_Status;
            itemsMenu.TradeSelected += ItemsMenu_TradeSelected;
            itemsMenu.Trade         += itemsMenu_Trade;
            itemsMenu.Convoy        += itemsMenu_Convoy;
            itemsMenu.Use           += ItemsMenu_Use;
            itemsMenu.List          += itemsMenu_List;
            itemsMenu.Shop          += itemsMenu_Shop;
            itemsMenu.Closed        += menu_Closed;
            AddMenu(itemsMenu);

            if (returningToItemUse)
            {
                Global.game_map.completely_remove_unit(Global.game_map.last_added_unit.id);

                // Add unit menu
                AddItemCommandMenu(itemsMenu, null, true);

                // Add use menu
                if (itemsMenu.actor.has_items)
                {
                    RemoveTopMenu();
                    AddUseMenu(itemsMenu);
                }

                var fadeMenu = PromotionFadeMenu.PromotionEndFade();
                fadeMenu.Finished += menu_Closed;
                AddMenu(fadeMenu);
            }
        }