示例#1
0
//	Uncomment the line below to use a defined number instead of the standard Stat Cap
//		private int Cap;

        public StatBallGump(PlayerMobile from, StatBall ball) : base(50, 50)
        {
            m_From = from;
            m_Ball = ball;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddBackground(50, 50, 437, 215, 2620);
            this.AddLabel(200, 67, 1160, "Stat Ball Selection");
            this.AddLabel(114, 96, 1160, "Choose your Strength, Dexterity, and Intelligence");
            this.AddLabel(84, 156, 1152, "STR");
            this.AddLabel(228, 156, 1152, "DEX");
            this.AddLabel(368, 156, 1152, "INT");
            this.AddTextEntry(134, 156, 50, 20, 1359, 0, "50");
            this.AddTextEntry(278, 156, 50, 20, 1359, 1, "50");
            this.AddTextEntry(411, 156, 50, 20, 1359, 2, "50");
            this.AddButton(405, 221, 238, 240, 4, GumpButtonType.Reply, 0);

//  Swap these comment lines if using custom Cap variable.  Then set the number in the gump display here
//  Remember to comment out ALL 3 lines, and uncomment the 1 line.
            this.AddLabel(114, 200, 1152, "* Stat totals should equal ");
            this.AddLabel(282, 200, 1152, m_From.StatCap.ToString());
            this.AddLabel(313, 200, 1152, "*");
//			this.AddLabel(114, 200, 1152, "* Stat totals should equal 200 *");
        }
示例#2
0
		public StatBallGump( PlayerMobile from, StatBall ball ): base( 50, 50 )
		{
			m_From = from;
			m_Ball = ball;
			
			this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
			this.AddBackground(50, 50, 437, 215, 2620);
			this.AddLabel(200, 67, 1160, "Stat Ball Selection");
			this.AddLabel(114, 96, 1160, "Choose your Strength, Dexterity, and Intelligence");
			this.AddLabel(84, 156, 1152, "STR");
			this.AddLabel(228, 156, 1152, "DEX");
			this.AddLabel(368, 156, 1152, "INT");
			this.AddTextEntry(134, 156, 50, 20, 1359, 0, "50");
			this.AddTextEntry(278, 156, 50, 20, 1359, 1, "50");
			this.AddTextEntry(411, 156, 50, 20, 1359, 2, "50");
			this.AddButton(405, 221, 238, 240, 4, GumpButtonType.Reply, 0);
			
//  Swap these comment lines if using custom Cap variable.  Then set the number in the gump display here
//  Remember to comment out ALL 3 lines, and uncomment the 1 line.
//			this.AddLabel(114, 200, 1152, "* Stat totals should equal ");
//			this.AddLabel(282, 200, 1152, m_From.StatCap.ToString() );
//			this.AddLabel(313, 200, 1152, "*");
			this.AddLabel(114, 200, 1152, "* Stat totals should equal 200 *");
			this.AddLabel(110, 215, 1152, "* Minium 10 points in each stat *");
		}
示例#3
0
		public StatBallGump( PlayerMobile from, StatBall ball ): base( 50, 50 )
		{
			m_From = from;
			m_Ball = ball;
			
			this.Closable=true;
			this.Disposable=true;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
			this.AddBackground(50, 50, 437, 215, 9200);
			this.AddLabel(200, 67, 1160, "Stat Ball Selection");
			this.AddLabel(114, 96, 1160, "Choose your Strength, Dexterity, and Intelligence");
			this.AddLabel(84, 156, 1152, "STR");
			this.AddLabel(228, 156, 1152, "DEX");
			this.AddLabel(368, 156, 1152, "INT");
			this.AddTextEntry(134, 156, 50, 20, 1359, 0, "50");
			this.AddTextEntry(278, 156, 50, 20, 1359, 1, "50");
			this.AddTextEntry(411, 156, 50, 20, 1359, 2, "50");
			this.AddButton(405, 221, 238, 240, 4, GumpButtonType.Reply, 0);
			this.AddLabel(114, 200, 1152, "* Stat totals should equal ");
			this.AddLabel(282, 200, 1152, m_From.StatCap.ToString() );
			this.AddLabel(313, 200, 1152, "*");


		}
        public StatBallGump(PlayerMobile from, StatBall ball) : base(50, 50)
        {
            m_From = from;
            m_Ball = ball;

            if (statcap <= 0)
            {
                statcap = m_From.StatCap;
            }
            if (defaultStr <= 0)
            {
                defaultStr = 50;
            }
            if (defaultDex <= 0)
            {
                defaultDex = 50;
            }
            if (defaultInt <= 0)
            {
                defaultInt = 50;
            }
            if (maxStr <= 0)
            {
                maxStr = 100;
            }
            if (maxDex <= 0)
            {
                maxDex = 100;
            }
            if (maxInt <= 0)
            {
                maxInt = 100;
            }

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddBackground(50, 50, 437, 215, 9200);
            this.AddLabel(200, 67, 1160, "Stat Ball Selection");
            this.AddLabel(114, 96, 1160, "Choose your Strength, Dexterity, and Intelligence");
            this.AddLabel(69, 156, 1152, "STR");
            this.AddLabel(213, 156, 1152, "DEX");
            this.AddLabel(353, 156, 1152, "INT");
            this.AddTextEntry(109, 156, 32, 20, 1359, 0, defaultStr.ToString());
            this.AddTextEntry(253, 156, 32, 20, 1359, 1, defaultDex.ToString());
            this.AddTextEntry(393, 156, 32, 20, 1359, 2, defaultInt.ToString());
            this.AddLabel(139, 156, 1152, " / " + maxStr.ToString());
            this.AddLabel(283, 156, 1152, " / " + maxDex.ToString());
            this.AddLabel(423, 156, 1152, " / " + maxInt.ToString());
            this.AddButton(405, 221, 238, 240, 4, GumpButtonType.Reply, 0);
            this.AddLabel(140, 200, 1152, "* Stat totals should equal " + statcap + " *");
        }
示例#5
0
        public StatBallGump(PlayerMobile from, StatBall ball) : base(50, 50)
        {
            m_From = from;
            m_Ball = ball;

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddBackground(50, 50, 437, 215, 9200);
            this.AddLabel(200, 67, 1160, "Stat Ball Selection");
            this.AddLabel(114, 96, 1160, "Choose your Strength, Dexterity, and Intelligence");
            this.AddLabel(84, 156, 1152, "STR");
            this.AddLabel(228, 156, 1152, "DEX");
            this.AddLabel(368, 156, 1152, "INT");
            this.AddTextEntry(134, 156, 50, 20, 1359, 0, "50");
            this.AddTextEntry(278, 156, 50, 20, 1359, 1, "50");
            this.AddTextEntry(411, 156, 50, 20, 1359, 2, "50");
            this.AddButton(405, 221, 238, 240, 4, GumpButtonType.Reply, 0);
            this.AddLabel(114, 200, 1152, "* Stat totals should equal ");
            this.AddLabel(282, 200, 1152, m_From.StatCap.ToString());
            this.AddLabel(313, 200, 1152, "*");
        }