コード例 #1
0
            public InternalGump(Mobile from, ToxicFireAreaWeaponDeed 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, "Area Axes");
                AddLabel(75, 85, 59, "Area Bows");
                AddLabel(75, 115, 59, "Area Knives");
                AddLabel(75, 145, 59, "Area Maces");
                AddLabel(75, 175, 59, "Area Pole Arms");
                AddLabel(75, 205, 59, "Area Spears and Forks");
                AddLabel(75, 235, 59, "Area Staves");
                AddLabel(75, 265, 59, "Area 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, "Area Axe");
                AddLabel(75, 85, 59, "Area Battle Axe");
                AddLabel(75, 115, 59, "Area Double Axe");
                AddLabel(75, 145, 59, "Area Executioner's Axe");
                AddLabel(75, 175, 59, "Area Hatchet");
                AddLabel(75, 205, 59, "Area Large Battle Axe");
                AddLabel(75, 235, 59, "Area Pickaxe");
                AddLabel(75, 265, 59, "Area Two Handed Axe");
                AddLabel(75, 295, 59, "Area 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, "Area Bow");
                AddLabel(75, 85, 59, "Area Composite Bow");
                AddLabel(75, 115, 59, "Area Crossbow");
                AddLabel(75, 145, 59, "Area Heavy Crossbow");
                AddLabel(75, 175, 59, "Area 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, "Area Butcher Knife");
                AddLabel(75, 85, 59, "Area Cleaver");
                AddLabel(75, 115, 59, "Area Dagger");
                AddLabel(75, 145, 59, "Area 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, "Area Club");
                AddLabel(75, 85, 59, "Area Hammer Pick");
                AddLabel(75, 115, 59, "Area Mace");
                AddLabel(75, 145, 59, "Area Maul");
                AddLabel(75, 175, 59, "Area Scepter");
                AddLabel(75, 205, 59, "Area War Hammer");
                AddLabel(75, 235, 59, "Area 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, "Area Bardiche");
                AddLabel(75, 85, 59, "Area Halberd");
                AddLabel(75, 115, 59, "Area 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, "Area Bladed Staff");
                AddLabel(75, 85, 59, "Area Double Bladed Staff");
                AddLabel(75, 115, 59, "Area Pike");
                AddLabel(75, 145, 59, "Area Pitchfork");
                AddLabel(75, 175, 59, "Area Short Spear");
                AddLabel(75, 205, 59, "Area Spear");
                AddLabel(75, 235, 59, "Area 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, "Area Black Staff");
                AddLabel(75, 85, 59, "Area Gnarled Staff");
                AddLabel(75, 115, 59, "Area Quarter Staff");
                AddLabel(75, 145, 59, "Area 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, "Area Bone Harvester");
                AddLabel(75, 85, 59, "Area Broad Sword");
                AddLabel(75, 115, 59, "Area Crescent Blade");
                AddLabel(75, 145, 59, "Area Cutlass");
                AddLabel(75, 175, 59, "Area Katana");
                AddLabel(75, 205, 59, "Area Kryss");
                AddLabel(75, 235, 59, "Area Lance");
                AddLabel(75, 265, 59, "Area Long Sword");
                AddLabel(75, 295, 59, "Area Scimitar");
                AddLabel(75, 325, 59, "Area 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, ToxicFireAreaWeaponDeed 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, "Area Axes");
				AddLabel( 75,  85, 59, "Area Bows");
				AddLabel( 75, 115, 59, "Area Knives");
				AddLabel( 75, 145, 59, "Area Maces");
				AddLabel( 75, 175, 59, "Area Pole Arms");
				AddLabel( 75, 205, 59, "Area Spears and Forks");
				AddLabel( 75, 235, 59, "Area Staves");
				AddLabel( 75, 265, 59, "Area 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, "Area Axe");
				AddLabel( 75,  85, 59, "Area Battle Axe");
				AddLabel( 75, 115, 59, "Area Double Axe");
				AddLabel( 75, 145, 59, "Area Executioner's Axe");
				AddLabel( 75, 175, 59, "Area Hatchet");
				AddLabel( 75, 205, 59, "Area Large Battle Axe");
				AddLabel( 75, 235, 59, "Area Pickaxe");
				AddLabel( 75, 265, 59, "Area Two Handed Axe");
				AddLabel( 75, 295, 59, "Area 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, "Area Bow");
				AddLabel( 75,  85, 59, "Area Composite Bow");
				AddLabel( 75, 115, 59, "Area Crossbow");
				AddLabel( 75, 145, 59, "Area Heavy Crossbow");
				AddLabel( 75, 175, 59, "Area 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, "Area Butcher Knife");
				AddLabel( 75,  85, 59, "Area Cleaver");
				AddLabel( 75, 115, 59, "Area Dagger");
				AddLabel( 75, 145, 59, "Area 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, "Area Club");
				AddLabel( 75,  85, 59, "Area Hammer Pick");
				AddLabel( 75, 115, 59, "Area Mace");
				AddLabel( 75, 145, 59, "Area Maul");
				AddLabel( 75, 175, 59, "Area Scepter");
				AddLabel( 75, 205, 59, "Area War Hammer");
				AddLabel( 75, 235, 59, "Area 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, "Area Bardiche");
				AddLabel( 75,  85, 59, "Area Halberd");
				AddLabel( 75, 115, 59, "Area 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, "Area Bladed Staff");
				AddLabel( 75,  85, 59, "Area Double Bladed Staff");
				AddLabel( 75, 115, 59, "Area Pike");
				AddLabel( 75, 145, 59, "Area Pitchfork");
				AddLabel( 75, 175, 59, "Area Short Spear");
				AddLabel( 75, 205, 59, "Area Spear");
				AddLabel( 75, 235, 59, "Area 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, "Area Black Staff");
				AddLabel( 75,  85, 59, "Area Gnarled Staff");
				AddLabel( 75, 115, 59, "Area Quarter Staff");
				AddLabel( 75, 145, 59, "Area 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, "Area Bone Harvester");
				AddLabel( 75,  85, 59, "Area Broad Sword");
				AddLabel( 75, 115, 59, "Area Crescent Blade");
				AddLabel( 75, 145, 59, "Area Cutlass");
				AddLabel( 75, 175, 59, "Area Katana");
				AddLabel( 75, 205, 59, "Area Kryss");
				AddLabel( 75, 235, 59, "Area Lance");
				AddLabel( 75, 265, 59, "Area Long Sword");
				AddLabel( 75, 295, 59, "Area Scimitar");
				AddLabel( 75, 325, 59, "Area 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 );
			}