public override void Dispose() { if (HandlesAllInput) { game.chatInInputBuffer = textInput.chatInputText.ToString(); if (game.CursorVisible) { game.CursorVisible = false; } } else { game.chatInInputBuffer = null; } chatFont.Dispose(); chatItalicFont.Dispose(); chatBoldFont.Dispose(); chatUnderlineFont.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; }
public override void Dispose() { if (HandlesAllInput) { game.chatInInputBuffer = textInput.chatInputText.ToString(); if (game.CursorVisible) { game.CursorVisible = false; } } else { game.chatInInputBuffer = null; } chatFont.Dispose(); chatInputFont.Dispose(); chatUnderlineFont.Dispose(); announcementFont.Dispose(); normalChat.Dispose(); textInput.DisposeFully(); status.Dispose(); bottomRight.Dispose(); graphicsApi.DeleteTexture(ref announcementTex); game.Events.ChatReceived -= ChatReceived; game.Events.ChatFontChanged -= ChatFontChanged; }