Esempio n. 1
0
        public override void OnInitialize()
        {
            this.SetPadding(0);

            this.Top.Pixels = this.Parent.Height.Pixels - height;

            this.Height.Pixels = height;
            this.Width.Pixels  = this.Parent.Width.Pixels;

            soulList = new SoulIndexUIList(soulPanel);
            this.Append(soulList);

            titleBar             = new SoulIndexUITitleBar(GetTexture("MysticHunter/Souls/UI/SoulIndex_TitleBar"), "");
            titleBar.Top.Pixels  = -12;
            titleBar.Left.Pixels = 60;
            this.Append(titleBar);

            SoulIndexUIScrollbar listScrollbar = new SoulIndexUIScrollbar();

            listScrollbar.SetView(100f, 1000f);
            listScrollbar.Top.Pixels    = 8;
            listScrollbar.Left.Pixels   = this.Width.Pixels - 18;
            listScrollbar.Height.Pixels = this.Height.Pixels - 16;
            this.Append(listScrollbar);
            soulList.SetScrollbar(listScrollbar);
        }
Esempio n. 2
0
 public void SetScrollbar(SoulIndexUIScrollbar scrollbar)
 {
     _scrollbar = scrollbar;
     UpdateScrollbar();
 }