fwiffo

Member
in the way the GUMP is displayed it omits some lines, for example, if we have 2 lines dedicated to "GameMaster" and "Counselor" it will jump two commands in the successive page.

a simple fix:

change:
Code:
                int last = (int)AccessLevel.Player - 1;

                for (int i = this.m_Page * EntriesPerPage, line = 0; line < EntriesPerPage && i < this.m_List.Count; ++i, ++line)
                {
                    CommandInfo c = this.m_List[i];
                    if (from.AccessLevel >= c.AccessLevel)
                    {
                        if ((int)c.AccessLevel != last)
                        {
                            this.AddNewLine();

                            this.AddEntryHtml(20 + this.OffsetSize + 160, this.Color(c.AccessLevel.ToString(), 0xFF0000));
                            this.AddEntryHeader(20);
                            line++;
                        }

with this:
Code:
                int last = (int)AccessLevel.Player - 1;

                for (int i = this.m_Page * EntriesPerPage, line = 0, extra = 0; line < EntriesPerPage + extra && i < this.m_List.Count; ++i, ++line)
                {
                    CommandInfo c = this.m_List[i];
                    if (from.AccessLevel >= c.AccessLevel)
                    {
                        if ((int)c.AccessLevel != last)
                        {
                            this.AddNewLine();

                            this.AddEntryHtml(20 + this.OffsetSize + 160, this.Color(c.AccessLevel.ToString(), 0xFF0000));
                            this.AddEntryHeader(20);
                            line++;
                           extra++;
                        }
 
It isn't very necessary, but since I have some commands HIDDEN it hurts, this is a very old bug in this gump. and actually no one fixed it!
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back