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

◆ DrawWorldDifficulty()

void GUIWorldCreateMenu.DrawWorldDifficulty ( )
inlineprivate

Definition at line 246 of file GUIWorldCreateMenu.cs.

247 {
248 int num = 4;
250 string textValue = Language.GetTextValue("UI.Normal");
252 Vector2 vector = spriteFont.MeasureString(textValue);
253 string textValue2 = Language.GetTextValue("UI.Expert");
255 Vector2 vector2 = spriteFont2.MeasureString(textValue2);
256 string textValue3 = Language.GetTextValue("UI.Master");
258 Vector2 vector3 = spriteFont3.MeasureString(textValue3);
259 string textValue4 = Language.GetTextValue("UI.Creative");
261 Vector2 vector4 = spriteFont4.MeasureString(textValue4);
262 int num2 = this.difficulty;
263 float num3 = this.buttonsDistance;
264 int screenHeight = Main.screenHeight;
265 float num4 = this.buttonsDistance;
267 float num5 = this.buttonsDistance;
268 int num6 = 32640;
269 int num7 = 32768;
271 bool flag = this.optionOpenClicked;
272 if (flag)
273 {
274 if (!flag)
275 {
276 }
277 bool mouseLeftRelease = Main.mouseLeftRelease;
278 }
280 {
281 if (num7 == 0)
282 {
283 }
284 int screenWidth = Main.screenWidth;
286 }
288 if (optionsBlocker == null || this.displayDifficultyOptions)
289 {
290 }
291 if (optionsBlocker == null)
292 {
293 }
294 bool mouseLeft = Main.mouseLeft;
295 if (optionsBlocker == null)
296 {
297 }
299 if (this.difficulty == 0)
300 {
301 return;
302 }
303 string textValue5 = Language.GetTextValue("UI.Expert");
305 {
306 }
307 string textValue6 = Language.GetTextValue("Mobile.CreateWorldDifficultyTitle");
309 Vector2 vector5 = spriteFont5.MeasureString(textValue6);
311 Vector2 vector6 = spriteFont6.MeasureString(textValue5);
312 long num8 = 0L;
314 Vector2 vector7 = spriteFont7.MeasureString(textValue5);
315 int stringLength = textValue5._stringLength;
316 long num9 = 0L;
317 string text = textValue5.Substring((int)num9, (int)num8);
319 Vector2 vector8 = spriteFont8.MeasureString(text);
320 string text2 = text + "...";
322 bool flag3 = this.displayWorldOptions;
323 }
class f__AnonymousType0<< Count > j__TPar
GUIInputRegionExclusive _optionsBlocker
static string GetTextValue(string key)
Definition Language.cs:54
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

References _optionsBlocker, buttonsDistance, difficulty, displayDifficultyOptions, displayWorldOptions, Terraria.Localization.Language.GetTextValue(), j__TPar, System.L, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, optionOpenClicked, Terraria.Main.screenHeight, Terraria.Main.screenWidth, and System.text.