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
LegacyChatMonitor.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000ADC RID: 2780
11 {
12 // Token: 0x170008DD RID: 2269
13 // (get) Token: 0x060051B6 RID: 20918 RVA: 0x0028105C File Offset: 0x0027F25C
15 {
16 get
17 {
18 if (!true)
19 {
20 }
21 return Main.screenWidth;
22 }
23 }
24
25 // Token: 0x060051B7 RID: 20919 RVA: 0x00281074 File Offset: 0x0027F274
26 public void OnResolutionChange()
27 {
28 }
29
30 // Token: 0x060051B8 RID: 20920 RVA: 0x00281084 File Offset: 0x0027F284
32 {
33 int num = 500;
35 int num2 = this.numChatLines;
36 ChatLine[] array = this.chatLine;
37 }
38
39 // Token: 0x060051B9 RID: 20921 RVA: 0x002810C0 File Offset: 0x0027F2C0
40 public void Clear()
41 {
42 int num = this.numChatLines;
43 ChatLine[] array = this.chatLine;
44 }
45
46 // Token: 0x060051BA RID: 20922 RVA: 0x002810E4 File Offset: 0x0027F2E4
47 public void ResetOffset()
48 {
49 }
50
51 // Token: 0x060051BB RID: 20923 RVA: 0x002810F4 File Offset: 0x0027F2F4
52 public void Update()
53 {
54 int num = this.numChatLines;
55 TextSnippet[] parsedText = this.chatLine.parsedText;
56 }
57
58 // Token: 0x060051BC RID: 20924 RVA: 0x00281118 File Offset: 0x0027F318
59 public void Offset(int linesOffset)
60 {
61 if (!true)
62 {
63 }
64 int screenHeight = Main.screenHeight;
65 int num = 21846;
66 this.showCount = num;
67 int num2 = this.startChatLine;
68 int num3 = this.numChatLines;
71 int num4 = this.startChatLine;
72 }
73
74 // Token: 0x060051BD RID: 20925 RVA: 0x0028118C File Offset: 0x0027F38C
75 public void NewText(string newText, byte R = 255, byte G = 255, byte B = 255)
76 {
77 }
78
79 // Token: 0x060051BE RID: 20926 RVA: 0x0028119C File Offset: 0x0027F39C
80 public void NewTextInternal(string newText, byte R = 255, byte G = 255, byte B = 255, bool force = false)
81 {
82 int stringLength = newText._stringLength;
83 int num = this.numChatLines;
84 ChatLine[] array = this.chatLine;
85 ChatLine[] array2 = this.chatLine;
87 ChatLine[] array3 = this.chatLine;
89 TextSnippet[] parsedText = array3.parsedText;
90 string textOriginal = parsedText.TextOriginal;
91 string text = parsedText.Text;
92 if (array3 == null)
93 {
94 }
97 ChatLine[] array5 = this.chatLine;
98 int num2 = this.chatLength;
99 TextSnippet[] parsedText2 = array5.parsedText;
100 }
101
102 // Token: 0x060051BF RID: 20927 RVA: 0x00281238 File Offset: 0x0027F438
103 private string TrimIntoMultipleLines(byte R, byte G, byte B, int maxTextSize, string oldText)
104 {
105 int stringLength = oldText._stringLength;
106 int num = 1;
107 bool flag = oldText.Substring(maxTextSize, num) != " ";
108 if (maxTextSize == 0)
109 {
110 int num2 = 1;
111 bool flag2 = oldText.Substring(maxTextSize, num2) != " ";
112 }
113 long num3 = 0L;
114 string text = oldText.Substring((int)num3, maxTextSize);
115 int num4 = 1;
116 this.NewTextInternal(text, R, G, B, num4 != 0);
117 string text2 = oldText.Substring(maxTextSize);
118 int stringLength2 = text2._stringLength;
119 int num5 = 1;
120 long num6 = 0L;
121 bool flag3 = text2.Substring((int)num6, num5) == " ";
122 int num7 = 1;
123 return text2.Substring(num7);
124 }
125
126 // Token: 0x060051C0 RID: 20928 RVA: 0x002812F0 File Offset: 0x0027F4F0
127 public void NewTextMultiline(string text, bool force = false, [Optional] Color c, int WidthLimit = -1)
128 {
129 int num = 1;
130 if (num == 0)
131 {
132 }
133 if (num == 0)
134 {
135 }
136 if (num == 0)
137 {
138 }
139 if (num == 0)
140 {
141 return;
142 }
144 int size = list._size;
145 this.NewText(list);
146 int size2 = list._size;
147 }
148
149 // Token: 0x060051C1 RID: 20929 RVA: 0x00281328 File Offset: 0x0027F528
150 public void NewText(List<TextSnippet> snippets)
151 {
152 int num = this.numChatLines;
153 ChatLine[] array = this.chatLine;
154 ChatLine[] array2 = this.chatLine;
155 array2.parsedText.TextOriginal = "this is a hack because draw checks length is higher than 0";
156 array2.parsedText.Color = snippets;
157 ChatLine[] array3 = this.chatLine;
158 int num2 = this.chatLength;
159 TextSnippet[] parsedText = array3.parsedText;
160 }
161
162 // Token: 0x060051C2 RID: 20930 RVA: 0x00281384 File Offset: 0x0027F584
163 public void DrawChat(bool drawingPlayerChat)
164 {
165 int num = this.showCount;
166 int num2 = this.numChatLines;
167 ChatLine[] array = this.chatLine;
168 int showTime = array.showTime;
169 string textOriginal = array.parsedText.TextOriginal;
170 if (textOriginal != null)
171 {
172 if (textOriginal == null)
173 {
174 }
175 ChatLine[] array2 = this.chatLine;
176 TextSnippet[] parsedText = array2.parsedText;
177 int screenHeight = Main.screenHeight;
178 if (17072 == 0)
179 {
180 }
181 if (!true)
182 {
183 }
185 }
186 Color color = this.chatLine.parsedText.Color;
187 bool mouseLeft = Main.mouseLeft;
188 bool mouseLeftRelease = Main.mouseLeftRelease;
190 }
191
192 // Token: 0x04008A37 RID: 35383
193 private int numChatLines;
194
195 // Token: 0x04008A38 RID: 35384
197
198 // Token: 0x04008A39 RID: 35385
199 private int chatLength;
200
201 // Token: 0x04008A3A RID: 35386
202 private int showCount;
203
204 // Token: 0x04008A3B RID: 35387
205 private int startChatLine;
206 }
207}
class f__AnonymousType0<< Count > j__TPar
string TrimIntoMultipleLines(byte R, byte G, byte B, int maxTextSize, string oldText)
void NewTextMultiline(string text, bool force=false, [Optional] Color c, int WidthLimit=-1)
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)
void NewText(List< TextSnippet > snippets)
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