Example #1
0
        void UpdateFontSize()
        {
            float size = (float)instance.GlobalSettings["chat_font_size"].AsReal();

            cbxInput.Font  = ChatConsole.ChangeFontSize(cbxInput.Font, size);
            rtbIMText.Font = ChatConsole.ChangeFontSize(rtbIMText.Font, size);
            textManager.ReprintAllText();
        }
Example #2
0
        void UpdateFontSize()
        {
            float size = (float)instance.GlobalSettings["chat_font_size"].AsReal();

            if (size < 2f || size > 100f)
            {
                size = 9f;
            }
            cbxInput.Font = ChatConsole.ChangeFontSize(cbxInput.Font, size);
            rtbChat.Font  = ChatConsole.ChangeFontSize(rtbChat.Font, size);
            chatManager.ReprintAllText();
        }