chore: Removes dead gump code (#2403)
This commit is contained in:
parent
5b6ea0c3b5
commit
c0d75562be
28 changed files with 460 additions and 724 deletions
|
|
@ -9,22 +9,20 @@ namespace Server.Gumps
|
|||
{
|
||||
public class SetPoint2DGump : Gump
|
||||
{
|
||||
private static readonly int CoordWidth = 105;
|
||||
private static readonly int EntryWidth = CoordWidth + OffsetSize + CoordWidth;
|
||||
private const int CoordWidth = 105;
|
||||
private const int EntryWidth = CoordWidth + OffsetSize + CoordWidth;
|
||||
|
||||
private static readonly int TotalWidth = OffsetSize + EntryWidth + OffsetSize + SetWidth + OffsetSize;
|
||||
private static readonly int TotalHeight = OffsetSize + 4 * (EntryHeight + OffsetSize);
|
||||
private const int TotalWidth = OffsetSize + EntryWidth + OffsetSize + SetWidth + OffsetSize;
|
||||
private const int TotalHeight = OffsetSize + 4 * (EntryHeight + OffsetSize);
|
||||
|
||||
private static readonly int BackWidth = BorderSize + TotalWidth + BorderSize;
|
||||
private static readonly int BackHeight = BorderSize + TotalHeight + BorderSize;
|
||||
private const int BackWidth = BorderSize + TotalWidth + BorderSize;
|
||||
private const int BackHeight = BorderSize + TotalHeight + BorderSize;
|
||||
private readonly Mobile m_Mobile;
|
||||
private readonly object m_Object;
|
||||
private readonly PropertyInfo m_Property;
|
||||
private readonly PropertiesGump m_PropertiesGump;
|
||||
|
||||
public SetPoint2DGump(
|
||||
PropertyInfo prop, Mobile mobile, object o, PropertiesGump propertiesGump
|
||||
)
|
||||
public SetPoint2DGump(PropertyInfo prop, Mobile mobile, object o, PropertiesGump propertiesGump)
|
||||
: base(GumpOffsetX, GumpOffsetY)
|
||||
{
|
||||
m_PropertiesGump = propertiesGump;
|
||||
|
|
@ -37,13 +35,7 @@ namespace Server.Gumps
|
|||
AddPage(0);
|
||||
|
||||
AddBackground(0, 0, BackWidth, BackHeight, BackGumpID);
|
||||
AddImageTiled(
|
||||
BorderSize,
|
||||
BorderSize,
|
||||
TotalWidth - (OldStyle ? SetWidth + OffsetSize : 0),
|
||||
TotalHeight,
|
||||
OffsetGumpID
|
||||
);
|
||||
AddImageTiled(BorderSize, BorderSize, TotalWidth, TotalHeight, OffsetGumpID);
|
||||
|
||||
var x = BorderSize + OffsetSize;
|
||||
var y = BorderSize + OffsetSize;
|
||||
|
|
@ -179,9 +171,8 @@ namespace Server.Gumps
|
|||
private readonly PropertyInfo m_Property;
|
||||
private readonly PropertiesGump m_PropertiesGump;
|
||||
|
||||
public InternalTarget(
|
||||
PropertyInfo prop, Mobile mobile, object o, PropertiesGump propertiesGump
|
||||
) : base(-1, true, TargetFlags.None)
|
||||
public InternalTarget(PropertyInfo prop, Mobile mobile, object o, PropertiesGump propertiesGump)
|
||||
: base(-1, true, TargetFlags.None)
|
||||
{
|
||||
m_Property = prop;
|
||||
m_Mobile = mobile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue