diff options
Diffstat (limited to 'Thronefall_v1.0/Decompile/SettingsUseLargeUI.cs')
-rw-r--r-- | Thronefall_v1.0/Decompile/SettingsUseLargeUI.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/SettingsUseLargeUI.cs b/Thronefall_v1.0/Decompile/SettingsUseLargeUI.cs new file mode 100644 index 0000000..c7d4d22 --- /dev/null +++ b/Thronefall_v1.0/Decompile/SettingsUseLargeUI.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +public class SettingsUseLargeUI : MonoBehaviour +{ + public Checkbox checkbox; + + public UIScaleHandler uiScaleHandler; + + public void OnApply() + { + SettingsManager.Instance.SetUseLargetInGameUI(checkbox.state); + uiScaleHandler.Refresh(); + } + + private void OnEnable() + { + if ((bool)SettingsManager.Instance) + { + checkbox.SetState(SettingsManager.Instance.UseLargeInGameUI); + } + } +} |