コード例 #1
0
            public InternalGump(Mobile from, AncientWeaponDeed deed)
                : base(50, 50)
            {
                m_From = from;
                m_Deed = deed;

                from.CloseGump(typeof(InternalGump));

                AddPage(0);
                AddBackground(10, 10, 465, 405, 0xA28);

                AddImage(442, 35, 10441);

                AddPage(1);

                AddLabel(120, 25, 0x34, "Select the Type of Weapon you Prefer.");

                AddLabel(75, 55, 59, "Ancient Axes");
                AddLabel(75, 85, 59, "Ancient Bows");
                AddLabel(75, 115, 59, "Ancient Knives");
                AddLabel(75, 145, 59, "Ancient Maces");
                AddLabel(75, 175, 59, "Ancient Pole Arms");
                AddLabel(75, 205, 59, "Ancient Spears and Forks");
                AddLabel(75, 235, 59, "Ancient Staves");
                AddLabel(75, 265, 59, "Ancient Swords");

                AddButton(40, 58, 0x2623, 0x2622, 1, GumpButtonType.Page, 2);
                AddButton(40, 88, 0x2623, 0x2622, 2, GumpButtonType.Page, 3);
                AddButton(40, 118, 0x2623, 0x2622, 3, GumpButtonType.Page, 4);
                AddButton(40, 148, 0x2623, 0x2622, 4, GumpButtonType.Page, 5);
                AddButton(40, 178, 0x2623, 0x2622, 5, GumpButtonType.Page, 6);
                AddButton(40, 208, 0x2623, 0x2622, 6, GumpButtonType.Page, 7);
                AddButton(40, 238, 0x2623, 0x2622, 7, GumpButtonType.Page, 8);
                AddButton(40, 268, 0x2623, 0x2622, 8, GumpButtonType.Page, 9);

                AddPage(2);

                AddLabel(160, 25, 0x34, "Select the Axe you Desire.");

                AddLabel(75, 55, 59, "Ancient Axe");
                AddLabel(75, 85, 59, "Ancient Battle Axe");
                AddLabel(75, 115, 59, "Ancient Double Axe");
                AddLabel(75, 145, 59, "Ancient Executioner's Axe");
                AddLabel(75, 175, 59, "Ancient Hatchet");
                AddLabel(75, 205, 59, "Ancient Large Battle Axe");
                AddLabel(75, 235, 59, "Ancient Pickaxe");
                AddLabel(75, 265, 59, "Ancient Two Handed Axe");
                AddLabel(75, 295, 59, "Ancient War Axe");

                AddButton(40, 58, 0x2623, 0x2622, 1, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 2, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 3, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 4, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 5, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 6, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 7, GumpButtonType.Reply, 0);
                AddButton(40, 268, 0x2623, 0x2622, 8, GumpButtonType.Reply, 0);
                AddButton(40, 298, 0x2623, 0x2622, 9, GumpButtonType.Reply, 0);

                AddPage(3);

                AddLabel(160, 25, 0x34, "Select the Bow you Desire.");

                AddLabel(75, 55, 59, "Ancient Bow");
                AddLabel(75, 85, 59, "Ancient Composite Bow");
                AddLabel(75, 115, 59, "Ancient Crossbow");
                AddLabel(75, 145, 59, "Ancient Heavy Crossbow");
                AddLabel(75, 175, 59, "Ancient Repeating Crossbow");

                AddButton(40, 58, 0x2623, 0x2622, 10, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 11, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 12, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 13, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 14, GumpButtonType.Reply, 0);

                AddPage(4);

                AddLabel(160, 25, 0x34, "Select the Knife you Desire.");

                AddLabel(75, 55, 59, "Ancient Butcher Knife");
                AddLabel(75, 85, 59, "Ancient Cleaver");
                AddLabel(75, 115, 59, "Ancient Dagger");
                AddLabel(75, 145, 59, "Ancient Skinning Knife");

                AddButton(40, 58, 0x2623, 0x2622, 15, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 16, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 17, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 18, GumpButtonType.Reply, 0);

                AddPage(5);

                AddLabel(160, 25, 0x34, "Select the Mace you Desire.");

                AddLabel(75, 55, 59, "Ancient Club");
                AddLabel(75, 85, 59, "Ancient Hammer Pick");
                AddLabel(75, 115, 59, "Ancient Mace");
                AddLabel(75, 145, 59, "Ancient Maul");
                AddLabel(75, 175, 59, "Ancient Scepter");
                AddLabel(75, 205, 59, "Ancient War Hammer");
                AddLabel(75, 235, 59, "Ancient War Mace");

                AddButton(40, 58, 0x2623, 0x2622, 19, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 20, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 21, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 22, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 23, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 24, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 25, GumpButtonType.Reply, 0);

                AddPage(6);

                AddLabel(140, 25, 0x34, "Select the Pole Arm you Desire.");

                AddLabel(75, 55, 59, "Ancient Bardiche");
                AddLabel(75, 85, 59, "Ancient Halberd");
                AddLabel(75, 115, 59, "Ancient Scythe");

                AddButton(40, 58, 0x2623, 0x2622, 26, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 27, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 28, GumpButtonType.Reply, 0);

                AddPage(7);

                AddLabel(130, 25, 0x34, "Select the Spear or Fork you Desire.");

                AddLabel(75, 55, 59, "Ancient Bladed Staff");
                AddLabel(75, 85, 59, "Ancient Double Bladed Staff");
                AddLabel(75, 115, 59, "Ancient Pike");
                AddLabel(75, 145, 59, "Ancient Pitchfork");
                AddLabel(75, 175, 59, "Ancient Short Spear");
                AddLabel(75, 205, 59, "Ancient Spear");
                AddLabel(75, 235, 59, "Ancient War Fork");

                AddButton(40, 58, 0x2623, 0x2622, 29, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 30, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 31, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 32, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 33, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 34, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 35, GumpButtonType.Reply, 0);

                AddPage(8);

                AddLabel(160, 25, 0x34, "Select the Staff you Desire.");

                AddLabel(75, 55, 59, "Ancient Black Staff");
                AddLabel(75, 85, 59, "Ancient Gnarled Staff");
                AddLabel(75, 115, 59, "Ancient Quarter Staff");
                AddLabel(75, 145, 59, "Ancient Shepherd's Crook");

                AddButton(40, 58, 0x2623, 0x2622, 36, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 37, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 38, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 39, GumpButtonType.Reply, 0);

                AddPage(9);

                AddLabel(160, 25, 0x34, "Select the Sword you Desire.");

                AddLabel(75, 55, 59, "Ancient Bone Harvester");
                AddLabel(75, 85, 59, "Ancient Broad Sword");
                AddLabel(75, 115, 59, "Ancient Crescent Blade");
                AddLabel(75, 145, 59, "Ancient Cutlass");
                AddLabel(75, 175, 59, "Ancient Katana");
                AddLabel(75, 205, 59, "Ancient Kryss");
                AddLabel(75, 235, 59, "Ancient Lance");
                AddLabel(75, 265, 59, "Ancient Long Sword");
                AddLabel(75, 295, 59, "Ancient Scimitar");
                AddLabel(75, 325, 59, "Ancient Viking Sword");

                AddButton(40, 58, 0x2623, 0x2622, 40, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 41, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 42, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 43, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 44, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 45, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 46, GumpButtonType.Reply, 0);
                AddButton(40, 268, 0x2623, 0x2622, 47, GumpButtonType.Reply, 0);
                AddButton(40, 298, 0x2623, 0x2622, 48, GumpButtonType.Reply, 0);
                AddButton(40, 328, 0x2623, 0x2622, 48, GumpButtonType.Reply, 0);
            }
コード例 #2
0
            public InternalGump(Mobile from, AncientWeaponDeed deed)
                : base(50, 50)
            {
                m_From = from;
                m_Deed = deed;

                from.CloseGump(typeof(InternalGump));

                AddPage(0);
                AddBackground(10, 10, 465, 405, 0xA28);

                AddImage(442, 35, 10441);

                AddPage(1);

                AddLabel(120, 25, 0x34, "Select the Type of Weapon you Prefer.");

                AddLabel(75, 55, 59, "Ancient Axes");
                AddLabel(75, 85, 59, "Ancient Bows");
                AddLabel(75, 115, 59, "Ancient Knives");
                AddLabel(75, 145, 59, "Ancient Maces");
                AddLabel(75, 175, 59, "Ancient Pole Arms");
                AddLabel(75, 205, 59, "Ancient Spears and Forks");
                AddLabel(75, 235, 59, "Ancient Staves");
                AddLabel(75, 265, 59, "Ancient Swords");

                AddButton(40, 58, 0x2623, 0x2622, 1, GumpButtonType.Page, 2);
                AddButton(40, 88, 0x2623, 0x2622, 2, GumpButtonType.Page, 3);
                AddButton(40, 118, 0x2623, 0x2622, 3, GumpButtonType.Page, 4);
                AddButton(40, 148, 0x2623, 0x2622, 4, GumpButtonType.Page, 5);
                AddButton(40, 178, 0x2623, 0x2622, 5, GumpButtonType.Page, 6);
                AddButton(40, 208, 0x2623, 0x2622, 6, GumpButtonType.Page, 7);
                AddButton(40, 238, 0x2623, 0x2622, 7, GumpButtonType.Page, 8);
                AddButton(40, 268, 0x2623, 0x2622, 8, GumpButtonType.Page, 9);

                AddPage(2);

                AddLabel(160, 25, 0x34, "Select the Axe you Desire.");

                AddLabel(75, 55, 59, "Ancient Axe");
                AddLabel(75, 85, 59, "Ancient Battle Axe");
                AddLabel(75, 115, 59, "Ancient Double Axe");
                AddLabel(75, 145, 59, "Ancient Executioner's Axe");
                AddLabel(75, 175, 59, "Ancient Hatchet");
                AddLabel(75, 205, 59, "Ancient Large Battle Axe");
                AddLabel(75, 235, 59, "Ancient Pickaxe");
                AddLabel(75, 265, 59, "Ancient Two Handed Axe");
                AddLabel(75, 295, 59, "Ancient War Axe");

                AddButton(40, 58, 0x2623, 0x2622, 1, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 2, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 3, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 4, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 5, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 6, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 7, GumpButtonType.Reply, 0);
                AddButton(40, 268, 0x2623, 0x2622, 8, GumpButtonType.Reply, 0);
                AddButton(40, 298, 0x2623, 0x2622, 9, GumpButtonType.Reply, 0);

                AddPage(3);

                AddLabel(160, 25, 0x34, "Select the Bow you Desire.");

                AddLabel(75, 55, 59, "Ancient Bow");
                AddLabel(75, 85, 59, "Ancient Composite Bow");
                AddLabel(75, 115, 59, "Ancient Crossbow");
                AddLabel(75, 145, 59, "Ancient Heavy Crossbow");
                AddLabel(75, 175, 59, "Ancient Repeating Crossbow");

                AddButton(40, 58, 0x2623, 0x2622, 10, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 11, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 12, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 13, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 14, GumpButtonType.Reply, 0);

                AddPage(4);

                AddLabel(160, 25, 0x34, "Select the Knife you Desire.");

                AddLabel(75, 55, 59, "Ancient Butcher Knife");
                AddLabel(75, 85, 59, "Ancient Cleaver");
                AddLabel(75, 115, 59, "Ancient Dagger");
                AddLabel(75, 145, 59, "Ancient Skinning Knife");

                AddButton(40, 58, 0x2623, 0x2622, 15, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 16, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 17, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 18, GumpButtonType.Reply, 0);

                AddPage(5);

                AddLabel(160, 25, 0x34, "Select the Mace you Desire.");

                AddLabel(75, 55, 59, "Ancient Club");
                AddLabel(75, 85, 59, "Ancient Hammer Pick");
                AddLabel(75, 115, 59, "Ancient Mace");
                AddLabel(75, 145, 59, "Ancient Maul");
                AddLabel(75, 175, 59, "Ancient Scepter");
                AddLabel(75, 205, 59, "Ancient War Hammer");
                AddLabel(75, 235, 59, "Ancient War Mace");

                AddButton(40, 58, 0x2623, 0x2622, 19, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 20, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 21, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 22, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 23, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 24, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 25, GumpButtonType.Reply, 0);

                AddPage(6);

                AddLabel(140, 25, 0x34, "Select the Pole Arm you Desire.");

                AddLabel(75, 55, 59, "Ancient Bardiche");
                AddLabel(75, 85, 59, "Ancient Halberd");
                AddLabel(75, 115, 59, "Ancient Scythe");

                AddButton(40, 58, 0x2623, 0x2622, 26, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 27, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 28, GumpButtonType.Reply, 0);

                AddPage(7);

                AddLabel(130, 25, 0x34, "Select the Spear or Fork you Desire.");

                AddLabel(75, 55, 59, "Ancient Bladed Staff");
                AddLabel(75, 85, 59, "Ancient Double Bladed Staff");
                AddLabel(75, 115, 59, "Ancient Pike");
                AddLabel(75, 145, 59, "Ancient Pitchfork");
                AddLabel(75, 175, 59, "Ancient Short Spear");
                AddLabel(75, 205, 59, "Ancient Spear");
                AddLabel(75, 235, 59, "Ancient War Fork");

                AddButton(40, 58, 0x2623, 0x2622, 29, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 30, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 31, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 32, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 33, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 34, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 35, GumpButtonType.Reply, 0);

                AddPage(8);

                AddLabel(160, 25, 0x34, "Select the Staff you Desire.");

                AddLabel(75, 55, 59, "Ancient Black Staff");
                AddLabel(75, 85, 59, "Ancient Gnarled Staff");
                AddLabel(75, 115, 59, "Ancient Quarter Staff");
                AddLabel(75, 145, 59, "Ancient Shepherd's Crook");

                AddButton(40, 58, 0x2623, 0x2622, 36, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 37, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 38, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 39, GumpButtonType.Reply, 0);

                AddPage(9);

                AddLabel(160, 25, 0x34, "Select the Sword you Desire.");

                AddLabel(75, 55, 59, "Ancient Bone Harvester");
                AddLabel(75, 85, 59, "Ancient Broad Sword");
                AddLabel(75, 115, 59, "Ancient Crescent Blade");
                AddLabel(75, 145, 59, "Ancient Cutlass");
                AddLabel(75, 175, 59, "Ancient Katana");
                AddLabel(75, 205, 59, "Ancient Kryss");
                AddLabel(75, 235, 59, "Ancient Lance");
                AddLabel(75, 265, 59, "Ancient Long Sword");
                AddLabel(75, 295, 59, "Ancient Scimitar");
                AddLabel(75, 325, 59, "Ancient Viking Sword");

                AddButton(40, 58, 0x2623, 0x2622, 40, GumpButtonType.Reply, 0);
                AddButton(40, 88, 0x2623, 0x2622, 41, GumpButtonType.Reply, 0);
                AddButton(40, 118, 0x2623, 0x2622, 42, GumpButtonType.Reply, 0);
                AddButton(40, 148, 0x2623, 0x2622, 43, GumpButtonType.Reply, 0);
                AddButton(40, 178, 0x2623, 0x2622, 44, GumpButtonType.Reply, 0);
                AddButton(40, 208, 0x2623, 0x2622, 45, GumpButtonType.Reply, 0);
                AddButton(40, 238, 0x2623, 0x2622, 46, GumpButtonType.Reply, 0);
                AddButton(40, 268, 0x2623, 0x2622, 47, GumpButtonType.Reply, 0);
                AddButton(40, 298, 0x2623, 0x2622, 48, GumpButtonType.Reply, 0);
                AddButton(40, 328, 0x2623, 0x2622, 48, GumpButtonType.Reply, 0);
            }