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

◆ CreateButton()

static GameObject UnityEngine.UI.DefaultControls.CreateButton ( DefaultControls::Resources resources)
inlinestatic

Definition at line 107 of file DefaultControls.cs.

108 {
109 if (!true)
110 {
111 }
112 Type type;
113 Type type2;
114 Type type3;
115 if ((type == null || type != null) && (type2 == null || type2 != null) && (type3 == null || type3 != null))
116 {
117 GameObject gameObject;
118 gameObject.GetComponent<Image>().type = Image.Type.Sliced;
119 Button component = gameObject.GetComponent<Button>();
120 GameObject gameObject2;
121 Text component2 = gameObject2.GetComponent<Text>();
122 component2.alignment = TextAnchor.MiddleCenter;
123 DefaultControls.SetDefaultTextValues(component2);
124 RectTransform component3 = gameObject2.GetComponent<RectTransform>();
125 return gameObject;
126 }
127 throw new ArrayTypeMismatchException();
128 }
class f__AnonymousType0<< Count > j__TPar

References UnityEngine.Component.GetComponent(), UnityEngine.GameObject.GetComponent(), j__TPar, and UnityEngine.UI.DefaultControls.SetDefaultTextValues().