public override void Dispose() { if (HandlesAllInput) { game.chatInInputBuffer = textInput.buffer.ToString(); game.CursorVisible = false; } else { game.chatInInputBuffer = null; } chatFont.Dispose(); chatUrlFont.Dispose(); announcementFont.Dispose(); normalChat.Dispose(); textInput.DisposeFully(); status.Dispose(); bottomRight.Dispose(); clientStatus.Dispose(); announcement.Dispose(); game.Events.ChatReceived -= ChatReceived; game.Events.ChatFontChanged -= ChatFontChanged; game.Events.ColourCodesChanged -= ColourCodesChanged; }
void DisposeExtendedHelp() { if (extendedHelp == null) { return; } extendedHelp.Dispose(); extendedHelp = null; }