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:
with this:
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++;
}