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,57 @@
using System;
using System.Collections.Generic;
using System.Text;
using Server.Items;
using Server.Gumps;
using Server.Network;
namespace Server.ACC.YS
{
public class YardSecurityGump : Gump
{
BaseDoor m_Gate;
Mobile m_From;
public YardSecurityGump(Mobile from, BaseDoor gate)
: base(50, 50)
{
m_Gate = gate;
m_From = from;
this.Closable = true;
this.Disposable = true;
this.Dragable = true;
this.Resizable = false;
this.AddPage(0);
this.AddBackground(0, 0, 200, 100, 9250);
this.AddLabel(58, 13, 0, @"SET ACCESS");
this.AddButton(131, 38, 1150, 1152, (int)Buttons.Unlock, GumpButtonType.Reply, 0);
this.AddButton(40, 38, 1153, 1155, (int)Buttons.Lock, GumpButtonType.Reply, 0);
this.AddLabel(38, 58, 0, @"Lock");
this.AddLabel(123, 58, 0, @"Unlock");
}
public enum Buttons
{
Lock,
Unlock,
}
public override void OnResponse(NetState state, RelayInfo info)
{
switch (info.ButtonID)
{
case (int)Buttons.Lock:
{
m_Gate.Locked = true;
m_From.SendMessage("You lock your gate");
break;
}
case (int)Buttons.Unlock:
{
m_Gate.Locked = false;
m_From.SendMessage("You unlock your gate");
break;
}
}
}
}
}