Exemplo n.º 1
0
        void ColourCodeChanged(object sender, ColourCodeEventArgs e)
        {
            if (gfx.LostContext)
            {
                return;
            }

            altText.UpdateColours();
            Recreate(normalChat, e.Code); Recreate(status, e.Code);
            Recreate(bottomRight, e.Code); Recreate(clientStatus, e.Code);
            input.Recreate();
        }
Exemplo n.º 2
0
        void ColCodeChanged(char code)
        {
            if (game.Graphics.LostContext)
            {
                return;
            }

            altText.UpdateCols();
            Recreate(normalChat, code); Recreate(status, code);
            Recreate(bottomRight, code); Recreate(clientStatus, code);

            // Some servers have plugins that redefine colours constantly
            // Preserve caret accumulator so caret blinking stays consistent
            double caretAcc = input.caretAccumulator;

            input.Recreate();
            input.caretAccumulator = caretAcc;
        }