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.ColourCodeChanged -= ColourCodeChanged;
        }
Example #2
0
 void DisposeExtendedHelp()
 {
     if (extHelp == null)
     {
         return;
     }
     extHelp.Dispose();
     extHelp = null;
 }
Example #3
0
        protected override void ContextLost()
        {
            if (HandlesAllInput)
            {
                chatInInputBuffer = input.Text.ToString();
            }
            else
            {
                chatInInputBuffer = null;
            }

            normalChat.Dispose();
            input.Dispose();
            altText.Dispose();
            status.Dispose();
            bottomRight.Dispose();
            clientStatus.Dispose();
            announcement.Dispose();
        }