-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathKLFGlobalSettings.cs
61 lines (46 loc) · 1.37 KB
/
KLFGlobalSettings.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using System.Runtime.Serialization;
namespace KLF
{
[Serializable]
class KLFGlobalSettings
{
public float infoDisplayWindowX;
public float infoDisplayWindowY;
public float screenshotDisplayWindowX;
public float screenshotDisplayWindowY;
public float chatDisplayWindowX;
public float chatDisplayWindowY;
public bool infoDisplayBig = false;
public bool chatWindowEnabled = false;
public bool chatWindowWide = false;
public KeyCode guiToggleKey = KeyCode.F7;
public KeyCode screenshotKey = KeyCode.F8;
[OptionalField(VersionAdded = 1)]
public bool smoothScreens = true;
[OptionalField(VersionAdded = 2)]
public bool chatColors = true;
[OptionalField(VersionAdded = 2)]
public bool showInactiveShips = true;
[OptionalField(VersionAdded = 2)]
public bool showOtherShips = true;
[OptionalField(VersionAdded = 3)]
public bool showOrbits = true;
[OnDeserializing]
private void SetDefault(StreamingContext sc)
{
smoothScreens = true;
guiToggleKey = KeyCode.F7;
screenshotKey = KeyCode.F8;
chatColors = true;
showInactiveShips = true;
showOtherShips = true;
showOrbits = true;
}
public static KLFGlobalSettings instance = new KLFGlobalSettings();
}
}