public override void Initialize() { image = new Text(Game, new Rectangle(OSPos.X + 16, OSPos.Y + OSPos.Height / 5 + 5, OSPos.Width - 40, OSPos.Height * 3 / 5 - 10), Image.ToString(), Color.Yellow); effect = new Text(Game, new Rectangle(OSPos.X + 3, OSPos.Y, OSPos.Width - 10, OSPos.Height / 7), effects[Level], Color.Lime, 2.5f); level = new Text(Game, new Rectangle(OSPos.X + 3, OSPos.Y + OSPos.Height * 4 / 5 + 5, OSPos.Width - 10, OSPos.Height / 7), Name + ' ' + Level.ToString(), Color.Orange, 3); Cost = new Text(Game, new Rectangle(OSPos.X + 3, OSPos.Y - OSPos.Height / 4, OSPos.Width - 10, OSPos.Height / 7), "Costs" + AjustText(Costs[Level], 3, ' ') + "ÿ", Data.upgradePoints >= Costs[Level] ? Color.Yellow : Color.Red, 3); base.Initialize(); }
private void LoadTitre() { Titre = new Text(Game, new Rectangle(116, 250, 280, 100), "Tempest", Color.Red, 5); }
private void LoadTexts() { Selector = new Text(Game, new Rectangle(8, 148, 117, 150), "o", Color.White); BackToMenu = new Text(Game, new Rectangle(198, 55, 120, 25), "Back", Color.OrangeRed, 6); SelectBack = new Text(Game, new Rectangle(193, 51, 126, 33), "o", Color.White); SelectBack.Visible = false; Info1 = new Text(Game, new Rectangle(167, 346, 178, 15), "Enter to select", Color.Cyan, 3); Info2 = new Text(Game, new Rectangle(160, 320, 192, 15), "Arrows to change", Color.Yellow, 3); input = Game.Services.GetService(typeof(InputManager)) as InputManager; upgrades.Add(new Upgrade(Game, new Rectangle(10, 150, 117, 150), new string[6] { "Piercing shots", "Fire rate = 1.2", "Fire rate = 1.05", "Fire rate = 0.9", "Max kills = 4", "Maxed" }, "Laser lv.", '|', Data.laserLevel, new int[6] { 3, 5, 5, 10, 10, 100 })); upgrades.Add(new Upgrade(Game, new Rectangle(135, 150, 117, 150), new string[6] { "Protect yourself", "Use time = 0.8", "Use time = 0.9", "Use time = 1.0", "Recharge time = 8", "Maxed" }, "Shield lv.", '/', Data.shieldLevel, new int[6] { 5, 10, 10, 15, 15, 100 })); upgrades.Add(new Upgrade(Game, new Rectangle(260, 150, 117, 150), new string[6] { "Affect 3 lanes", "Fire rate = 4.5", "Fire rate = 4.0", "Fire rate = 3.5", "Fires 2 bombs", "Maxed" }, "Bomb lv.", '\'', Data.bombLevel, new int[6] { 3, 5, 5, 10, 15, 100 })); upgrades.Add(new Upgrade(Game, new Rectangle(385, 150, 117, 150), new string[6] { "Avoid enemies", "Air time = 1.6", "Air time = 1.7", "Air time = 1.8", "Recharge time = 5", "Maxed" }, "Jump lv.", '\\', Data.jumpLevel, new int[6] { 5, 5, 10, 10, 15, 100 })); base.Initialize(); }
private void LoadOptions() { Active = new bool[NomMenuItems.Length]; MenuItems = new Text[NomMenuItems.Length]; for (int i = 0; i < NomMenuItems.Length; ++i) { MenuItems[i] = new Text(Game, new Rectangle(PosX, 200 - 28 * i, X, 20), NomMenuItems[i], Color.Green, 3); Active[i] = false; } }