public PowerColumn(Mobile from, SythSpellbook book) : base(25, 25) { mBook = book; this.Closable = false; this.Disposable = true; this.Dragable = true; this.Resizable = false; AddPage(0); AddImage(0, 0, 11427); int icon = 269; int button = 0; int r = 53; icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 0x22); if (book.names > 0) { AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Syth.SythSpell.SpellInfo(icon, 1) + ""); } r = r + 50; } }
public PowerRow(Mobile from, SythSpellbook book) : base(25, 25) { mBook = book; this.Closable = false; this.Disposable = true; this.Dragable = true; this.Resizable = false; AddPage(0); AddImage(0, 0, 11427); int icon = 269; int button = 0; int r = 57; icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } icon++; if (HasSpell(from, icon)) { button = (Int32.Parse(Server.Spells.Syth.SythSpell.SpellInfo(icon, 11))); AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 0x22); r = r + 50; } }