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

◆ CreateScrollView()

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

Definition at line 312 of file DefaultControls.cs.

313 {
314 Type type;
315 Type type2;
316 Type type3;
317 Type type4;
318 Type type5;
319 if ((type == null || type != null) && (type2 == null || type2 != null) && (type3 == null || type3 != null) && (type4 == null || type4 != null) && (type5 == null || type5 != null))
320 {
321 GameObject gameObject;
322 gameObject.name = "Scrollbar Horizontal";
323 GameObject gameObject2;
324 DefaultControls.SetParentAndAlign(gameObject, gameObject2);
325 Vector2 sizeDelta = gameObject.GetComponent<RectTransform>().sizeDelta;
326 GameObject gameObject3;
327 gameObject3.name = "Scrollbar Vertical";
328 DefaultControls.SetParentAndAlign(gameObject3, gameObject2);
329 gameObject3.GetComponent<Scrollbar>().SetDirection(Scrollbar.Direction.BottomToTop, true);
330 Vector2 sizeDelta2 = gameObject3.GetComponent<RectTransform>().sizeDelta;
331 GameObject gameObject4;
332 RectTransform component = gameObject4.GetComponent<RectTransform>();
333 ScrollRect component2 = gameObject2.GetComponent<ScrollRect>();
334 RectTransform rectTransform;
335 component2.m_Content = rectTransform;
336 component2.viewport = component;
337 Scrollbar component3 = gameObject.GetComponent<Scrollbar>();
339 Scrollbar component4 = gameObject3.GetComponent<Scrollbar>();
341 component2.horizontalScrollbarVisibility = ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport;
342 component2.verticalScrollbarVisibility = ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport;
345 Image image;
346 image.type = Image.Type.Sliced;
347 Mask component5 = gameObject4.GetComponent<Mask>();
348 long num = 0L;
350 Image image2;
351 image2.type = Image.Type.Sliced;
352 return gameObject2;
353 }
354 throw new ArrayTypeMismatchException();
355 }
class f__AnonymousType0<< Count > j__TPar

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