public static void OpenChat() { if (ChatManager.ChatIsEnabled == ChatStatus.Enabled) { ChatGump chatGump = UIManager.GetGump <ChatGump>(); if (chatGump == null) { UIManager.Add(new ChatGump()); } else { chatGump.SetInScreen(); chatGump.BringOnTop(); } } else if (ChatManager.ChatIsEnabled == ChatStatus.EnabledUserRequest) { ChatGumpChooseName chatGump = UIManager.GetGump <ChatGumpChooseName>(); if (chatGump == null) { UIManager.Add(new ChatGumpChooseName()); } else { chatGump.SetInScreen(); chatGump.BringOnTop(); } } }
public static void EventSink_Login(LoginEventArgs e) { SendGump((int)SETTINGS.Default_Tab, e.Mobile); ChatGump.SendBoxGump(e.Mobile); }
public static void EventSink_PlayerDeath(PlayerDeathEventArgs e) { SendGump((int)SETTINGS.Default_Tab, e.Mobile); ChatGump.SendBoxGump(e.Mobile); }