Initial commit
This commit is contained in:
Executable
+50
@@ -0,0 +1,50 @@
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.CustomSystems
|
||||
{
|
||||
public class RoyalMintGump : Gump
|
||||
{
|
||||
private readonly Mobile m_From;
|
||||
private readonly RoyalMintOfficial m_NPC;
|
||||
|
||||
public RoyalMintGump(Mobile from, RoyalMintOfficial npc)
|
||||
: base(50, 50)
|
||||
{
|
||||
m_From = from;
|
||||
m_NPC = npc;
|
||||
|
||||
Closable = true;
|
||||
Dragable = true;
|
||||
|
||||
AddPage(0);
|
||||
|
||||
AddBackground(0, 0, 350, 250, 9270);
|
||||
AddLabel(110, 20, 1152, "Royal Mint Services");
|
||||
|
||||
AddButton(40, 70, 4005, 4007, 1, GumpButtonType.Reply, 0);
|
||||
AddLabel(80, 70, 0x34, "Consolidate Your Notes");
|
||||
|
||||
AddButton(40, 120, 4005, 4007, 2, GumpButtonType.Reply, 0);
|
||||
AddLabel(80, 120, 0x34, "Purchase Mint Box (5000)");
|
||||
|
||||
AddButton(40, 170, 4017, 4019, 0, GumpButtonType.Reply, 0);
|
||||
AddLabel(80, 170, 0x34, "Close");
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
{
|
||||
switch (info.ButtonID)
|
||||
{
|
||||
case 1:
|
||||
m_NPC.ConsolidateNotes(m_From);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
m_NPC.PurchaseMintBox(m_From);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user