Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
#region References
|
||||
using Server.Gumps;
|
||||
#endregion
|
||||
|
||||
namespace Knives.TownHouses
|
||||
{
|
||||
public class ButtonPlus : GumpButton
|
||||
{
|
||||
private readonly string c_Name;
|
||||
private readonly object c_Callback;
|
||||
private readonly object c_Param;
|
||||
|
||||
public string Name { get { return c_Name; } }
|
||||
|
||||
public ButtonPlus(int x, int y, int normalID, int pressedID, int buttonID, string name, GumpCallback back)
|
||||
: base(x, y, normalID, pressedID, buttonID, GumpButtonType.Reply, 0)
|
||||
{
|
||||
c_Name = name;
|
||||
c_Callback = back;
|
||||
c_Param = "";
|
||||
}
|
||||
|
||||
public ButtonPlus(
|
||||
int x,
|
||||
int y,
|
||||
int normalID,
|
||||
int pressedID,
|
||||
int buttonID,
|
||||
string name,
|
||||
GumpStateCallback back,
|
||||
object param)
|
||||
: base(x, y, normalID, pressedID, buttonID, GumpButtonType.Reply, 0)
|
||||
{
|
||||
c_Name = name;
|
||||
c_Callback = back;
|
||||
c_Param = param;
|
||||
}
|
||||
|
||||
public void Invoke()
|
||||
{
|
||||
if (c_Callback is GumpCallback)
|
||||
{
|
||||
((GumpCallback)c_Callback)();
|
||||
}
|
||||
else if (c_Callback is GumpStateCallback)
|
||||
{
|
||||
((GumpStateCallback)c_Callback)(c_Param);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user