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

◆ DrawProfile()

void GUIInterfaceEdit.DrawProfile ( )
inlineprivate

Definition at line 401 of file GUIInterfaceEdit.cs.

402 {
403 bool mouseLeft = Main.mouseLeft;
404 bool mouseLeftRelease = Main.mouseLeftRelease;
405 bool flag = this.editingName;
406 if (flag)
407 {
410 this.CloseNameEdit();
411 }
413 bool flag2 = this.editingName;
414 if (flag2)
415 {
416 string text = this.editNameValue;
417 long num = 0L;
418 if (!flag2)
419 {
420 }
421 int num2 = 20;
422 long num3 = 0L;
423 long num4 = 0L;
424 long num5 = 0L;
426 string inputText = Main.GetInputText(text, rectangle, (int)num, num2 != 0, num3 != 0L, num4 != 0L, num5 != 0L);
427 this.editNameValue = inputText;
428 int stringLength = inputText._stringLength;
429 int num6 = 20;
430 long num7 = 0L;
431 string text2 = inputText.Substring((int)num7, num6);
432 this.editNameValue = text2;
433 if (stringLength == 0)
434 {
435 }
436 if (flag)
437 {
438 return;
439 }
440 if (!flag)
441 {
442 }
444 string text3 = this.editNameValue;
446 int num8 = this.textBlinkerCount;
448 int num9 = this.textBlinkerState;
450 string text4 = this.editNameValue;
451 bool flag3 = string.IsNullOrEmpty(text4);
453 Microsoft.Xna.Framework.Vector2 vector = spriteFont.MeasureString(text4);
454 long num10 = 0L;
456 string text5;
458 int stringLength2 = text4._stringLength;
459 int num11 = 1;
460 string text6 = text4.Substring(num11, (int)num10);
461 return;
462 }
463 else
464 {
466 bool flag4 = this.displayProfileOptions;
467 int num12;
468 if (optionsBlocker != null)
469 {
470 if (flag4)
471 {
472 return;
473 }
474 }
475 else if (flag4)
476 {
477 if (optionsBlocker == null)
478 {
479 }
480 num12 = 1;
481 string text7;
482 int stringLength3 = text7._stringLength;
483 return;
484 }
485 if (num12 == 0)
486 {
487 }
489 bool flag5 = this.displayProfileOptions;
492 {
493 this.CloseProfileOptions();
494 return;
495 }
498 return;
499 }
500 }
class f__AnonymousType0<< Count > j__TPar
GUIInputRegionExclusive _optionsBlocker
static InterfaceProfile_Layout Active
static bool mouseLeftRelease
Definition Main.cs:2029
static string GetInputText(string oldString, Rectangle region, int maxCharacters=-1, bool password=false, bool retainText=false, bool multiline=false, bool filterText=true)
Definition Main.cs:8537
static bool mouseLeft
Definition Main.cs:671

References _optionsBlocker, InterfaceStyles_Layout.Active, CloseNameEdit(), CloseProfileOptions(), displayProfileOptions, editingName, editNameValue, Terraria.Main.GetInputText(), j__TPar, System.L, Terraria.Main.mouseLeft, Terraria.Main.mouseLeftRelease, GUIControllerInterfaceEdit.PageRow, System.text, textBlinkerCount, and textBlinkerState.