Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,37 @@
using System;
using Server;
using Server.Gumps;
namespace Knives.Utils
{
public class ButtonPlus : GumpButton
{
private string c_Name;
private object c_Callback;
private object c_Param;
public string Name{ get{ return c_Name; } }
public ButtonPlus( int x, int y, int normalID, int pressedID, int buttonID, string name, TimerCallback 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, TimerStateCallback 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 TimerCallback )
((TimerCallback)c_Callback).Invoke();
else if ( c_Callback is TimerStateCallback )
((TimerStateCallback)c_Callback).Invoke( c_Param );
}
}
}