Пример #1
0
 public void Start()
 {
     this.host = new PxPre.UIL.EleHost(this.rectTransform, true);
     PxPre.UIL.UILStack stk = new PxPre.UIL.UILStack(this.uiFactory, host);
     stk.PushVertSizer();
     this.scroll = stk.PushVertScrollRect(1.0f, PxPre.UIL.LFlag.Grow);
     stk.PushVertSizer().Chn_Border(10.0f, 0.0f, 10.0f, 0.0f);
     this.message = stk.AddWrapText("Add content to create sim.");
 }
Пример #2
0
        public EleVertScrollRgn CreateVerticalScrollRect(EleBaseRect parent, string name = "")
        {
            EleVertScrollRgn evsr =
                new EleVertScrollRgn(
                    parent,
                    this.horizScroll,
                    this.verticalScroll,
                    this.scrollRectShowBack,
                    this.scrollRectSensitivity,
                    name);

            return(evsr);
        }
Пример #3
0
        public EleVertScrollRgn PushVertScrollRect(float proportion, LFlag flags, string name = "")
        {
            EleVertScrollRgn ret = this.AddVertScrollRect(proportion, flags, name);

            if (ret == null)
            {
                return(null);
            }

            this.stack.Push(this.head);

            this.head = new Entry(ret);
            return(ret);
        }
Пример #4
0
        public EleVertScrollRgn AddVertScrollRect(float proportion, LFlag flags, string name)
        {
            EleBaseSizer szr = this.head.GetSizer();

            if (szr == null)
            {
                return(null);
            }

            EleVertScrollRgn srgn =
                this.uiFactory.CreateVerticalScrollRect(this.head.rect, name);

            szr.Add(srgn, proportion, flags);
            return(srgn);
        }