Upgrades gumps to allow netstate specific compilation/appends. (#7)
This commit is contained in:
parent
d8ed7c1da9
commit
5d61205240
22 changed files with 69 additions and 71 deletions
|
|
@ -89,7 +89,7 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
public override string Compile()
|
||||
public override string Compile( NetState ns )
|
||||
{
|
||||
if ( m_Hue == 0 )
|
||||
return String.Format( "{{ tilepic {0} {1} {2} }}", m_X, m_Y, m_ItemID );
|
||||
|
|
@ -100,7 +100,7 @@ namespace Server.Gumps
|
|||
private static byte[] m_LayoutName = Gump.StringToBuffer( "tilepic" );
|
||||
private static byte[] m_LayoutNameHue = Gump.StringToBuffer( "tilepichue" );
|
||||
|
||||
public override void AppendTo( IGumpWriter disp )
|
||||
public override void AppendTo( NetState ns, IGumpWriter disp )
|
||||
{
|
||||
disp.AppendLayout( m_Hue == 0 ? m_LayoutName : m_LayoutNameHue );
|
||||
disp.AppendLayout( m_X );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue