-
Notifications
You must be signed in to change notification settings - Fork 0
/
StandardConfig.cs
75 lines (55 loc) · 2.43 KB
/
StandardConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using SMLHelper.V2.Json;
using SMLHelper.V2.Options.Attributes;
using UnityEngine;
namespace QuickSlotsPlus
{
[Menu("QuickSlots+")]
public class StandardConfig : ConfigFile
{
[Slider("QuickSlot Count", 5, 20, DefaultValue = 10), OnChange(nameof(RedrawQuickSlots))]
public int slotCount = 10;
[Toggle("Do Not Add New Items to Empty Slots")]
public bool disableBindToEmpty = true;
/*[Toggle("Show HotKey labels"), OnChange(nameof(RedrawQuickSlots))]
public bool showLabels = true;
[Slider("Label Size", 5, 30, DefaultValue = 18), OnChange(nameof(RedrawQuickSlots))]
public int labelSize = 18;*/
[Keybind("Slot 6"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey6 = KeyCode.Alpha6;
[Keybind("Slot 7"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey7 = KeyCode.Alpha7;
[Keybind("Slot 8"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey8 = KeyCode.Alpha8;
[Keybind("Slot 9"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey9 = KeyCode.Alpha9;
[Keybind("Slot 10"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey10 = KeyCode.Alpha0;
[Keybind("Slot 11"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey11 = KeyCode.Minus;
[Keybind("Slot 12"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey12 = KeyCode.Equals;
[Keybind("Slot 13"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey13;
[Keybind("Slot 14"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey14;
[Keybind("Slot 15"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey15;
[Keybind("Slot 16"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey16;
[Keybind("Slot 17"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey17;
[Keybind("Slot 18"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey18;
[Keybind("Slot 19"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey19;
[Keybind("Slot 20"), OnChange(nameof(RedrawQuickSlots))]
public KeyCode HotKey20;
/*
* Redraw the QuickSlots after user changes preferences in settings menu.
*/
public static void RedrawQuickSlots()
{
Mod.RedrawQuickSlots();
}
}
}