public BlueSkillBallGump(Mobile m, BlueSkillBall ball) : base(25, 25) { _Ball = ball; AllowedTotal = ball.AllowedTotal; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage(0); AddBackground(0, 0, 570, 470, 9270); // Main Background AddLabel(15, 15, 1365, "Skill Selection"); AddButton(137, 15, 247, 248, 1, GumpButtonType.Reply, 0); if (AllowedTotal == -1) { AddLabel(209, 16, 1365, "Maximium total allowed via this ball: " + (m.SkillsCap / 10).ToString()); } else { AddLabel(209, 16, 1365, "Maximium total allowed via this ball: " + AllowedTotal.ToString()); } int x = 0, y = 0; for (int i = 0; i < m.Skills.Length; i++) { x = ((i % 4) * 135) + 15; y = ((i / 4) * 25) + 45; AddBackground(x, y, 135, 25, 9200); AddLabel(x + 5, y + 5, 0, Enum.GetName(typeof(SkillName), i) + ":"); AddTextEntry(x + 100, y + 2, 30, 20, 0, i, "0"); /* * AddBackground( 15, 45, 135, 25, 9200 ); * AddLabel( 20, 50, 0, "Lumberjacking" ); * AddTextEntry( 115, 47, 30, 20, 0, (int)Buttons.SKILLONETextEntry, @"" ); * * AddBackground( 150, 45, 135, 25, 9200 ); * AddLabel( 155, 50, 0, "Lumberjacking" ); * AddTextEntry( 250, 47, 30, 20, 0, (int)Buttons.SKILLTWOTextEntry, @"" ); * * AddBackground( 15, 70, 135, 25, 9200 ); * AddLabel( 20, 75, 0, "Lumberjacking" ); * AddTextEntry( 115, 73, 30, 20, 0, (int)Buttons.SKILLTHREETextEntry, @"" ); * * AddBackground( 285, 44, 135, 25, 9200 ); * AddLabel( 290, 49, 0, @"Lumberjacking" ); * AddTextEntry( 385, 46, 30, 20, 0, (int)Buttons.CopyofSKILLONETextEntry, @"" ); * AddBackground( 420, 44, 135, 25, 9200 ); * AddLabel( 425, 49, 0, @"Lumberjacking" ); * AddTextEntry( 520, 46, 30, 20, 0, (int)Buttons.CopyofSKILLTWOTextEntry, @"" ); */ } }
public BlueSkillBallGump( Mobile m, BlueSkillBall ball ) : base( 25, 25 ) { _Ball = ball; AllowedTotal = ball.AllowedTotal; Closable = true; Disposable = true; Dragable = true; Resizable = false; AddPage( 0 ); AddBackground( 0, 0, 570, 470, 9270 ); // Main Background AddLabel( 15, 15, 1365, "Skill Selection" ); AddButton( 137, 15, 247, 248, 1, GumpButtonType.Reply, 0 ); if ( AllowedTotal == -1 ) AddLabel( 209, 16, 1365, "Maximium total allowed via this ball: " + (m.SkillsCap / 10).ToString() ); else AddLabel( 209, 16, 1365, "Maximium total allowed via this ball: " + AllowedTotal.ToString() ); int x = 0, y = 0; for( int i = 0; i < m.Skills.Length; i++ ) { x = ((i % 4) * 135) + 15; y = ((i / 4) * 25) + 45; AddBackground( x, y, 135, 25, 9200 ); AddLabel( x + 5, y + 5, 0, Enum.GetName( typeof( SkillName ), i ) + ":" ); AddTextEntry( x + 100, y + 2, 30, 20, 0, i, "0" ); /* AddBackground( 15, 45, 135, 25, 9200 ); AddLabel( 20, 50, 0, "Lumberjacking" ); AddTextEntry( 115, 47, 30, 20, 0, (int)Buttons.SKILLONETextEntry, @"" ); AddBackground( 150, 45, 135, 25, 9200 ); AddLabel( 155, 50, 0, "Lumberjacking" ); AddTextEntry( 250, 47, 30, 20, 0, (int)Buttons.SKILLTWOTextEntry, @"" ); AddBackground( 15, 70, 135, 25, 9200 ); AddLabel( 20, 75, 0, "Lumberjacking" ); AddTextEntry( 115, 73, 30, 20, 0, (int)Buttons.SKILLTHREETextEntry, @"" ); AddBackground( 285, 44, 135, 25, 9200 ); AddLabel( 290, 49, 0, @"Lumberjacking" ); AddTextEntry( 385, 46, 30, 20, 0, (int)Buttons.CopyofSKILLONETextEntry, @"" ); AddBackground( 420, 44, 135, 25, 9200 ); AddLabel( 425, 49, 0, @"Lumberjacking" ); AddTextEntry( 520, 46, 30, 20, 0, (int)Buttons.CopyofSKILLTWOTextEntry, @"" ); */ } }