public PhonePauseScreen() : base("Paused", true) { // Create the "Resume" and "Exit" buttons for the screen Button resumeButton = new Button("Resume"); resumeButton.Tapped += resumeButton_Tapped; MenuButtons.Add(resumeButton); Button exitButton = new Button("Exit"); exitButton.Tapped += exitButton_Tapped; MenuButtons.Add(exitButton); }
public ShipUpgradesMenuScreen() : base("", false) { if (Config.ship1Active) ship1Upgrade = new Button("Ship1 - Active"); else ship1Upgrade = new Button("Ship1 - Select"); ship1Upgrade.Tapped += ship1UpgradeButton_Tapped; MenuButtons.Add(ship1Upgrade); ship1Upgrade.Position = new Vector2(100, 75); ship1Upgrade.Size = new Vector2(500, 100); ship1Upgrade.BorderThickness = 1; ship1Upgrade.BorderColor = Color.Green; ship1Upgrade.FillColor = new Color(0, 0, 0, 200); ship1Upgrade.TextOffSet = new Vector2(60, 0); if (Config.ship2Locked) ship2Upgrade = new Button("Unlock - 2,000g"); else if (Config.ship2Active) ship2Upgrade = new Button("Ship2 - Active"); else ship2Upgrade = new Button("Ship2 - Select"); ship2Upgrade.Tapped += ship2UpgradeButton_Tapped; MenuButtons.Add(ship2Upgrade); ship2Upgrade.Position = new Vector2(100, 200); ship2Upgrade.Size = new Vector2(500, 100); ship2Upgrade.BorderThickness = 1; ship2Upgrade.BorderColor = Color.Green; ship2Upgrade.FillColor = new Color(0, 0, 0, 200); ship2Upgrade.TextOffSet = new Vector2(60, 0); if (Config.ship3Locked) ship3Upgrade = new Button("Unlock - 5,000g"); else if (Config.ship3Active) ship3Upgrade = new Button("Ship3 - Active"); else ship3Upgrade = new Button("Ship3 - Select"); ship3Upgrade.Tapped += ship3UpgradeButton_Tapped; MenuButtons.Add(ship3Upgrade); ship3Upgrade.Position = new Vector2(100, 325); ship3Upgrade.Size = new Vector2(500, 100); ship3Upgrade.BorderThickness = 1; ship3Upgrade.BorderColor = Color.Green; ship3Upgrade.FillColor = new Color(0, 0, 0, 200); ship3Upgrade.TextOffSet = new Vector2(60, 0); ship1Mods = new Button("Mods"); ship1Mods.Tapped += new EventHandler<EventArgs>(ship1Mods_Tapped); ship1Mods.Position = new Vector2(610, 75); ship1Mods.Size = new Vector2(100, 100); ship1Mods.BorderThickness = 1; ship1Mods.BorderColor = Color.Green; ship1Mods.FillColor = new Color(0, 0, 0, 200); if (Config.ship1Active) MenuButtons.Add(ship1Mods); ship2Mods = new Button("Mods"); ship2Mods.Tapped += new EventHandler<EventArgs>(ship2Mods_Tapped); ship2Mods.Position = new Vector2(610, 200); ship2Mods.Size = new Vector2(100, 100); ship2Mods.BorderThickness = 1; ship2Mods.BorderColor = Color.Green; ship2Mods.FillColor = new Color(0, 0, 0, 200); if (Config.ship2Active) MenuButtons.Add(ship2Mods); ship3Mods = new Button("Mods"); ship3Mods.Tapped += new EventHandler<EventArgs>(ship3Mods_Tapped); ship3Mods.Position = new Vector2(610, 325); ship3Mods.Size = new Vector2(100, 100); ship3Mods.BorderThickness = 1; ship3Mods.BorderColor = Color.Green; ship3Mods.FillColor = new Color(0, 0, 0, 200); if (Config.ship3Active) MenuButtons.Add(ship3Mods); // individual ship upgrades button // Create two buttons to toggle sound effects and music. This sample just shows one way // of making and using these buttons; it doesn't actually have sound effects or music //BooleanButton sfxButton = new BooleanButton("Drone", true); //sfxButton.Tapped += sfxButton_Tapped; //MenuButtons.Add(sfxButton); //sfxButton.Position = new Vector2(400, 350); ////BooleanButton musicButton = new BooleanButton("Music", true); ////musicButton.Tapped += musicButton_Tapped; ////MenuButtons.Add(musicButton); }