public InternalGump( Mobile mobile, MidnightWatchSkillScroll scroll )
                : base(25, 50)
            {
                m_Mobile = mobile;
                m_Scroll = scroll;

                AddPage( 0 );

                AddBackground( 25, 10, 840, 570, 5054 );

                AddHtml( 40, 20, 260, 30, "Skill Scroll", true, false );

                // Add skill entries
                SkillInfo[] table = SkillInfo.Table;
                string name = "";
                int fakeIndex = 0;
                for ( int i = 0; i < 17; i++) {
                    name = table[i].Name;
                    fakeIndex += 1;

                    if (name == "Discordance" || name == "Peacemaking")
                    {
                        fakeIndex = fakeIndex - 1;
                        continue;
                    }

                    AddHtml( 40, 60 + (fakeIndex * 30), 220, 30, name, true, false );
                    AddButton( 260, 65 + (fakeIndex * 30), 4005, 4007, i + 1, GumpButtonType.Reply, 0 );
                }

                fakeIndex = 0;
                for ( int i = 17; i < 34; i++) {
                    name = table[i].Name;
                    fakeIndex += 1;

                    if (name == "Provocation" || name == "Spirit Speak")
                    {
                        fakeIndex = fakeIndex - 1;
                        continue;
                    }

                    AddHtml( 310, 60 + (fakeIndex * 30), 220, 30, name, true, false );
                    AddButton( 530, 65 + (fakeIndex * 30), 4005, 4007, i + 1, GumpButtonType.Reply, 0 );
                }

                fakeIndex = 0;
                for ( int i = 34; i < 49; i++) {
                    name = table[i].Name;
                    fakeIndex += 1;

                    if (name == "Spirit Speak")
                    {
                        fakeIndex = fakeIndex - 1;
                        continue;
                    }

                    AddHtml( 580, 60 + (fakeIndex * 30), 220, 30, name, true, false );
                    AddButton( 800, 65 + (fakeIndex * 30), 4005, 4007, i + 1, GumpButtonType.Reply, 0 );
                }

                fakeIndex += 1;

                // Evil skills
                AddHtml( 40, 60 + (fakeIndex * 30), 220, 30, "Spirit Speak", true, false );
                AddButton( 260, 65 + (fakeIndex * 30), 4005, 4007, 32 + 1, GumpButtonType.Reply, 0 );

                AddHtml( 310, 60 + (fakeIndex * 30), 220, 30, "Necromancy", true, false );
                AddButton( 530, 65 + (fakeIndex * 30), 4005, 4007, 49 + 1, GumpButtonType.Reply, 0 );

                AddHtml( 580, 60 + (fakeIndex * 30), 220, 30, "DESTROY", true, false );
                AddButton( 800, 65 + (fakeIndex * 30), 4005, 4007, 31337 + 1, GumpButtonType.Reply, 0 );
            }
Example #2
0
            public InternalGump(Mobile mobile, MidnightWatchSkillScroll scroll) : base(25, 50)
            {
                m_Mobile = mobile;
                m_Scroll = scroll;

                AddPage(0);

                AddBackground(25, 10, 840, 570, 5054);

                AddHtml(40, 20, 260, 30, "Skill Scroll", true, false);

                // Add skill entries
                SkillInfo[] table     = SkillInfo.Table;
                string      name      = "";
                int         fakeIndex = 0;

                for (int i = 0; i < 17; i++)
                {
                    name       = table[i].Name;
                    fakeIndex += 1;

                    if (name == "Discordance" || name == "Peacemaking")
                    {
                        fakeIndex = fakeIndex - 1;
                        continue;
                    }

                    AddHtml(40, 60 + (fakeIndex * 30), 220, 30, name, true, false);
                    AddButton(260, 65 + (fakeIndex * 30), 4005, 4007, i + 1, GumpButtonType.Reply, 0);
                }

                fakeIndex = 0;
                for (int i = 17; i < 34; i++)
                {
                    name       = table[i].Name;
                    fakeIndex += 1;

                    if (name == "Provocation" || name == "Spirit Speak")
                    {
                        fakeIndex = fakeIndex - 1;
                        continue;
                    }

                    AddHtml(310, 60 + (fakeIndex * 30), 220, 30, name, true, false);
                    AddButton(530, 65 + (fakeIndex * 30), 4005, 4007, i + 1, GumpButtonType.Reply, 0);
                }

                fakeIndex = 0;
                for (int i = 34; i < 49; i++)
                {
                    name       = table[i].Name;
                    fakeIndex += 1;

                    if (name == "Spirit Speak")
                    {
                        fakeIndex = fakeIndex - 1;
                        continue;
                    }

                    AddHtml(580, 60 + (fakeIndex * 30), 220, 30, name, true, false);
                    AddButton(800, 65 + (fakeIndex * 30), 4005, 4007, i + 1, GumpButtonType.Reply, 0);
                }

                fakeIndex += 1;

                // Evil skills
                AddHtml(40, 60 + (fakeIndex * 30), 220, 30, "Spirit Speak", true, false);
                AddButton(260, 65 + (fakeIndex * 30), 4005, 4007, 32 + 1, GumpButtonType.Reply, 0);

                AddHtml(310, 60 + (fakeIndex * 30), 220, 30, "Necromancy", true, false);
                AddButton(530, 65 + (fakeIndex * 30), 4005, 4007, 49 + 1, GumpButtonType.Reply, 0);

                AddHtml(580, 60 + (fakeIndex * 30), 220, 30, "DESTROY", true, false);
                AddButton(800, 65 + (fakeIndex * 30), 4005, 4007, 31337 + 1, GumpButtonType.Reply, 0);
            }