protected EventPopup CreatePopup(SysMenuManager manager) { EventPopup popup = new EventPopup(manager); manager.AddMenu(popup); return(popup); }
/// <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); }
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); }