Switches to Kestrel (#102)
This commit is contained in:
parent
70fddfebde
commit
2c0d97cd36
141 changed files with 1040 additions and 1679 deletions
|
|
@ -29,13 +29,13 @@ namespace Server.Gumps
|
|||
{
|
||||
private static uint m_NextSerial = 1;
|
||||
|
||||
private static byte[] m_BeginLayout = StringToBuffer("{ ");
|
||||
private static byte[] m_EndLayout = StringToBuffer(" }");
|
||||
private static readonly byte[] m_BeginLayout = StringToBuffer("{ ");
|
||||
private static readonly byte[] m_EndLayout = StringToBuffer(" }");
|
||||
|
||||
private static byte[] m_NoMove = StringToBuffer("{ nomove }");
|
||||
private static byte[] m_NoClose = StringToBuffer("{ noclose }");
|
||||
private static byte[] m_NoDispose = StringToBuffer("{ nodispose }");
|
||||
private static byte[] m_NoResize = StringToBuffer("{ noresize }");
|
||||
private static readonly byte[] m_NoMove = StringToBuffer("{ nomove }");
|
||||
private static readonly byte[] m_NoClose = StringToBuffer("{ noclose }");
|
||||
private static readonly byte[] m_NoDispose = StringToBuffer("{ nodispose }");
|
||||
private static readonly byte[] m_NoResize = StringToBuffer("{ noresize }");
|
||||
private bool m_Closable = true;
|
||||
private bool m_Disposable = true;
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ namespace Server.Gumps
|
|||
private bool m_Resizable = true;
|
||||
|
||||
private uint m_Serial;
|
||||
private List<string> m_Strings;
|
||||
private readonly List<string> m_Strings;
|
||||
|
||||
internal int m_TextEntries, m_Switches;
|
||||
private int m_X, m_Y;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpAlphaRegion : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("checkertrans");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("checkertrans");
|
||||
private int m_Width, m_Height;
|
||||
private int m_X, m_Y;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpBackground : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("resizepic");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("resizepic");
|
||||
private int m_GumpID;
|
||||
private int m_Width, m_Height;
|
||||
private int m_X, m_Y;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Server.Gumps
|
|||
|
||||
public class GumpButton : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("button");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("button");
|
||||
private int m_ButtonID;
|
||||
private int m_ID1, m_ID2;
|
||||
private int m_Param;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpCheck : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("checkbox");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("checkbox");
|
||||
private int m_ID1, m_ID2;
|
||||
private bool m_InitialState;
|
||||
private int m_SwitchID;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpGroup : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("group");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("group");
|
||||
private int m_Group;
|
||||
|
||||
public GumpGroup(int group) => m_Group = group;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpHtml : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("htmlgump");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("htmlgump");
|
||||
private bool m_Background, m_Scrollbar;
|
||||
private string m_Text;
|
||||
private int m_Width, m_Height;
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@ namespace Server.Gumps
|
|||
|
||||
public class GumpHtmlLocalized : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutNamePlain = Gump.StringToBuffer("xmfhtmlgump");
|
||||
private static byte[] m_LayoutNameColor = Gump.StringToBuffer("xmfhtmlgumpcolor");
|
||||
private static byte[] m_LayoutNameArgs = Gump.StringToBuffer("xmfhtmltok");
|
||||
private static readonly byte[] m_LayoutNamePlain = Gump.StringToBuffer("xmfhtmlgump");
|
||||
private static readonly byte[] m_LayoutNameColor = Gump.StringToBuffer("xmfhtmlgumpcolor");
|
||||
private static readonly byte[] m_LayoutNameArgs = Gump.StringToBuffer("xmfhtmltok");
|
||||
private string m_Args;
|
||||
private bool m_Background, m_Scrollbar;
|
||||
private int m_Color;
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpImage : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("gumppic");
|
||||
private static byte[] m_HueEquals = Gump.StringToBuffer(" hue=");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("gumppic");
|
||||
private static readonly byte[] m_HueEquals = Gump.StringToBuffer(" hue=");
|
||||
private int m_GumpID;
|
||||
private int m_Hue;
|
||||
private int m_X, m_Y;
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpImageTileButton : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("buttontileart");
|
||||
private static byte[] m_LayoutTooltip = Gump.StringToBuffer(" }{ tooltip");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("buttontileart");
|
||||
private static readonly byte[] m_LayoutTooltip = Gump.StringToBuffer(" }{ tooltip");
|
||||
private int m_ButtonID;
|
||||
private int m_Height;
|
||||
private int m_Hue;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpImageTiled : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("gumppictiled");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("gumppictiled");
|
||||
private int m_GumpID;
|
||||
private int m_Width, m_Height;
|
||||
private int m_X, m_Y;
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpItem : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("tilepic");
|
||||
private static byte[] m_LayoutNameHue = Gump.StringToBuffer("tilepichue");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("tilepic");
|
||||
private static readonly byte[] m_LayoutNameHue = Gump.StringToBuffer("tilepichue");
|
||||
private int m_Hue;
|
||||
private int m_ItemID;
|
||||
private int m_X, m_Y;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpItemProperty : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("itemproperty");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("itemproperty");
|
||||
private uint m_Serial;
|
||||
|
||||
public GumpItemProperty(uint serial) => m_Serial = serial;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpLabel : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("text");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("text");
|
||||
private int m_Hue;
|
||||
private string m_Text;
|
||||
private int m_X, m_Y;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpLabelCropped : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("croppedtext");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("croppedtext");
|
||||
private int m_Hue;
|
||||
private string m_Text;
|
||||
private int m_Width, m_Height;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpPage : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("page");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("page");
|
||||
private int m_Page;
|
||||
|
||||
public GumpPage(int page) => m_Page = page;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpRadio : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("radio");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("radio");
|
||||
private int m_ID1, m_ID2;
|
||||
private bool m_InitialState;
|
||||
private int m_SwitchID;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpTextEntry : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("textentry");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("textentry");
|
||||
private int m_EntryID;
|
||||
private int m_Hue;
|
||||
private string m_InitialText;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpTextEntryLimited : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("textentrylimited");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("textentrylimited");
|
||||
private int m_EntryID;
|
||||
private int m_Hue;
|
||||
private string m_InitialText;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Gumps
|
|||
{
|
||||
public class GumpTooltip : GumpEntry
|
||||
{
|
||||
private static byte[] m_LayoutName = Gump.StringToBuffer("tooltip");
|
||||
private static readonly byte[] m_LayoutName = Gump.StringToBuffer("tooltip");
|
||||
private int m_Number;
|
||||
|
||||
public GumpTooltip(int number) => m_Number = number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue