public CentralGumpUI(PlayerMobile user, CentralGumpProfile profile, CentralGumpType type) : base(user, null, 115, 0) { Profile = profile; GumpType = type; CanMove = true; Modal = false; var html = new StringBuilder(); if (String.IsNullOrEmpty(News)) { html.Append("<CENTER><BIG>Welcome to Ultima Online Forever!</BIG>\n"); html.Append( "<a href=\"http://www.uoforever.com\">UOForever Website</a> - <a href=\"http://www.uoforum.com\">UOForever Forums</a> - <a href=\"http://www.uoforever.com/chat/\">UOForever Chat</a>\n"); html.Append( "Forum News and Announcements - <a href=\"http://www.uoforum.com/forums/news.4/\">News and Announcements</a>\n"); html.Append( "Looking for tips or mechanic info? - <a href=\"http://www.uofwiki.com\">Check Out the UOF Wiki</a>\n"); html.Append( "Keep UO Forever the best shard in the world - <a href=\"http://www.uoforever.com/donate.php\">Donate Today</a></CENTER>"); foreach (Message message in CentralGump.Messages.Values.OrderByDescending(x => x.Date)) { html.Append(message.Title); html.Append(message.Content + "\n"); } } News = html.ToString().ParseBBCode(Color.GhostWhite); }
public CentralGumpUIList(PlayerMobile user, CentralGumpProfile profile, int x, int y) : base(user, null, x, y) { CanMove = true; Modal = false; EntriesPerPage = 8; ForceRecompile = true; Profile = profile; }
private static bool DeserializePlayerProfiles(GenericReader reader) { reader.GetVersion(); reader.ReadBlockDictionary( () => { var e = reader.ReadMobile <PlayerMobile>(); var p = new CentralGumpProfile(reader); return(new KeyValuePair <PlayerMobile, CentralGumpProfile>(e, p)); }, PlayerProfiles); return(true); }
public static CentralGumpProfile EnsureProfile(PlayerMobile pm) { if (pm == null) return null; CentralGumpProfile p; if (!PlayerProfiles.TryGetValue(pm, out p)) { PlayerProfiles.Add(pm, p = new CentralGumpProfile(pm)); } else if (p == null) { PlayerProfiles[pm] = p = new CentralGumpProfile(pm); } return p; }
public static CentralGumpProfile EnsureProfile(PlayerMobile pm) { if (pm == null) { return(null); } CentralGumpProfile p; if (!PlayerProfiles.TryGetValue(pm, out p)) { PlayerProfiles.Add(pm, p = new CentralGumpProfile(pm)); } else if (p == null) { PlayerProfiles[pm] = p = new CentralGumpProfile(pm); } return(p); }
private static bool DeserializePlayerProfiles(GenericReader reader) { reader.GetVersion(); reader.ReadBlockDictionary( () => { var e = reader.ReadMobile<PlayerMobile>(); var p = new CentralGumpProfile(reader); return new KeyValuePair<PlayerMobile, CentralGumpProfile>(e, p); }, PlayerProfiles); return true; }
public AllianceChatColorPicker(PlayerMobile user, CentralGumpProfile profile) : base(0xFAB) { User = user; Profile = profile; }