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

◆ CreateToggle()

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

Definition at line 244 of file DefaultControls.cs.

245 {
246 if (!true)
247 {
248 }
249 Type type;
250 Type type2;
251 Type type3;
252 Type type4;
253 if ((type == null || type != null) && (type2 == null || type2 != null) && (type3 == null || type3 != null) && (type4 == null || type4 != null))
254 {
255 GameObject gameObject;
256 Toggle component = gameObject.GetComponent<Toggle>();
257 component.isOn = true;
258 GameObject gameObject2;
259 Image component2 = gameObject2.GetComponent<Image>();
260 component2.type = Image.Type.Sliced;
261 GameObject gameObject3;
262 Image component3 = gameObject3.GetComponent<Image>();
263 GameObject gameObject4;
264 DefaultControls.SetDefaultTextValues(gameObject4.GetComponent<Text>());
267 RectTransform component4 = gameObject2.GetComponent<RectTransform>();
268 RectTransform component5 = gameObject3.GetComponent<RectTransform>();
269 RectTransform component6 = gameObject4.GetComponent<RectTransform>();
270 return gameObject;
271 }
272 throw new ArrayTypeMismatchException();
273 }
class f__AnonymousType0<< Count > j__TPar

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