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
GUIMultiplayerChat.cs
Go to the documentation of this file.
1using System;
4using Terraria;
6
7// Token: 0x0200015A RID: 346
9{
10 // Token: 0x0600097A RID: 2426 RVA: 0x0002B310 File Offset: 0x00029510
15
16 // Token: 0x0600097B RID: 2427 RVA: 0x0002B334 File Offset: 0x00029534
18 {
21 int num = this.notificationCount;
22 float y = this.oneLineSize.Y;
23 throw new InvalidCastException();
24 }
25
26 // Token: 0x0600097C RID: 2428 RVA: 0x000021DB File Offset: 0x000003DB
27 private float ChatScale(int index)
28 {
29 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
30 }
31
32 // Token: 0x0600097D RID: 2429 RVA: 0x0002B36C File Offset: 0x0002956C
33 private void ChatOver(int index)
34 {
35 if (!true)
36 {
37 }
38 bool mouseLeft = Main.mouseLeft;
39 if (!true)
40 {
41 }
42 bool mouseLeftRelease = Main.mouseLeftRelease;
43 }
44
45 // Token: 0x170000F2 RID: 242
46 // (get) Token: 0x0600097E RID: 2430 RVA: 0x000021DB File Offset: 0x000003DB
47 public float MaxChatLineWidth
48 {
49 get
50 {
51 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
52 }
53 }
54
55 // Token: 0x170000F3 RID: 243
56 // (get) Token: 0x0600097F RID: 2431 RVA: 0x000021DB File Offset: 0x000003DB
58 {
59 get
60 {
61 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
62 }
63 }
64
65 // Token: 0x170000F4 RID: 244
66 // (get) Token: 0x06000980 RID: 2432 RVA: 0x000021DB File Offset: 0x000003DB
68 {
69 get
70 {
71 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
72 }
73 }
74
75 // Token: 0x06000981 RID: 2433 RVA: 0x0002B390 File Offset: 0x00029590
77 {
78 if (!true)
79 {
80 }
81 if (!true)
82 {
83 }
84 return 1;
85 }
86
87 // Token: 0x06000982 RID: 2434 RVA: 0x0002B3A8 File Offset: 0x000295A8
89 {
90 if (!true)
91 {
92 }
93 if (!true)
94 {
95 }
96 return 1;
97 }
98
99 // Token: 0x06000983 RID: 2435 RVA: 0x0002B3C0 File Offset: 0x000295C0
101 {
102 if (!true)
103 {
104 }
105 if (!true)
106 {
107 }
108 return 1;
109 }
110
111 // Token: 0x06000984 RID: 2436 RVA: 0x0002B3D8 File Offset: 0x000295D8
112 private void ChatDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
113 {
114 if ("Only TraceListeners can be added to a TraceListenerCollection." == null)
115 {
116 }
117 bool mouseLeft = Main.mouseLeft;
118 if ("Only TraceListeners can be added to a TraceListenerCollection." == null)
119 {
120 }
121 bool mouseLeftRelease = Main.mouseLeftRelease;
122 }
123
124 // Token: 0x06000985 RID: 2437 RVA: 0x0002B4E0 File Offset: 0x000296E0
125 public void CloseChat()
126 {
127 if (!true)
128 {
129 }
130 Main.clrInput();
132 this.mode = GUIMultiplayerChat.ChatMode.DisplayNotification;
133 }
134
135 // Token: 0x06000986 RID: 2438 RVA: 0x0002B508 File Offset: 0x00029708
136 public void DrawNotification()
137 {
140 bool mouseLeft = Main.mouseLeft;
141 bool mouseLeftRelease = Main.mouseLeftRelease;
143 if (chatMode == GUIMultiplayerChat.ChatMode.Hidden)
144 {
145 }
146 bool mapFullscreen = Main.mapFullscreen;
148 {
149 }
151 if (this.mode != GUIMultiplayerChat.ChatMode.Hidden)
152 {
153 return;
154 }
155 int num = 1;
157 if (num == 0)
158 {
159 }
160 float y = miniChatInstance.NotificationGrid.ExtraElementSpacing.Y;
161 }
162
163 // Token: 0x06000987 RID: 2439 RVA: 0x0002B7E4 File Offset: 0x000299E4
164 public void OpenChat()
165 {
166 if (!true)
167 {
168 }
171 if (2 == 0)
172 {
173 }
174 Main.clrInput();
175 }
176
177 // Token: 0x06000988 RID: 2440 RVA: 0x0002B810 File Offset: 0x00029A10
178 public void Draw()
179 {
182 bool mouseLeft = Main.mouseLeft;
183 bool mouseLeftRelease = Main.mouseLeftRelease;
186 Cursor cursor;
187 if (cursor != null)
188 {
189 int mouseX = Main.mouseX;
190 int mouseY = Main.mouseY;
193 return;
194 }
195 if (miniChatInstance.TextGrid == null)
196 {
197 }
201 }
202
203 // Token: 0x06000989 RID: 2441 RVA: 0x0002BC14 File Offset: 0x00029E14
205 {
206 }
207
208 // Token: 0x04000948 RID: 2376
210
211 // Token: 0x04000949 RID: 2377
213
214 // Token: 0x0400094A RID: 2378
215 public float ScrollOffset;
216
217 // Token: 0x0400094B RID: 2379
218 private float ScrollMomentum;
219
220 // Token: 0x0400094C RID: 2380
221 private int ScrollDragging;
222
223 // Token: 0x0400094D RID: 2381
225
226 // Token: 0x0400094E RID: 2382
227 private float ToggleScale;
228
229 // Token: 0x0400094F RID: 2383
230 private float BeginChatScale;
231
232 // Token: 0x04000950 RID: 2384
233 private float PrimaryChatScale;
234
235 // Token: 0x04000951 RID: 2385
236 private float EmotesScale;
237
238 // Token: 0x04000952 RID: 2386
239 private float EmotesCloseScale;
240
241 // Token: 0x04000953 RID: 2387
243
244 // Token: 0x04000954 RID: 2388
245 private int notificationCount;
246
247 // Token: 0x04000955 RID: 2389
248 private bool miniMapWasEnabled;
249
250 // Token: 0x04000956 RID: 2390
251 private bool beginChatClicked;
252
253 // Token: 0x0200015B RID: 347
254 public enum ChatMode
255 {
256 // Token: 0x04000958 RID: 2392
257 Hidden,
258 // Token: 0x04000959 RID: 2393
260 // Token: 0x0400095A RID: 2394
261 Shown
262 }
263}
class f__AnonymousType0<< Count > j__TPar
static bool HasChatPermissions
void ChatOver(int index)
float ChatScale(int index)
Vector2 CalulatePageSnippetSize(TextSnippet[] parsedText)
Vector2 ChatSize(int index)
void ChatDraw(ItemGrid_Layout gridLayout, int index, Vector2 position, float scale)
Vector2 CalulateMiniSnippetSize(TextSnippet[] parsedText)
GUIMultiplayerChat.ChatMode mode
Vector2 CalulateMiniTouchSnippetSize(TextSnippet[] parsedText)
static Rectangle Region(Panel_Layout layout)
Definition GUIPanel.cs:57
static MultiplayerChat_Layout MiniChatInstance
static MultiplayerChat_Layout Instance
Texture_Layout Backing
static bool mouseLeftRelease
Definition Main.cs:2029
static bool NetClient
Definition Main.cs:5438
static void CloseKeyboard()
Definition Main.cs:8523
static void clrInput()
Definition Main.cs:8459
static int mouseY
Definition Main.cs:601
static bool mapFullscreen
Definition Main.cs:1441
static int mouseX
Definition Main.cs:587
static bool mouseLeft
Definition Main.cs:671