public ListMenuOption(Point icon, string text, Point position, Scene menu) { this.gotoMenu = (Menu) menu; base.Init(icon, text, "LIST", position, 0x2b); }
public void InitGame() { this.player = ObjectFactory.CreateObjectOfType(this.initialTransform); this.globals = new List<GlobalVar>(); this.statusBar = new StatusBar(); this.playerStats = new PlayerStatus(); this.playerStats.SetTransform(this.initialTransform, true); this.playerStats.MedicineContainers = 1; this.secondaryWeapons[0] = new SecondaryWeapon(ObjectType.Fireball, SoundEffects.Fireball); this.secondaryWeapons[1] = new SecondaryWeapon(ObjectType.Tornado, SoundEffects.Tornado); this.secondaryWeapons[2] = new SecondaryWeapon(ObjectType.Arrow, SoundEffects.Arrow); this.secondaryWeapons[3] = new SecondaryWeapon(ObjectType.Boomerang, SoundEffects.Boomerang); this.secondaryWeapons[4] = new SecondaryWeapon(ObjectType.Lightning, SoundEffects.GotHit); this.secondaryWeapons[0].Count = 2; this.secondaryWeapons[1].Count = 0; this.secondaryWeapons[2].Count = 0; this.secondaryWeapons[3].Count = 0; this.secondaryWeapons[4].Count = 0; this.arms[0] = new EquipableItem("LEGENDARY", 0x9b, EquipItemType.Arm); this.arms[1] = new EquipableItem("IVORY", 8, EquipItemType.Arm); this.arms[2] = new EquipableItem("MITHRIL", 12, EquipItemType.Arm); this.arms[3] = new EquipableItem("SHOGUN BLADE", 0x23, EquipItemType.Arm); this.arms[4] = new EquipableItem("CRYSTAL", 100, EquipItemType.Arm); this.arms[5] = new EquipableItem("MAGICAL SABER", 0, EquipItemType.Arm); this.arms[6] = new EquipableItem("THUNDER SABER", 0, EquipItemType.Arm); this.arms[7] = new EquipableItem("LUCKY", 40, EquipItemType.Arm); this.arms[8] = new EquipableItem("MURAMASA BLADE", 0x19, EquipItemType.Arm, ObjectType.Tiger, 0x3a); this.arms[9] = new EquipableItem("TASMANIAN", 0x55, EquipItemType.Arm); this.shields[0] = new EquipableItem("LEGENDARY", 180, EquipItemType.Shield); this.shields[1] = new EquipableItem("IVORY", 3, EquipItemType.Shield); this.shields[2] = new EquipableItem("MITHRIL", 10, EquipItemType.Shield); this.shields[3] = new EquipableItem("SHOGUN", 30, EquipItemType.Shield); this.shields[4] = new EquipableItem("CRYSTAL", 150, EquipItemType.Shield); this.shields[5] = new EquipableItem("KNIGHT", 0, EquipItemType.Shield); this.shields[6] = new EquipableItem("DANCING", 40, EquipItemType.Shield); this.shields[7] = new EquipableItem("AQUA", 15, EquipItemType.Shield, ObjectType.Piranha, 50); this.shields[8] = new EquipableItem("MASTER", 70, EquipItemType.Shield); this.shields[9] = new EquipableItem("HEAVENLY", 0, EquipItemType.Shield, ObjectType.Hawk, 200); this.armor[0] = new EquipableItem("LEGENDARY", 0xb9, EquipItemType.Armor); this.armor[1] = new EquipableItem("IVORY", 3, EquipItemType.Armor); this.armor[2] = new EquipableItem("MITHRIL", 12, EquipItemType.Armor); this.armor[3] = new EquipableItem("SHOGUN LAMELLAR", 0x23, EquipItemType.Armor); this.armor[4] = new EquipableItem("CRYSTAL", 160, EquipItemType.Armor); this.armor[5] = new EquipableItem("CRYSTAL BREAKER", 0, EquipItemType.Armor); this.armor[6] = new EquipableItem("SAMURAI", 0x39, EquipItemType.Armor); this.armor[7] = new EquipableItem("DRAGON MAIL", 40, EquipItemType.Armor); this.armor[8] = new EquipableItem("PRINCE", 0x4b, EquipItemType.Armor); this.armor[9] = new EquipableItem("HADES", 120, EquipItemType.Armor); Menu menu = new Menu("ARM", new Point(1, 0), new Point(5, 0)); Menu menu2 = new Menu("SHIELD", new Point(2, 0), new Point(5, 0)); Menu menu3 = new Menu("ARMOR", new Point(3, 0), new Point(5, 0)); Menu menu4 = new Menu("STATUS", new Point(0, 0), new Point(4, 0)); this.armMenu = menu; this.shieldMenu = menu2; this.armorMenu = menu3; this.menu = menu4; int x = 0x3a; int y = 0x58; foreach (EquipableItem item in this.arms) { menu.AddMenuOption(new EquipMenuOption(new Point(x, y), item)); y += 0x18; if (y > 200) { y = 0x58; x = 0x99; } } menu.GobackScene = menu4; x = 0x3a; y = 0x58; foreach (EquipableItem item2 in this.shields) { menu2.AddMenuOption(new EquipMenuOption(new Point(x, y), item2)); y += 0x18; if (y > 200) { y = 0x58; x = 0x99; } } menu2.GobackScene = menu4; x = 0x3a; y = 0x58; foreach (EquipableItem item3 in this.armor) { menu3.AddMenuOption(new EquipMenuOption(new Point(x, y), item3)); y += 0x18; if (y > 200) { y = 0x58; x = 0x99; } } menu3.GobackScene = menu4; menu4.AddMenuOption(new ListMenuOption(new Point(1, 0), "ARM", new Point(0x3a, 0x58), this.armMenu)); menu4.AddMenuOption(new ListMenuOption(new Point(2, 0), "SHIELD", new Point(0x3a, 0x70), this.shieldMenu)); menu4.AddMenuOption(new ListMenuOption(new Point(3, 0), "ARMOR", new Point(0x3a, 0x88), this.armorMenu)); menu4.AddMenuOption(new ItemMenuOption(new Point(0, 2), "STONE", 5, new Point(0x3a, 160), ObjectType.Stone)); menu4.AddMenuOption(new ItemMenuOption(new Point(1, 1), "KEY", 1, new Point(0x3a, 0xb8), ObjectType.Key)); menu4.AddMenuOption(new ItemMenuOption(new Point(0, 1), "FIRE BALL", 10, new Point(0x99, 0x58), this.secondaryWeapons[0])); menu4.AddMenuOption(new ItemMenuOption(new Point(2, 1), "TORNADO", 10, new Point(0x99, 0x70), this.secondaryWeapons[1])); menu4.AddMenuOption(new ItemMenuOption(new Point(3, 1), "ARROW", 10, new Point(0x99, 0x88), this.secondaryWeapons[2])); menu4.AddMenuOption(new ItemMenuOption(new Point(1, 2), "BOOMERANG", 10, new Point(0x99, 160), this.secondaryWeapons[3])); menu4.AddMenuOption(new ItemMenuOption(new Point(2, 2), "THUNDER", 10, new Point(0x99, 0xb8), this.secondaryWeapons[4])); menu.GobackScene = menu4; menu2.GobackScene = menu4; menu3.GobackScene = menu4; if (!this.inCastle) { this.ResetStats(); } }