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

◆ DrawWorldEvilType()

void GUIWorldCreateMenu.DrawWorldEvilType ( )
inlineprivate

Definition at line 326 of file GUIWorldCreateMenu.cs.

327 {
328 int num = 3;
330 string textValue = Language.GetTextValue("LegacyMisc.103");
332 Vector2 vector = spriteFont.MeasureString(textValue);
333 string textValue2 = Language.GetTextValue("LegacyMisc.101");
335 Vector2 vector2 = spriteFont2.MeasureString(textValue2);
336 string textValue3 = Language.GetTextValue("LegacyMisc.102");
338 Vector2 vector3 = spriteFont3.MeasureString(textValue3);
339 float num2 = this.buttonsDistance;
340 int screenHeight = Main.screenHeight;
341 float num3 = this.buttonsDistance;
343 float num4 = this.buttonsDistance;
344 int num5 = 32640;
345 int num6 = 32768;
347 bool flag = this.optionOpenClicked;
348 if (flag)
349 {
350 if (!flag)
351 {
352 }
353 bool mouseLeftRelease = Main.mouseLeftRelease;
354 }
355 if (this.displayEvilTypeOptions)
356 {
357 if (num6 == 0)
358 {
359 }
360 int screenWidth = Main.screenWidth;
362 }
364 if (optionsBlocker == null || this.displayEvilTypeOptions)
365 {
366 }
367 if (optionsBlocker == null)
368 {
369 }
370 bool mouseLeft = Main.mouseLeft;
371 if (optionsBlocker == null)
372 {
373 }
375 if (this.evilType == 0)
376 {
377 return;
378 }
379 string textValue4 = Language.GetTextValue("LegacyMisc.102");
380 if (this.displayEvilTypeOptions)
381 {
382 }
383 string textValue5 = Language.GetTextValue("UI.WorldCreationEvil");
385 Vector2 vector4 = spriteFont4.MeasureString(textValue5);
387 Vector2 vector5 = spriteFont5.MeasureString(textValue4);
388 long num7 = 0L;
390 Vector2 vector6 = spriteFont6.MeasureString(textValue4);
391 int stringLength = textValue4._stringLength;
392 long num8 = 0L;
393 string text = textValue4.Substring((int)num8, (int)num7);
395 Vector2 vector7 = spriteFont7.MeasureString(text);
396 string text2 = text + "...";
397 bool flag2 = this.displayWorldOptions;
398 bool flag3 = this.displayEvilTypeOptions;
399 if (flag2)
400 {
401 return;
402 }
407 {
408 int num9 = 1;
409 bool flag5 = this.displayEvilTypeOptions;
410 this.optionOpenClicked = num9 != 0;
411 if (flag5)
412 {
415 return;
416 }
417 if (!flag3)
418 {
420 int num10 = 2;
422 }
423 int num11 = 1;
424 this.displayEvilTypeOptions = num11 != 0;
426 int num12 = this.evilType;
427 int num13 = this.evilWrapAround;
430 controllerInput2.ActivateEvilTypeOptions(num12, num13);
431 }
432 if (controllerInput == null)
433 {
434 }
435 if (this.displayEvilTypeOptions)
436 {
437 int num14 = this.evilWrapAround;
438 float num15 = this.buttonsDistance;
440 int num16 = this.evilWrapAround;
441 float num17 = this.buttonsDistance;
444 int worldIndex = controllerInput.worldIndex;
445 int num18 = this.evilPulldownCount;
446 float num19 = this.buttonsDistance;
447 int num20 = this.evilWrapAround;
449 int num21 = this.evilPulldownCount;
450 float num22 = this.buttonsDistance;
452 int worldIndex2 = controllerInput.worldIndex;
454 string textValue6 = Language.GetTextValue("LegacyMisc.103");
455 int num23 = this.evilType;
457 if (inputState2 == GUITransactionButton.InputState.Clicked && !this.optionOpenClicked)
458 {
460 string textValue7 = Language.GetTextValue("UI.WorldDescriptionEvilRandom");
464 }
465 string textValue8 = Language.GetTextValue("LegacyMisc.101");
466 int num24 = this.evilType;
468 if (inputState3 == GUITransactionButton.InputState.Clicked && !this.optionOpenClicked)
469 {
470 string textValue9 = Language.GetTextValue("UI.WorldDescriptionEvilCorrupt");
474 }
475 string textValue10 = Language.GetTextValue("LegacyMisc.102");
476 int num25 = this.evilType;
478 if (inputState4 == GUITransactionButton.InputState.Clicked && !this.optionOpenClicked)
479 {
480 string textValue11 = Language.GetTextValue("UI.WorldDescriptionEvilCrimson");
482 int num26 = 1;
486 }
488 if (optionsBlocker6 != null)
489 {
490 int num27 = 1;
496 }
497 }
498 }
class f__AnonymousType0<< Count > j__TPar
GUIInputRegionExclusive _optionsBlocker
GUIWorldCreateController _controllerInput
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 _controllerInput, _optionsBlocker, _pulldownShiftEvil, buttonsDistance, GUIWorldCreateController.DeactivateEvilTypeOptions(), displayDifficultyOptions, displayEvilTypeOptions, displayWorldOptions, evilPulldownCount, evilType, evilWrapAround, Terraria.Localization.Language.GetTextValue(), j__TPar, System.L, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, optionOpenClicked, Terraria.Main.screenHeight, Terraria.Main.screenWidth, System.text, and GUIWorldCreateController.worldIndex.