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

◆ GetGuideString()

override string TutorialStep_03_CraftWorkbench.GetGuideString ( )
inlinevirtual

Reimplemented from TutorialStep.

Definition at line 17 of file TutorialStep_03_CraftWorkbench.cs.

18 {
19 do
20 {
21 LocalizedText text = Language.GetText("Tutorial.NeedMoreWood");
22 if (this.craftedWorkbench)
23 {
24 }
25 }
26 while (!this.got10Wood);
27 string <Value>k__BackingField = Language.GetText("Tutorial.HaveWood").<Value>k__BackingField;
29 if (this.craftedWorkbench)
30 {
32 string text2 = <Value>k__BackingField.Replace("[cm:1]", controlTag);
34 string text3 = text2.Replace("[cm:2]", controlTag2);
36 string text4 = text3.Replace("[cm:5]", controlTag3);
39 if (entry.InputKey == KeyCode.None && entry2.InputKey == KeyCode.None)
40 {
41 return 9;
42 }
44 string text5 = text4.Replace("[cm:7]", controlTag4);
46 string text6 = text5.Replace("[cm:8]", controlTag5);
49 if (entry3.InputKey != KeyCode.None || entry4.InputKey != KeyCode.None)
50 {
52 string text7 = text6.Replace("[cm:9]", controlTag6);
54 string text8 = text7.Replace("[cm:10]", controlTag7);
56 return text8.Replace("[cm:12]", controlTag8);
57 }
58 return 22;
59 }
60 else
61 {
62 string text8;
63 if (text8._stringLength != 0)
64 {
65 return "[cm:12]";
66 }
67 return Language.GetTextValue("TutorialTouch.NeedMoreWood");
68 }
69 }
class f__AnonymousType0<< Count > j__TPar
static string GetControlTag(ControlsKeyboardTagHandler.MappingType mappingType)
static LocalizedText GetText(string key)
Definition Language.cs:44
static string GetTextValue(string key)
Definition Language.cs:54
static XNAUnityRunner.ForcedInputMode PrimaryInputMode

References craftedWorkbench, GUIKeyboardMappings.GetControlTag(), Terraria.Localization.Language.GetText(), Terraria.Localization.Language.GetTextValue(), got10Wood, Controller.ControllerActionButton.Entry.InputKey, j__TPar, XNAUnityRunner.PrimaryInputMode, and System.text.