Adds missing gump components. (#111)

This commit is contained in:
Kamron Batman 2020-04-24 21:31:31 -07:00 • committed by GitHub
parent 18b7cee52a
commit c116dff3e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 531 additions and 1045 deletions

View file

@ -25,22 +25,17 @@ namespace Server.Gumps
public class GumpPage : GumpEntry
{
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("page");
private int m_Page;
public GumpPage(int page) => m_Page = page;
public GumpPage(int page) => Page = page;
public int Page
{
get => m_Page;
set => Delta(ref m_Page, value);
}
public int Page { get; set; }
public override string Compile(NetState ns) => $"{{ page {m_Page} }}";
public override string Compile(NetState ns) => $"{{ page {Page} }}";
public override void AppendTo(NetState ns, IGumpWriter disp)
{
disp.AppendLayout(m_LayoutName);
disp.AppendLayout(m_Page);
disp.AppendLayout(Page);
}
}
}
}