void ColourCodeChanged(object sender, ColourCodeEventArgs e) { textInput.altText.UpdateColours(); Recreate(normalChat, e.Code); Recreate(status, e.Code); Recreate(bottomRight, e.Code); Recreate(clientStatus, e.Code); textInput.Recreate(); }
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(); }
void ColCodeChanged(object sender, ColourCodeEventArgs e) { if (game.Graphics.LostContext) { return; } altText.UpdateCols(); Recreate(normalChat, e.Code); Recreate(status, e.Code); Recreate(bottomRight, e.Code); Recreate(clientStatus, e.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; }