Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
41
Scripts/Services/Town Cryer/Gumps/TownCryerCityGump.cs
Normal file
41
Scripts/Services/Town Cryer/Gumps/TownCryerCityGump.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Server;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Server.Mobiles;
|
||||
using Server.Gumps;
|
||||
|
||||
namespace Server.Services.TownCryer
|
||||
{
|
||||
public class TownCryerCityGump : BaseTownCryerGump
|
||||
{
|
||||
public TownCryerCityEntry Entry { get; private set; }
|
||||
|
||||
public TownCryerCityGump(PlayerMobile pm, TownCrier cryer, TownCryerCityEntry entry)
|
||||
: base(pm, cryer)
|
||||
{
|
||||
Entry = entry;
|
||||
}
|
||||
|
||||
public override void AddGumpLayout()
|
||||
{
|
||||
base.AddGumpLayout();
|
||||
|
||||
AddHtml(57, 155, 724, 20, Entry.Title, false, false);
|
||||
AddHtmlLocalized(57, 180, 724, 20, 1154760, Entry.Author, 0, false, false); // By: ~1_NAME~
|
||||
|
||||
AddHtml(57, 215, 724, 205, Entry.Body, false, false);
|
||||
|
||||
AddImage(85, 425, 0x5EF);
|
||||
}
|
||||
|
||||
public override void OnResponse(RelayInfo info)
|
||||
{
|
||||
if (info.ButtonID == 0)
|
||||
{
|
||||
var gump = new TownCryerGump(User, Cryer);
|
||||
gump.Category = TownCryerGump.GumpCategory.City;
|
||||
BaseGump.SendGump(gump);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user