-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDevWindowDrawing.cs
More file actions
40 lines (33 loc) · 786 Bytes
/
Copy pathDevWindowDrawing.cs
File metadata and controls
40 lines (33 loc) · 786 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
29
30
31
32
33
34
35
36
37
38
39
40
using LudeonTK;
using UnityEngine;
using Verse;
public class DevWindowDrawing : IWindowDrawing
{
public GUIStyle EmptyStyle => DevGUI.EmptyStyle;
public bool DoCloseButton(Rect rect, string text)
{
return DevGUI.ButtonText(rect, text);
}
public bool DoClostButtonSmall(Rect rect)
{
return DevGUI.ButtonImage(new Rect(rect.x + rect.width - 22f - 4f, rect.y + 4f, 22f, 22f), DevGUI.Close);
}
public void DoGrayOut(Rect rect)
{
DevGUI.DrawRect(rect, new Color(0f, 0f, 0f, 0.5f));
}
public void DoWindowBackground(Rect rect)
{
GUI.color = DevGUI.WindowBGFillColor;
GUI.DrawTexture(rect, BaseContent.WhiteTex);
GUI.color = Color.white;
}
public void BeginGroup(Rect rect)
{
DevGUI.BeginGroup(rect);
}
public void EndGroup()
{
DevGUI.EndGroup();
}
}