-
Notifications
You must be signed in to change notification settings - Fork 53
/
KMPGlobalSettings.cs
74 lines (56 loc) · 1.85 KB
/
KMPGlobalSettings.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using System.Runtime.Serialization;
namespace KMP
{
[Serializable]
class KMPGlobalSettings
{
public float infoDisplayWindowX;
public float infoDisplayWindowY;
public float screenshotDisplayWindowX;
public float screenshotDisplayWindowY;
public float chatDisplayWindowX;
public float chatDisplayWindowY;
public float chatDXDisplayWindowWidth;
public float chatDXDisplayWindowHeight;
public float chatDXDisplayWindowX;
public float chatDXDisplayWindowY;
public bool chatDXOffsetEnabled;
public float chatDXTrackingOffsetX;
public float chatDXTrackingOffsetY;
public float chatDXEditorOffsetX;
public float chatDXEditorOffsetY;
public bool useNewUiSkin = false;
public bool infoDisplayBig = false;
public bool chatWindowEnabled = true;
public bool chatWindowWide = false;
public bool chatDXWindowEnabled = true;
public KeyCode guiToggleKey = KeyCode.F7;
public KeyCode screenshotKey = KeyCode.F8;
public KeyCode chatTalkKey = KeyCode.BackQuote;
public KeyCode chatHideKey = KeyCode.F9;
public KeyCode screenshotToggleKey = KeyCode.F10;
[OptionalField(VersionAdded = 1)]
public bool smoothScreens = true;
[OptionalField(VersionAdded = 2)]
public bool chatColors = true;
[OptionalField(VersionAdded = 2)]
public bool showInactiveShips = true;
[OnDeserializing]
private void SetDefault(StreamingContext sc)
{
smoothScreens = true;
// guiToggleKey = KeyCode.F7;
// screenshotKey = KeyCode.F8;
// chatTalkKey = KeyCode.BackQuote;
// chatHideKey = KeyCode.F9;
chatColors = true;
showInactiveShips = true;
}
public static KMPGlobalSettings instance = new KMPGlobalSettings();
}
}