Beispiel #1
0
        protected override void OnValueChanged(int value)
        {
            var fontName = UIComponent.options[value].text;

            uiManager.Font = fontName == defaultFontName ? null : fontName;

            if (fontName == defaultFontName)
            {
                confirmationUI?.NotifyAsync(RestartMessage);
            }
        }
        protected override void OnValueChanged(float value)
        {
            uiManager.FontSize = value == 0 ? null : (int?)value;

            if (value == 0)
            {
                uiManager.FontSize = defaultFontSize;
                uiManager.FontSize = null;
                confirmationUI?.NotifyAsync(RestartMessage);
            }
        }