public static void OnLogin(LoginEventArgs e) { PlayerMobile pm = e.Mobile as PlayerMobile; SpeechLog log = pm.SpeechLog ?? new SpeechLog(); if (Config.AutoRefreshEnabled) { pm.SendGump(new HistoryAutoRefreshGump(pm, log)); } else { pm.SendGump(new HistoryGump(pm, log)); } }
static void OnCommand(CommandEventArgs e) { PlayerMobile pm = e.Mobile as PlayerMobile; SpeechLog log = pm.SpeechLog ?? new SpeechLog(); pm.CloseGump(typeof(HistoryGump)); if (Config.AutoRefreshEnabled) { pm.CloseGump(typeof(HistoryAutoRefreshGump)); pm.SendGump(new HistoryAutoRefreshGump(pm, log)); } else { pm.SendGump(new HistoryGump(pm, log)); } }
public PageEntry(Mobile sender, string message, PageType type) { _sender = sender; _timeSent = DateTime.Now; _message = message; _type = type; _location = sender.Location; _map = sender.Map; if (Server.Engines.Help.SpeechLog.Enabled) { PlayerMobile pm = sender as PlayerMobile; if (pm != null && pm.SpeechLog != null) { _speechLog = pm.SpeechLog; } } }
public HistoryGump(Mobile player, SpeechLog log) : this(player, new List <SpeechLogEntry>(log)) { }
public HistoryAutoRefreshGump(Mobile player, SpeechLog log) : base(player, log) { }