terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
GUIPanel.cs
Go to the documentation of this file.
1using System;
5using Terraria;
6
7// Token: 0x02000111 RID: 273
8public static class GUIPanel
9{
10 // Token: 0x060006DD RID: 1757 RVA: 0x00017138 File Offset: 0x00015338
12 {
13 if (!true)
14 {
15 }
16 if (true)
17 {
18 if (!true)
19 {
20 }
21 if (!true)
22 {
23 }
24 }
25 if (!true)
26 {
27 }
28 if (!true)
29 {
30 return;
31 }
32 }
33
34 // Token: 0x060006DE RID: 1758 RVA: 0x00017164 File Offset: 0x00015364
35 public static bool RegisterPickingRegion(Panel_Layout layout)
36 {
37 if (!true)
38 {
39 }
40 if (true)
41 {
42 if (!true)
43 {
44 }
45 if (!true)
46 {
47 }
48 }
49 if (!true)
50 {
51 }
52 bool flag;
53 return flag;
54 }
55
56 // Token: 0x060006DF RID: 1759 RVA: 0x0001718C File Offset: 0x0001538C
57 public static Rectangle Region(Panel_Layout layout)
58 {
59 if (!true)
60 {
61 }
62 if (true)
63 {
64 if (!true)
65 {
66 }
67 if (!true)
68 {
69 }
70 }
71 if (!true)
72 {
73 return;
74 }
75 }
76
77 // Token: 0x060006E0 RID: 1760 RVA: 0x000171B0 File Offset: 0x000153B0
78 public static void Draw(Panel_Layout layout, bool cursorOver = false, [Optional] Color? overloadBacking, [Optional] Color? overloadBorder, [Optional] Color? overloadHighlight)
79 {
80 ControlAnchor.ControlId anchorControl = layout.AnchorControl;
81 Vector2 location = layout.Location;
82 float x = layout.Location.X;
83 float y = layout.Location.Y;
84 if (!true)
85 {
86 }
87 bool anchorForSize = layout.AnchorForSize;
88 if (anchorForSize)
89 {
90 ControlAnchor.ControlId sizeAnchorControl = layout.SizeAnchorControl;
91 Vector2 sizeLocation = layout.SizeLocation;
92 float x2 = layout.SizeLocation.X;
93 float y2 = layout.SizeLocation.Y;
94 if (!anchorForSize)
95 {
96 }
97 if (!anchorForSize)
98 {
99 }
100 return;
101 }
102 float x3 = layout.Size.X;
103 float y3 = layout.Size.Y;
104 if (!anchorForSize)
105 {
106 }
107 Texture2D texture = layout.Backing.Texture;
108 Texture_Layout border = layout.Border;
109 Texture2D texture2 = border.Texture;
110 if (texture != null)
111 {
112 return;
113 }
114 if (texture2 != null)
115 {
116 if (border != null)
117 {
118 return;
119 }
120 Color borderColor = layout.BorderColor;
121 }
122 if (layout.CursorHighlight.Texture != null)
123 {
124 if (border != null)
125 {
126 return;
127 }
128 Color highlightColor = layout.HighlightColor;
129 }
130 }
131
132 // Token: 0x060006E1 RID: 1761 RVA: 0x000172A4 File Offset: 0x000154A4
133 public static void DrawAtPosition(Panel_Layout layout, Vector2 position, Vector2 size, bool cursorOver = false)
134 {
135 Texture2D texture = layout.Backing.Texture;
136 Texture2D texture2 = layout.Border.Texture;
137 if (texture != null)
138 {
139 Color backingColor = layout.BackingColor;
140 }
141 if (texture2 != null)
142 {
143 Color borderColor = layout.BorderColor;
144 }
145 if (layout.CursorHighlight.Texture != null)
146 {
147 Color highlightColor = layout.HighlightColor;
148 }
149 }
150
151 // Token: 0x060006E2 RID: 1762 RVA: 0x000172F4 File Offset: 0x000154F4
153 {
155 if (texture2D != null)
156 {
157 if (32640 == 0)
158 {
159 }
160 if (32768 == 0)
161 {
162 }
163 Vector2 vector = backgroundFillRegion.TopLeft();
166 }
168 if (texture2D2 != null)
169 {
172 }
173 }
174
175 // Token: 0x060006E3 RID: 1763 RVA: 0x0001733C File Offset: 0x0001553C
176 public static void DrawBacking(Vector2 position, Vector2 size, Texture2D texture, Color color, [Optional] Rectangle? sourceFrame)
177 {
178 if (position != null)
179 {
180 return;
181 }
182 }
183
184 // Token: 0x04000566 RID: 1382
185 public static bool forceRescale;
186
187 // Token: 0x04000567 RID: 1383
188 public static bool scaleEdges;
189}
class f__AnonymousType0<< Count > j__TPar
static Rectangle Region(Panel_Layout layout)
Definition GUIPanel.cs:57
static bool scaleEdges
Definition GUIPanel.cs:188
static void DrawAtPosition(Panel_Layout layout, Vector2 position, Vector2 size, bool cursorOver=false)
Definition GUIPanel.cs:133
static bool RegisterPickingRegion(Panel_Layout layout)
Definition GUIPanel.cs:35
static bool IsCursorOver(Vector2 cursorUIPosition, Panel_Layout layout)
Definition GUIPanel.cs:11
static bool forceRescale
Definition GUIPanel.cs:185
static void DrawBacking(Vector2 position, Vector2 size, Texture2D texture, Color color, [Optional] Rectangle? sourceFrame)
Definition GUIPanel.cs:176
static void DrawHorizontalFill(Panel_Layout layout, Rectangle backgroundFillRegion, float fillScale)
Definition GUIPanel.cs:152
static void Draw(Panel_Layout layout, bool cursorOver=false, [Optional] Color? overloadBacking, [Optional] Color? overloadBorder, [Optional] Color? overloadHighlight)
Definition GUIPanel.cs:78
Texture2D Texture