-
Notifications
You must be signed in to change notification settings - Fork 53
/
KMPInfoDisplay.cs
38 lines (32 loc) · 1.18 KB
/
KMPInfoDisplay.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
using UnityEngine;
namespace KMP
{
internal class KMPInfoDisplay
{
//Singleton
private static KMPInfoDisplay instance = null;
public static KMPInfoDisplay Instance
{
get
{
if (instance == null)
instance = new KMPInfoDisplay();
return instance;
}
}
//Properties
public const float WINDOW_WIDTH_MINIMIZED = 60;
public const float WINDOW_WIDTH_DEFAULT = 250;
public const float WINDOW_WIDTH_BIG = 320;
public const float WINDOW_HEIGHT = 360;
public const float WINDOW_HEIGHT_BIG = 480;
public const float WINDOW_HEIGHT_MINIMIZED = 64;
public static bool infoDisplayActive = true;
public static bool infoDisplayMinimized = false;
public static bool infoDisplayDetailed = false;
public static bool infoDisplayOptions = false;
public static Rect infoWindowPos = new Rect(20, Screen.height / 2 - WINDOW_HEIGHT / 2, WINDOW_WIDTH_DEFAULT, WINDOW_HEIGHT);
public static GUILayoutOption[] layoutOptions;
public static Vector2 infoScrollPos = Vector2.zero;
}
}