-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKeyBindSettings.cs
45 lines (38 loc) · 1.2 KB
/
KeyBindSettings.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
using UnityEngine;
using UnityModManagerNet;
namespace FreeAngleHelper
{
//sadfhasdfjkasdfjasdfjkl;asdfjlasjdfjkasdfjkasdf
public class ShortCut
{
[Horizontal]
[Draw("")] public KeyBindSetting SC = new KeyBindSetting(KeyCode.BackQuote);
}
public class Generate
{
[Horizontal]
[Draw("")] public KeyBindSetting G = new KeyBindSetting(KeyCode.G);
}
[DrawFields(DrawFieldMask.Public)]
public class KeyBindSetting
{
public KeyBindSetting()
{
Key = new KeyBinding();
}
public KeyBindSetting(KeyCode keyCode)
{
Key = new KeyBinding {keyCode = keyCode};
}
public bool Enabled => Key.keyCode != KeyCode.None;
public bool Down => Key.Down();
[Draw("키 설정")] public KeyBinding Key;
}
[DrawFields(DrawFieldMask.Public)]
public class KeyBindSettings
{
[Header("단축키")]
[Draw("GUI 단축키")] public ShortCut sc = new ShortCut();
[Draw("생성 asdfjkl;awfjikpasfdkjlasfdjasfdasdfasfdasdfasfdasdf")] public Generate g = new Generate();
}
}