using UnityEditor; using UnityEngine; namespace Ingvar.LiveWatch.Editor { public static class UserSettings { private const string PREFIX = "LivwWatch."; public static EditorProperty WidthZoomKeys = new EventModifiersEditorProperty($"{PREFIX}WidthZoomKeys", EventModifiers.Control); public static EditorProperty HeightZoomKeys = new EventModifiersEditorProperty($"{PREFIX}HeightZoomKeys", EventModifiers.Shift); public static EditorProperty ScrollValuesKeys = new EventModifiersEditorProperty($"{PREFIX}ScrollValuesKeys", EventModifiers.Alt); public static EditorProperty FlipSelectionKey = new KeyCodeEditorProperty($"{PREFIX}FlipSelectionKey", KeyCode.F); public static EditorProperty ExpandVariableKey = new KeyCodeEditorProperty($"{PREFIX}ExpandVariableKey", KeyCode.Space); public static EditorProperty PreviousValueKey = new KeyCodeEditorProperty($"{PREFIX}PreviousValueKey", KeyCode.LeftArrow); public static EditorProperty NextValueKey = new KeyCodeEditorProperty($"{PREFIX}NextValueKey", KeyCode.RightArrow); public static EditorProperty PreviousVariableKey = new KeyCodeEditorProperty($"{PREFIX}PreviousVariableKey", KeyCode.UpArrow); public static EditorProperty NextVariableKey = new KeyCodeEditorProperty($"{PREFIX}NextVariableKey", KeyCode.DownArrow); public static void RestoreDefaultValues() { WidthZoomKeys.SetToDefault(); HeightZoomKeys.SetToDefault(); ScrollValuesKeys.SetToDefault(); FlipSelectionKey.SetToDefault(); ExpandVariableKey.SetToDefault(); PreviousValueKey.SetToDefault(); NextValueKey.SetToDefault(); PreviousVariableKey.SetToDefault(); NextVariableKey.SetToDefault(); } } }