-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathKMPScreenshotDisplay.cs
More file actions
28 lines (23 loc) · 855 Bytes
/
KMPScreenshotDisplay.cs
File metadata and controls
28 lines (23 loc) · 855 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace KMP
{
class KMPScreenshotDisplay
{
public const float MIN_WINDOW_WIDTH = ScreenshotSettings.MIN_WIDTH + 100;
public const float MIN_WINDOW_HEIGHT = ScreenshotSettings.MIN_HEIGHT + 10;
public static ScreenshotSettings screenshotSettings = new ScreenshotSettings();
public static bool windowEnabled = false;
public static String watchPlayerName = String.Empty;
public static Texture2D texture;
public static String description = String.Empty;
public static Rect windowPos = new Rect(
Screen.width / 2 - MIN_WINDOW_WIDTH / 2, Screen.height / 2 - MIN_WINDOW_HEIGHT / 2,
MIN_WINDOW_WIDTH, MIN_WINDOW_HEIGHT);
public static Vector2 scrollPos = Vector2.zero;
public static GUILayoutOption[] layoutOptions;
}
}