forked from TehGimp/KerbalMultiPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KMPGlobalSettings.cs
53 lines (40 loc) · 1.12 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
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 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;
[OnDeserializing]
private void SetDefault(StreamingContext sc)
{
smoothScreens = true;
guiToggleKey = KeyCode.F7;
screenshotKey = KeyCode.F8;
chatColors = true;
showInactiveShips = true;
}
public static KMPGlobalSettings instance = new KMPGlobalSettings();
}
}