public EleGenVertScrollRgn <RectTy, ScrollTy> CreateGenVerticalScrollRect <RectTy, ScrollTy>(EleBaseRect parent, string name = "") where RectTy : UnityEngine.UI.ScrollRect where ScrollTy : UnityEngine.UI.Scrollbar { EleGenVertScrollRgn <RectTy, ScrollTy> evsr = new EleGenVertScrollRgn <RectTy, ScrollTy>( parent, this.horizScroll, this.verticalScroll, this.scrollRectShowBack, this.scrollRectSensitivity, name); return(evsr); }
public EleGenVertScrollRgn <RTy, STy> PushVertScrollRect <RTy, STy>(float proportion, LFlag flags, string name = "") where RTy : UnityEngine.UI.ScrollRect where STy : UnityEngine.UI.Scrollbar { EleGenVertScrollRgn <RTy, STy> ret = this.AddVertScrollRect <RTy, STy>(proportion, flags, name); if (ret == null) { return(null); } this.stack.Push(this.head); this.head = new Entry(ret); return(ret); }
public EleGenVertScrollRgn <RTy, STy> AddVertScrollRect <RTy, STy>(float proportion, LFlag flags, string name = "") where RTy : UnityEngine.UI.ScrollRect where STy : UnityEngine.UI.Scrollbar { EleBaseSizer szr = this.head.GetSizer(); if (szr == null) { return(null); } EleGenVertScrollRgn <RTy, STy> srgn = this.uiFactory.CreateGenVerticalScrollRect <RTy, STy>(this.head.rect, name); szr.Add(srgn, proportion, flags); return(srgn); }