示例#1
0
        protected EventPopup CreatePopup(SysMenuManager manager)
        {
            EventPopup popup = new EventPopup(manager);

            manager.AddMenu(popup);
            return(popup);
        }
示例#2
0
        /// <summary>
        /// add a new ship to this player's flotilla.
        /// </summary>
        public void AddShip(ShipData shipType)
        {
            FrameworkCore.PlayCue(sounds.Fanfare.ship);

            FleetShip ship = Helpers.AddFleetShip(FrameworkCore.players[0].campaignShips, shipType);

            //create popup.
            if (ship == null)
            {
                return;
            }

            ShipPopup popup = new ShipPopup(menuManager);

            popup.fleetShip = ship;
            menuManager.AddMenu(popup);
        }
示例#3
0
        protected EventPopup CreatePopup(SysMenuManager manager, Rectangle img, string txt)
        {
            EventPopup popup = new EventPopup(manager);

            popup.image       = img;
            popup.description = txt;
            manager.AddMenu(popup);
            return(popup);
        }