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
MobileChatMonitor.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000ADD RID: 2781
11 {
12 // Token: 0x170008DE RID: 2270
13 // (get) Token: 0x060051C3 RID: 20931 RVA: 0x00281434 File Offset: 0x0027F634
15 {
16 get
17 {
18 if (!true)
19 {
20 }
21 return Main.screenWidth;
22 }
23 }
24
25 // Token: 0x060051C4 RID: 20932 RVA: 0x0028144C File Offset: 0x0027F64C
26 public void OnResolutionChange()
27 {
28 }
29
30 // Token: 0x060051C5 RID: 20933 RVA: 0x0028145C File Offset: 0x0027F65C
32 {
33 int num = 500;
35 int num2 = this.numChatLines;
36 ChatLine[] array = this.chatLine;
37 }
38
39 // Token: 0x060051C6 RID: 20934 RVA: 0x00281498 File Offset: 0x0027F698
40 public void Clear()
41 {
42 int num = this.numChatLines;
43 ChatLine[] array = this.chatLine;
44 ChatLine[] array2 = this.chatLine;
45 int num2 = this.numChatLines;
46 }
47
48 // Token: 0x060051C7 RID: 20935 RVA: 0x002814C8 File Offset: 0x0027F6C8
49 public void ResetOffset()
50 {
51 }
52
53 // Token: 0x060051C8 RID: 20936 RVA: 0x002814D8 File Offset: 0x0027F6D8
54 public void Update()
55 {
56 int num = this.numChatLines;
57 TextSnippet[] parsedText = this.chatLine.parsedText;
58 }
59
60 // Token: 0x060051C9 RID: 20937 RVA: 0x002814FC File Offset: 0x0027F6FC
61 public void Offset(int linesOffset)
62 {
63 if (!true)
64 {
65 }
66 int screenHeight = Main.screenHeight;
67 int num = 21846;
68 this.showCount = num;
69 int num2 = this.startChatLine;
70 int num3 = this.numChatLines;
73 int num4 = this.startChatLine;
74 }
75
76 // Token: 0x060051CA RID: 20938 RVA: 0x00281570 File Offset: 0x0027F770
77 public void NewText(string newText, byte R = 255, byte G = 255, byte B = 255)
78 {
79 long num = 0L;
80 this.NewTextInternal(newText, R, G, B, num != 0L);
81 }
82
83 // Token: 0x060051CB RID: 20939 RVA: 0x0028158C File Offset: 0x0027F78C
84 public void NewTextInternal(string newText, byte R = 255, byte G = 255, byte B = 255, bool force = false)
85 {
86 int num = this.numChatLines;
87 ChatLine[] array = this.chatLine;
88 ChatLine[] array2 = this.chatLine;
90 ChatLine[] array3 = this.chatLine;
92 TextSnippet[] parsedText = array3.parsedText;
93 string textOriginal = parsedText.TextOriginal;
94 string text = parsedText.Text;
98 string textOriginal2 = parsedText2.TextOriginal;
99 string text2 = parsedText2.Text;
103 string textOriginal3 = parsedText3.TextOriginal;
104 string text3 = parsedText3.Text;
105 ChatLine[] array6 = this.chatLine;
106 int num2 = this.chatLength;
107 Color color = array6.parsedText.Color;
112 int num3 = this.numChatItems;
113 int num4 = this.numChatLines;
116 }
117
118 // Token: 0x060051CC RID: 20940 RVA: 0x002816B8 File Offset: 0x0027F8B8
119 private string TrimIntoMultipleLines(byte R, byte G, byte B, int maxTextSize, string oldText)
120 {
121 int stringLength = oldText._stringLength;
122 int num = 1;
123 bool flag = oldText.Substring(maxTextSize, num) != " ";
124 if (maxTextSize == 0)
125 {
126 int num2 = 1;
127 bool flag2 = oldText.Substring(maxTextSize, num2) != " ";
128 }
129 long num3 = 0L;
130 string text = oldText.Substring((int)num3, maxTextSize);
131 long num4 = 0L;
132 this.NewTextInternal(text, R, G, B, num4 != 0L);
133 string text2 = oldText.Substring(maxTextSize);
134 int stringLength2 = text2._stringLength;
135 int num5 = 1;
136 long num6 = 0L;
137 bool flag3 = text2.Substring((int)num6, num5) == " ";
138 int num7 = 1;
139 return text2.Substring(num7);
140 }
141
142 // Token: 0x060051CD RID: 20941 RVA: 0x00281770 File Offset: 0x0027F970
143 public void NewTextMultiline(string text, bool force = false, [Optional] Color c, int WidthLimit = -1)
144 {
145 if (!true)
146 {
147 }
148 if (!true)
149 {
150 }
151 }
152
153 // Token: 0x060051CE RID: 20942 RVA: 0x00281784 File Offset: 0x0027F984
154 public void NewText(List<TextSnippet> snippets)
155 {
156 int num = this.numChatLines;
157 ChatLine[] array = this.chatLine;
158 ChatLine[] array2 = this.chatLine;
159 array2.parsedText.TextOriginal = "this is a hack because draw checks length is higher than 0";
160 array2.parsedText.Color = snippets;
161 ChatLine[] array3 = this.chatLine;
162 int num2 = this.chatLength;
163 TextSnippet[] parsedText = array3.parsedText;
164 }
165
166 // Token: 0x060051CF RID: 20943 RVA: 0x002817E0 File Offset: 0x0027F9E0
167 public void DrawChat(bool drawingPlayerChat)
168 {
169 int num = this.showCount;
170 int num2 = this.numChatItems;
171 ChatLine[] array = this.chatLine;
172 int showTime = array.showTime;
173 string textOriginal = array.parsedText.TextOriginal;
174 if (textOriginal != null)
175 {
176 if (textOriginal == null)
177 {
178 }
179 ChatLine[] array2 = this.chatLine;
180 TextSnippet[] parsedText = array2.parsedText;
181 int screenHeight = Main.screenHeight;
182 if (17072 == 0)
183 {
184 }
185 if (!true)
186 {
187 }
188 Color color = this.chatLine.parsedText.Color;
189 }
191 bool mouseLeft = Main.mouseLeft;
192 bool mouseLeftRelease = Main.mouseLeftRelease;
194 }
195
196 // Token: 0x04008A3C RID: 35388
197 public int numChatLines;
198
199 // Token: 0x04008A3D RID: 35389
201
202 // Token: 0x04008A3E RID: 35390
203 private int chatLength;
204
205 // Token: 0x04008A3F RID: 35391
206 private int showCount;
207
208 // Token: 0x04008A40 RID: 35392
209 private int startChatLine;
210
211 // Token: 0x04008A41 RID: 35393
212 public int numChatItems;
213 }
214}
class f__AnonymousType0<< Count > j__TPar
void NewTextMultiline(string text, bool force=false, [Optional] Color c, int WidthLimit=-1)
void NewText(List< TextSnippet > snippets)
void NewTextInternal(string newText, byte R=255, byte G=255, byte B=255, bool force=false)
void NewText(string newText, byte R=255, byte G=255, byte B=255)
string TrimIntoMultipleLines(byte R, byte G, byte B, int maxTextSize, string oldText)
static bool mouseLeftRelease
Definition Main.cs:2029
static int screenHeight
Definition Main.cs:2015
static int screenWidth
Definition Main.cs:2001
static bool mouseLeft
Definition Main.cs:671
TextSnippet[] parsedText
Definition ChatLine.cs:66