コード例 #1
0
            public PowerColumn(Mobile from, JediSpellbook book) : base(25, 25)
            {
                mBook           = book;
                this.Closable   = false;
                this.Disposable = true;
                this.Dragable   = true;
                this.Resizable  = false;

                AddPage(0);
                AddImage(0, 0, 11434);

                int icon   = 279;
                int button = 0;
                int r      = 53;

                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(2, r, button, button, icon, GumpButtonType.Reply, 0); AddImage(2, r, button, 2825);
                    if (book.names > 0)
                    {
                        AddLabel(57, (r + 8), 0x481, @"" + Server.Spells.Jedi.JediSpell.SpellInfo(icon, 1) + "");
                    }
                    r = r + 50;
                }
            }
コード例 #2
0
            public PowerRow(Mobile from, JediSpellbook book) : base(25, 25)
            {
                mBook           = book;
                this.Closable   = false;
                this.Disposable = true;
                this.Dragable   = true;
                this.Resizable  = false;

                AddPage(0);
                AddImage(0, 0, 11434);

                int icon   = 279;
                int button = 0;
                int r      = 57;

                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
                icon++; if (HasSpell(from, icon))
                {
                    button = (Int32.Parse(Server.Spells.Jedi.JediSpell.SpellInfo(icon, 11)));
                    AddButton(r, 0, button, button, icon, GumpButtonType.Reply, 0); AddImage(r, 0, button, 2825);
                    r = r + 50;
                }
            }