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
GUIMultiplayerJoin.cs
Go to the documentation of this file.
1using System;
4using Terraria;
5
6// Token: 0x02000269 RID: 617
8{
9 // Token: 0x06000DD2 RID: 3538 RVA: 0x0004258C File Offset: 0x0004078C
11 {
12 return true;
13 }
14
15 // Token: 0x06000DD3 RID: 3539 RVA: 0x0004259C File Offset: 0x0004079C
16 public void Draw()
17 {
18 if (!true)
19 {
20 }
22 }
23
24 // Token: 0x06000DD4 RID: 3540 RVA: 0x000425DC File Offset: 0x000407DC
25 private void DrawServerIP()
26 {
28 string text;
29 Vector2 vector = spriteFont.MeasureString(text);
30 bool flag = this.editingServerIP;
31 if (this._optionsBlocker != null)
32 {
33 if (flag)
34 {
35 return;
36 }
37 }
38 else if (flag)
39 {
40 if (!flag)
41 {
42 }
43 int screenWidth = Main.screenWidth;
44 int screenHeight = Main.screenHeight;
45 return;
46 }
47 }
48
49 // Token: 0x06000DD5 RID: 3541 RVA: 0x000427B4 File Offset: 0x000409B4
50 private void EnterServerIP()
51 {
52 if (!true)
53 {
54 }
55 Main.clrInput();
56 int num = 1;
57 this.editingServerIP = num != 0;
58 }
59
60 // Token: 0x06000DD6 RID: 3542 RVA: 0x000427EC File Offset: 0x000409EC
61 private void CloseServerIPEdit()
62 {
63 if (!true)
64 {
65 }
69 }
70
71 // Token: 0x06000DD7 RID: 3543 RVA: 0x00042818 File Offset: 0x00040A18
72 private void DrawServerPort()
73 {
75 string text;
76 Vector2 vector = spriteFont.MeasureString(text);
77 bool flag = this.editingServerPort;
78 if (this._optionsBlocker != null)
79 {
80 if (flag)
81 {
82 return;
83 }
84 }
85 else if (flag)
86 {
87 if (!flag)
88 {
89 }
90 int screenWidth = Main.screenWidth;
91 int screenHeight = Main.screenHeight;
92 return;
93 }
94 }
95
96 // Token: 0x06000DD8 RID: 3544 RVA: 0x000429FC File Offset: 0x00040BFC
109
110 // Token: 0x06000DD9 RID: 3545 RVA: 0x00042A30 File Offset: 0x00040C30
111 private void CloseServerPortEdit()
112 {
113 if (!true)
114 {
115 }
119 }
120
121 // Token: 0x06000DDA RID: 3546 RVA: 0x00042A5C File Offset: 0x00040C5C
122 private int ParsePort(string port)
123 {
124 int num = int.Parse(port);
125 return 7777;
126 }
127
128 // Token: 0x06000DDB RID: 3547 RVA: 0x00042A80 File Offset: 0x00040C80
129 private void DrawMainButtons()
130 {
131 bool flag = this.editingServerIP;
132 bool flag2;
133 if (!flag)
134 {
136 if (flag2 || !flag2)
137 {
138 }
139 }
142 {
143 if (!flag2)
144 {
145 }
146 if (!flag)
147 {
148 }
150 Main.menuMode = 10;
151 Netplay.StartTcpClient(false);
152 }
153 if (!flag)
154 {
155 }
156 if (!this.editingServerIP)
157 {
158 bool flag3 = this.editingServerPort;
159 }
162 {
163 }
164 if (!this.editingServerIP)
165 {
166 bool flag4 = this.editingServerPort;
167 if (!flag4)
168 {
169 return;
170 }
171 }
172 }
173
174 // Token: 0x06000DDC RID: 3548 RVA: 0x00042B00 File Offset: 0x00040D00
175 private void Back()
176 {
177 Main.menuMode = 446;
178 }
179
180 // Token: 0x06000DDD RID: 3549 RVA: 0x00042B18 File Offset: 0x00040D18
182 {
183 }
184
185 // Token: 0x04001973 RID: 6515
186 private float joinButtonScale;
187
188 // Token: 0x04001974 RID: 6516
189 private float backButtonScale;
190
191 // Token: 0x04001975 RID: 6517
192 private float TitleScale = (float)16256;
193
194 // Token: 0x04001976 RID: 6518
196
197 // Token: 0x04001977 RID: 6519
199
200 // Token: 0x04001978 RID: 6520
201 private string _serverIP = "";
202
203 // Token: 0x04001979 RID: 6521
204 private string _serverPort = "";
205
206 // Token: 0x0400197A RID: 6522
208
209 // Token: 0x0400197B RID: 6523
210 public bool editingServerIP;
211
212 // Token: 0x0400197C RID: 6524
213 public bool editingServerPort;
214
215 // Token: 0x0400197D RID: 6525
216 private const int defaultPort = 7777;
217}
class f__AnonymousType0<< Count > j__TPar
bool IsOverOptions(Vector2 cursorPosition)
GUIControllerMultiplayerJoin _controllerInput
GUIInputRegionExclusive _optionsBlocker
int ParsePort(string port)
static int screenHeight
Definition Main.cs:2015
static void CloseKeyboard()
Definition Main.cs:8523
static void clrInput()
Definition Main.cs:8459
static int screenWidth
Definition Main.cs:2001
static void StartTcpClient(bool connectingToLocalServer)
Definition Netplay.cs:449
static PlatformUser CurrentUser