41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|
|
} |