コード例 #1
0
 public SpellCastersBoxTarget(SpellCastersBox key) : base( 18, false, TargetFlags.None )
 {
     m_Key = key;
 }
コード例 #2
0
 public SpellCastersBoxTarget(SpellCastersBox key) : base(18, false, TargetFlags.None)
 {
     m_Key = key;
 }
コード例 #3
0
		public SpellCastersBoxGump(PlayerMobile from, SpellCastersBox key) : base( 25, 25 )
        {
            m_From = from;
            m_Key = key;

            m_From.CloseGump(typeof(SpellCastersBoxGump));

            AddPage(0);

            AddBackground(50, 10, 455, 385, 5054);
            AddImageTiled(58, 20, 438, 366, 2624);
            AddAlphaRegion(58, 20, 438, 366);
  
            AddLabel(200, 25, 88, "Spell Caster's Box");

			AddLabel(125, 50, 0x486, "BlackPearl");
			AddButton(75, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(BlackPearl)))
				AddLabel(225, 50, 0x480, m_Key.Regs[typeof(BlackPearl)].ToString());
			else
				AddLabel(225, 50, 0x480, "0");

			AddLabel(125, 75, 0x486, "Bloodmoss");
			AddButton(75, 75, 4005, 4007, 2, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(Bloodmoss)))
				AddLabel(225, 75, 0x480, m_Key.Regs[typeof(Bloodmoss)].ToString());
			else
				AddLabel(225, 75, 0x480, "0");

			AddLabel(125, 100, 0x486, "Garlic");
			AddButton(75, 100, 4005, 4007, 3, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(Garlic)))
				AddLabel(225, 100, 0x480, m_Key.Regs[typeof(Garlic)].ToString());
			else
				AddLabel(225, 100, 0x480, "0");

			AddLabel(125, 125, 0x486, "Ginseng");
			AddButton(75, 125, 4005, 4007, 4, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(Ginseng)))
				AddLabel(225, 125, 0x480, m_Key.Regs[typeof(Ginseng)].ToString());
			else
				AddLabel(225, 125, 0x480, "0");

			AddLabel(125, 150, 0x486, "MandrakeRoot");
			AddButton(75, 150, 4005, 4007, 5, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(MandrakeRoot)))
				AddLabel(225, 150, 0x480, m_Key.Regs[typeof(MandrakeRoot)].ToString());
			else
				AddLabel(225, 150, 0x480, "0");

			AddLabel(125, 175, 0x486, "Nightshade");
			AddButton(75, 175, 4005, 4007, 6, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(Nightshade)))
				AddLabel(225, 175, 0x480, m_Key.Regs[typeof(Nightshade)].ToString());
			else
				AddLabel(225, 175, 0x480, "0");

			AddLabel(125, 200, 0x486, "SulfurousAsh");
			AddButton(75, 200, 4005, 4007, 7, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(SulfurousAsh)))
				AddLabel(225, 200, 0x480, m_Key.Regs[typeof(SulfurousAsh)].ToString());
			else
				AddLabel(225, 200, 0x480, "0");

			AddLabel(125, 225, 0x486, "SpidersSilk");
			AddButton(75, 225, 4005, 4007, 8, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(SpidersSilk)))
				AddLabel(225, 225, 0x480, m_Key.Regs[typeof(SpidersSilk)].ToString());
			else
				AddLabel(225, 225, 0x480, "0");

			AddLabel(125, 250, 0x486, "BatWing");
			AddButton(75, 250, 4005, 4007, 9, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(BatWing)))
				AddLabel(225, 250, 0x480, m_Key.Regs[typeof(BatWing)].ToString());
			else
				AddLabel(225, 250, 0x480, "0");

			AddLabel(125, 275, 0x486, "GraveDust");
			AddButton(75, 275, 4005, 4007, 10, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(GraveDust)))
				AddLabel(225, 275, 0x480, m_Key.Regs[typeof(GraveDust)].ToString());
			else
				AddLabel(225, 275, 0x480, "0");

			AddLabel(125, 300, 0x486, "DaemonBlood");
			AddButton(75, 300, 4005, 4007, 11, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(DaemonBlood)))
				AddLabel(225, 300, 0x480, m_Key.Regs[typeof(DaemonBlood)].ToString());
			else
				AddLabel(225, 300, 0x480, "0");

			AddLabel(125, 325, 0x486, "NoxCrystal");
			AddButton(75, 325, 4005, 4007, 12, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(NoxCrystal)))
				AddLabel(225, 325, 0x480, m_Key.Regs[typeof(NoxCrystal)].ToString());
			else
				AddLabel(225, 325, 0x480, "0");

			AddLabel(125, 350, 0x486, "PigIron");
			AddButton(75, 350, 4005, 4007, 13, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(PigIron)))
				AddLabel(225, 350, 0x480, m_Key.Regs[typeof(PigIron)].ToString());
			else
				AddLabel(225, 350, 0x480, "0");

			AddLabel(325, 50, 0x486, "Bone");
			AddLabel(425, 50, 0x480, key.Bone.ToString());
			AddButton(275, 50, 4005, 4007, 18, GumpButtonType.Reply, 0);

			AddLabel(325, 75, 0x486, "Daemon Bone");
			AddButton(275, 75, 4005, 4007, 19, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(DaemonBone)))
				AddLabel(425, 75, 0x480, m_Key.Regs[typeof(DaemonBone)].ToString());
			else
				AddLabel(425, 75, 0x480, "0");
			
			AddLabel(325, 100, 0x486, "BlankScroll");
			AddLabel(425, 100, 0x480, key.BlankScroll.ToString());
			AddButton(275, 100, 4005, 4007, 20, GumpButtonType.Reply, 0);

			AddLabel(325, 125, 0x486, "Sand");
			AddLabel(425, 125, 0x480, key.Sand.ToString());
			AddButton(275, 125, 4005, 4007, 21, GumpButtonType.Reply, 0);

			AddLabel(325, 150, 0x486, "Beeswax");
			AddLabel(425, 150, 0x480, key.Beeswax.ToString());
			AddButton(275, 150, 4005, 4007, 17, GumpButtonType.Reply, 0);

			AddLabel(325, 175, 0x486, "Spring Water");
			AddButton(275, 175, 4005, 4007, 14, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(SpringWater)))
				AddLabel(425, 175, 0x480, m_Key.Regs[typeof(SpringWater)].ToString());
			else
				AddLabel(425, 175, 0x480, "0");

			AddLabel(325, 200, 0x486, "Petrafied Wood");
			AddButton(275, 200, 4005, 4007, 15, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(PetrafiedWood)))
				AddLabel(425, 200, 0x480, m_Key.Regs[typeof(PetrafiedWood)].ToString());
			else
				AddLabel(425, 200, 0x480, "0");
			
			AddLabel(325, 225, 0x486, "Destroying Angel");
			AddButton(275, 225, 4005, 4007, 16, GumpButtonType.Reply, 0);
			if (m_Key.Regs.ContainsKey(typeof(DestroyingAngel)))
				AddLabel(425, 225, 0x480, m_Key.Regs[typeof(DestroyingAngel)].ToString());
			else
				AddLabel(425, 225, 0x480, "0");

			AddLabel(325, 250, 88, "Each Max:" );
			AddLabel(425, 250, 0x480, key.StorageLimit.ToString() );	

            AddLabel(325, 275, 88, "Add resource or item");
            AddButton(275, 275, 4005, 4007, 22, GumpButtonType.Reply, 0);
        }
コード例 #4
0
        public SpellCastersBoxGump(PlayerMobile from, SpellCastersBox key) : base(25, 25)
        {
            m_From = from;
            m_Key  = key;

            m_From.CloseGump(typeof(SpellCastersBoxGump));

            AddPage(0);

            AddBackground(50, 10, 455, 385, 5054);
            AddImageTiled(58, 20, 438, 366, 2624);
            AddAlphaRegion(58, 20, 438, 366);

            AddLabel(200, 25, 88, "Spell Caster's Box");

            AddLabel(125, 50, 0x486, "BlackPearl");
            AddButton(75, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(BlackPearl)))
            {
                AddLabel(225, 50, 0x480, m_Key.Regs[typeof(BlackPearl)].ToString());
            }
            else
            {
                AddLabel(225, 50, 0x480, "0");
            }

            AddLabel(125, 75, 0x486, "Bloodmoss");
            AddButton(75, 75, 4005, 4007, 2, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(Bloodmoss)))
            {
                AddLabel(225, 75, 0x480, m_Key.Regs[typeof(Bloodmoss)].ToString());
            }
            else
            {
                AddLabel(225, 75, 0x480, "0");
            }

            AddLabel(125, 100, 0x486, "Garlic");
            AddButton(75, 100, 4005, 4007, 3, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(Garlic)))
            {
                AddLabel(225, 100, 0x480, m_Key.Regs[typeof(Garlic)].ToString());
            }
            else
            {
                AddLabel(225, 100, 0x480, "0");
            }

            AddLabel(125, 125, 0x486, "Ginseng");
            AddButton(75, 125, 4005, 4007, 4, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(Ginseng)))
            {
                AddLabel(225, 125, 0x480, m_Key.Regs[typeof(Ginseng)].ToString());
            }
            else
            {
                AddLabel(225, 125, 0x480, "0");
            }

            AddLabel(125, 150, 0x486, "MandrakeRoot");
            AddButton(75, 150, 4005, 4007, 5, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(MandrakeRoot)))
            {
                AddLabel(225, 150, 0x480, m_Key.Regs[typeof(MandrakeRoot)].ToString());
            }
            else
            {
                AddLabel(225, 150, 0x480, "0");
            }

            AddLabel(125, 175, 0x486, "Nightshade");
            AddButton(75, 175, 4005, 4007, 6, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(Nightshade)))
            {
                AddLabel(225, 175, 0x480, m_Key.Regs[typeof(Nightshade)].ToString());
            }
            else
            {
                AddLabel(225, 175, 0x480, "0");
            }

            AddLabel(125, 200, 0x486, "SulfurousAsh");
            AddButton(75, 200, 4005, 4007, 7, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(SulfurousAsh)))
            {
                AddLabel(225, 200, 0x480, m_Key.Regs[typeof(SulfurousAsh)].ToString());
            }
            else
            {
                AddLabel(225, 200, 0x480, "0");
            }

            AddLabel(125, 225, 0x486, "SpidersSilk");
            AddButton(75, 225, 4005, 4007, 8, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(SpidersSilk)))
            {
                AddLabel(225, 225, 0x480, m_Key.Regs[typeof(SpidersSilk)].ToString());
            }
            else
            {
                AddLabel(225, 225, 0x480, "0");
            }

            AddLabel(125, 250, 0x486, "BatWing");
            AddButton(75, 250, 4005, 4007, 9, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(BatWing)))
            {
                AddLabel(225, 250, 0x480, m_Key.Regs[typeof(BatWing)].ToString());
            }
            else
            {
                AddLabel(225, 250, 0x480, "0");
            }

            AddLabel(125, 275, 0x486, "GraveDust");
            AddButton(75, 275, 4005, 4007, 10, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(GraveDust)))
            {
                AddLabel(225, 275, 0x480, m_Key.Regs[typeof(GraveDust)].ToString());
            }
            else
            {
                AddLabel(225, 275, 0x480, "0");
            }

            AddLabel(125, 300, 0x486, "DaemonBlood");
            AddButton(75, 300, 4005, 4007, 11, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(DaemonBlood)))
            {
                AddLabel(225, 300, 0x480, m_Key.Regs[typeof(DaemonBlood)].ToString());
            }
            else
            {
                AddLabel(225, 300, 0x480, "0");
            }

            AddLabel(125, 325, 0x486, "NoxCrystal");
            AddButton(75, 325, 4005, 4007, 12, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(NoxCrystal)))
            {
                AddLabel(225, 325, 0x480, m_Key.Regs[typeof(NoxCrystal)].ToString());
            }
            else
            {
                AddLabel(225, 325, 0x480, "0");
            }

            AddLabel(125, 350, 0x486, "PigIron");
            AddButton(75, 350, 4005, 4007, 13, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(PigIron)))
            {
                AddLabel(225, 350, 0x480, m_Key.Regs[typeof(PigIron)].ToString());
            }
            else
            {
                AddLabel(225, 350, 0x480, "0");
            }

            AddLabel(325, 50, 0x486, "Bone");
            AddLabel(425, 50, 0x480, key.Bone.ToString());
            AddButton(275, 50, 4005, 4007, 18, GumpButtonType.Reply, 0);

            AddLabel(325, 75, 0x486, "Daemon Bone");
            AddButton(275, 75, 4005, 4007, 19, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(DaemonBone)))
            {
                AddLabel(425, 75, 0x480, m_Key.Regs[typeof(DaemonBone)].ToString());
            }
            else
            {
                AddLabel(425, 75, 0x480, "0");
            }

            AddLabel(325, 100, 0x486, "BlankScroll");
            AddLabel(425, 100, 0x480, key.BlankScroll.ToString());
            AddButton(275, 100, 4005, 4007, 20, GumpButtonType.Reply, 0);

            AddLabel(325, 125, 0x486, "Sand");
            AddLabel(425, 125, 0x480, key.Sand.ToString());
            AddButton(275, 125, 4005, 4007, 21, GumpButtonType.Reply, 0);

            AddLabel(325, 150, 0x486, "Beeswax");
            AddLabel(425, 150, 0x480, key.Beeswax.ToString());
            AddButton(275, 150, 4005, 4007, 17, GumpButtonType.Reply, 0);

            AddLabel(325, 175, 0x486, "Spring Water");
            AddButton(275, 175, 4005, 4007, 14, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(SpringWater)))
            {
                AddLabel(425, 175, 0x480, m_Key.Regs[typeof(SpringWater)].ToString());
            }
            else
            {
                AddLabel(425, 175, 0x480, "0");
            }

            AddLabel(325, 200, 0x486, "Petrafied Wood");
            AddButton(275, 200, 4005, 4007, 15, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(PetrafiedWood)))
            {
                AddLabel(425, 200, 0x480, m_Key.Regs[typeof(PetrafiedWood)].ToString());
            }
            else
            {
                AddLabel(425, 200, 0x480, "0");
            }

            AddLabel(325, 225, 0x486, "Destroying Angel");
            AddButton(275, 225, 4005, 4007, 16, GumpButtonType.Reply, 0);
            if (m_Key.Regs.ContainsKey(typeof(DestroyingAngel)))
            {
                AddLabel(425, 225, 0x480, m_Key.Regs[typeof(DestroyingAngel)].ToString());
            }
            else
            {
                AddLabel(425, 225, 0x480, "0");
            }

            AddLabel(325, 250, 88, "Each Max:");
            AddLabel(425, 250, 0x480, key.StorageLimit.ToString());

            AddLabel(325, 275, 88, "Add resource or item");
            AddButton(275, 275, 4005, 4007, 22, GumpButtonType.Reply, 0);
        }