AddGump fixes, thanks Carmina
This commit is contained in:
parent
88658b58e2
commit
b7bf6146c8
1 changed files with 10 additions and 7 deletions
|
|
@ -104,7 +104,10 @@ namespace Server.Gumps
|
||||||
if ( xml.NodeType == XmlNodeType.Element && xml.Name == "object" )
|
if ( xml.NodeType == XmlNodeType.Element && xml.Name == "object" )
|
||||||
nodes.Add( new CAGObject( this, xml ) );
|
nodes.Add( new CAGObject( this, xml ) );
|
||||||
else if ( xml.NodeType == XmlNodeType.Element && xml.Name == "category" )
|
else if ( xml.NodeType == XmlNodeType.Element && xml.Name == "category" )
|
||||||
nodes.Add( new CAGCategory( this, xml ) );
|
{
|
||||||
|
if( !xml.IsEmptyElement )
|
||||||
|
nodes.Add( new CAGCategory( this, xml ) );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
xml.Skip();
|
xml.Skip();
|
||||||
}
|
}
|
||||||
|
|
@ -155,6 +158,11 @@ namespace Server.Gumps
|
||||||
{
|
{
|
||||||
public static bool OldStyle = PropsConfig.OldStyle;
|
public static bool OldStyle = PropsConfig.OldStyle;
|
||||||
|
|
||||||
|
public static readonly int EntryHeight = 24;//PropsConfig.EntryHeight;
|
||||||
|
|
||||||
|
public static readonly int OffsetSize = PropsConfig.OffsetSize;
|
||||||
|
public static readonly int BorderSize = PropsConfig.BorderSize;
|
||||||
|
|
||||||
public static readonly int GumpOffsetX = PropsConfig.GumpOffsetX;
|
public static readonly int GumpOffsetX = PropsConfig.GumpOffsetX;
|
||||||
public static readonly int GumpOffsetY = PropsConfig.GumpOffsetY;
|
public static readonly int GumpOffsetY = PropsConfig.GumpOffsetY;
|
||||||
|
|
||||||
|
|
@ -182,11 +190,6 @@ namespace Server.Gumps
|
||||||
public static readonly int NextButtonID1 = PropsConfig.NextButtonID1;
|
public static readonly int NextButtonID1 = PropsConfig.NextButtonID1;
|
||||||
public static readonly int NextButtonID2 = PropsConfig.NextButtonID2;
|
public static readonly int NextButtonID2 = PropsConfig.NextButtonID2;
|
||||||
|
|
||||||
public static readonly int OffsetSize = PropsConfig.OffsetSize;
|
|
||||||
|
|
||||||
public static readonly int EntryHeight = 24;//PropsConfig.EntryHeight;
|
|
||||||
public static readonly int BorderSize = PropsConfig.BorderSize;
|
|
||||||
|
|
||||||
private static bool PrevLabel = false, NextLabel = false;
|
private static bool PrevLabel = false, NextLabel = false;
|
||||||
|
|
||||||
private static readonly int PrevLabelOffsetX = PrevWidth + 1;
|
private static readonly int PrevLabelOffsetX = PrevWidth + 1;
|
||||||
|
|
@ -380,4 +383,4 @@ namespace Server.Gumps
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue