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
GUIMultiplayerHost.cs
Go to the documentation of this file.
1using System;
5using Terraria;
7using Terraria.IO;
9
10// Token: 0x02000268 RID: 616
12{
13 // Token: 0x06000DC3 RID: 3523 RVA: 0x00041FC8 File Offset: 0x000401C8
15 {
16 return true;
17 }
18
19 // Token: 0x06000DC4 RID: 3524 RVA: 0x00041FD8 File Offset: 0x000401D8
33
34 // Token: 0x06000DC5 RID: 3525 RVA: 0x00042028 File Offset: 0x00040228
35 private void DrawMainButtons()
36 {
37 bool mouseLeft = Main.mouseLeft;
38 bool mouseLeftRelease = Main.mouseLeftRelease;
39 string textValue = Language.GetTextValue("UI.Play");
40 bool flag = this.editingServerPassword;
41 }
42
43 // Token: 0x06000DC6 RID: 3526 RVA: 0x00042088 File Offset: 0x00040288
44 private void Back()
45 {
46 Main.menuMode = int.MinValue;
47 }
48
49 // Token: 0x06000DC7 RID: 3527 RVA: 0x000420A0 File Offset: 0x000402A0
50 private void DrawMaxPlayers()
51 {
52 bool wasDragging = this.dragState.wasDragging;
53 if (!wasDragging)
54 {
55 if (!wasDragging)
56 {
57 }
58 int num = 2;
59 int num2 = 8;
60 float num3 = GUISlider.CalculateValue(int.MinValue, num, num2);
61 }
62 int selectionIndex = this._controllerInput.selectionIndex;
63 }
64
65 // Token: 0x06000DC8 RID: 3528 RVA: 0x00042184 File Offset: 0x00040384
66 public string GetDefaultIPAddress()
67 {
68 return "127.0.0.1";
69 }
70
71 // Token: 0x06000DC9 RID: 3529 RVA: 0x00042198 File Offset: 0x00040398
72 public void HostServer()
73 {
74 int num = 1;
75 int num2 = 1;
76 if (num == 0)
77 {
78 }
79 if (num2 != 0)
80 {
81 return;
82 }
83 if (num2 == 0)
84 {
86 }
87 }
88
89 // Token: 0x06000DCA RID: 3530 RVA: 0x000421F0 File Offset: 0x000403F0
90 private void DrawOpenInviteOnly()
91 {
92 string textValue = Language.GetTextValue("Mobile.OpenInviteOnlyTitle");
96 {
97 int num = 1;
98 bool inviteOnly = this.InviteOnly;
100 controllerInput = this._controllerInput;
102 }
103 if (this.InviteOnly)
104 {
105 string textValue2 = Language.GetTextValue("Mobile.ToggleSettingOff");
106 if (controllerInput == null)
107 {
108 }
109 return;
110 }
111 string textValue3 = Language.GetTextValue("Mobile.ToggleSettingOn");
112 if (controllerInput == null)
113 {
114 }
115 string textValue4 = Language.GetTextValue("Mobile.ToggleSettingOff");
116 }
117
118 // Token: 0x06000DCB RID: 3531 RVA: 0x00042268 File Offset: 0x00040468
119 private void DrawPassword()
120 {
121 int num = 1;
122 if (num == 0)
123 {
124 }
125 bool mouseLeft = Main.mouseLeft;
126 if (num == 0)
127 {
128 }
129 bool mouseLeftRelease = Main.mouseLeftRelease;
131 string text;
132 Vector2 vector = spriteFont.MeasureString(text);
133 bool flag = this.editingServerPassword;
134 if (this._optionsBlocker != null)
135 {
136 if (flag)
137 {
138 return;
139 }
140 }
141 else if (flag)
142 {
143 if (!flag)
144 {
145 }
146 int screenWidth = Main.screenWidth;
147 int screenHeight = Main.screenHeight;
148 return;
149 }
150 }
151
152 // Token: 0x06000DCC RID: 3532 RVA: 0x00042430 File Offset: 0x00040630
154 {
155 if (!true)
156 {
157 }
161 }
162
163 // Token: 0x06000DCD RID: 3533 RVA: 0x0004245C File Offset: 0x0004065C
164 private void EnterServerPassword()
165 {
166 if (!true)
167 {
168 }
169 Main.clrInput();
171 if (!true)
172 {
173 }
174 this._password = 1;
178 controllerInput.ActivateServerPassword();
179 }
180
181 // Token: 0x06000DCE RID: 3534 RVA: 0x00042498 File Offset: 0x00040698
183 {
184 bool isHardMode = worldData.IsHardMode;
185 if (!worldData.HasCorruption)
186 {
187 }
188 string text;
189 return TextureManager.Load(text);
190 }
191
192 // Token: 0x06000DCF RID: 3535 RVA: 0x000424BC File Offset: 0x000406BC
194 {
195 }
196
197 // Token: 0x06000DD0 RID: 3536 RVA: 0x000424D0 File Offset: 0x000406D0
198 private void WorldDraw()
199 {
200 int num = 32;
201 int num2 = 24;
202 if (num == 0)
203 {
204 }
205 string text;
206 if (text == null)
207 {
208 }
209 string text2;
210 string textValue = Language.GetTextValue("UI.WorldSizeFormat", text2);
211 if (num2 == 0)
212 {
213 }
215 string text3;
216 string textValue2 = Language.GetTextValue("UI.WorldCreatedFormat", text3);
217 if ("UI.WorldCreatedFormat" == null)
218 {
219 }
220 if (num2 == 0)
221 {
222 }
223 bool mouseLeft = Main.mouseLeft;
224 bool mouseLeftRelease = Main.mouseLeftRelease;
226 Main.menuMode = 6;
227 if (num2 == 0)
228 {
229 return;
230 }
231 }
232
233 // Token: 0x06000DD1 RID: 3537 RVA: 0x00042554 File Offset: 0x00040754
235 {
236 }
237
238 // Token: 0x04001966 RID: 6502
239 private float joinButtonScale;
240
241 // Token: 0x04001967 RID: 6503
242 private float backButtonScale;
243
244 // Token: 0x04001968 RID: 6504
245 private float TitleScale = (float)16256;
246
247 // Token: 0x04001969 RID: 6505
248 private string _password = "";
249
250 // Token: 0x0400196A RID: 6506
252
253 // Token: 0x0400196B RID: 6507
255
256 // Token: 0x0400196C RID: 6508
258
259 // Token: 0x0400196D RID: 6509
261
262 // Token: 0x0400196E RID: 6510
263 public const int MaxLocalMPPlayers = 8;
264
265 // Token: 0x0400196F RID: 6511
267
268 // Token: 0x04001970 RID: 6512
269 private float maxPlayerScale = (float)16256;
270
271 // Token: 0x04001971 RID: 6513
272 public bool InviteOnly;
273
274 // Token: 0x04001972 RID: 6514
275 private float InviteToggleScale;
276}
class f__AnonymousType0<< Count > j__TPar
static void SetGridItemRegion(Rectangle region)
Texture2D GetIcon(WorldFileData worldData)
GUISlider.DragState dragState
bool IsOverOptions(Vector2 cursorPosition)
void DrawWorld(WorldFileData worldData)
GUIControllerMultiplayerHost _controllerInput
GUIInputRegionExclusive _optionsBlocker
static float CalculateValue(int input, int minValue, int maxValue)
Definition GUISlider.cs:98
static Texture2D Load(string name)
static string GetTextValue(string key)
Definition Language.cs:54
static void LoadWorlds()
Definition Main.cs:5700
static bool mouseLeftRelease
Definition Main.cs:2029
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 bool mouseLeft
Definition Main.cs:671
static PlatformUser CurrentUser