Adds missing gump components. (#111)
This commit is contained in:
parent
18b7cee52a
commit
c116dff3e8
25 changed files with 531 additions and 1045 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue