7internal static class ConfigManager
9 public static ConfigEntry<KeyCode> OverlayKey;
11 public static ConfigEntry<bool> AutoCloseOverlay;
12 public static ConfigEntry<bool> EnableDemoWindow;
15 public static ConfigEntry<bool> HighContrast;
16 public static ConfigEntry<Color> AccentColor;
18 public static void CreateEntries(ConfigFile Config)
20 OverlayKey = Config.Bind(
24 "Keybind for opening and closing the overlay menu"
27 AutoCloseOverlay = Config.Bind(
31 "Automatically close overlay on scene change");
33 EnableDemoWindow = Config.Bind(
37 "Enable demo window, used to showcase the WKLib UI");
40 HighContrast = Config.Bind(
44 "Apply high contrast to the UI");
46 AccentColor = Config.Bind(
49 new Color(0.05f, 0.45f, 0.75f, 1f),
50 "Change accent color of the UI");
52 HighContrast.SettingChanged += (sender, args) =>
54 RootPanel.Instance?.ThemeController?.RegisterChanges();
57 AccentColor.SettingChanged += (sender, args) =>
59 RootPanel.Instance?.ThemeController?.RegisterChanges();