Exemplo n.º 1
0
        public UIBestiaryEntryInfoPage()
        {
            this.Width.Set(230f, 0.0f);
            this.Height.Set(0.0f, 1f);
            this.SetPadding(0.0f);
            this.BorderColor     = new Color(89, 116, 213, (int)byte.MaxValue);
            this.BackgroundColor = new Color(73, 94, 171);
            UIList uiList1 = new UIList();

            uiList1.Width  = StyleDimension.FromPixelsAndPercent(0.0f, 1f);
            uiList1.Height = StyleDimension.FromPixelsAndPercent(0.0f, 1f);
            UIList uiList2 = uiList1;

            uiList2.SetPadding(2f);
            uiList2.PaddingBottom = 4f;
            uiList2.PaddingTop    = 4f;
            this.Append((UIElement)uiList2);
            this._list               = uiList2;
            uiList2.ListPadding      = 4f;
            uiList2.ManualSortMethod = new Action <List <UIElement> >(this.ManualIfnoSortingMethod);
            UIScrollbar uiScrollbar = new UIScrollbar();

            uiScrollbar.SetView(100f, 1000f);
            uiScrollbar.Height.Set(-20f, 1f);
            uiScrollbar.HAlign = 1f;
            uiScrollbar.VAlign = 0.5f;
            uiScrollbar.Left.Set(-6f, 0.0f);
            this._scrollbar = uiScrollbar;
            this._list.SetScrollbar(this._scrollbar);
            this.CheckScrollBar();
            this.AppendBorderOverEverything();
        }
Exemplo n.º 2
0
        public UIBestiaryEntryInfoPage()
        {
            Width.Set(230f, 0f);
            Height.Set(0f, 1f);
            SetPadding(0f);
            BorderColor     = new Color(89, 116, 213, 255);
            BackgroundColor = new Color(73, 94, 171);
            UIList uIList = new UIList
            {
                Width  = StyleDimension.FromPixelsAndPercent(0f, 1f),
                Height = StyleDimension.FromPixelsAndPercent(0f, 1f)
            };

            uIList.SetPadding(2f);
            uIList.PaddingBottom = 4f;
            uIList.PaddingTop    = 4f;
            Append(uIList);
            _list = uIList;
            uIList.ListPadding      = 4f;
            uIList.ManualSortMethod = ManualIfnoSortingMethod;
            UIScrollbar uIScrollbar = new UIScrollbar();

            uIScrollbar.SetView(100f, 1000f);
            uIScrollbar.Height.Set(-20f, 1f);
            uIScrollbar.HAlign = 1f;
            uIScrollbar.VAlign = 0.5f;
            uIScrollbar.Left.Set(-6f, 0f);
            _scrollbar = uIScrollbar;
            _list.SetScrollbar(_scrollbar);
            CheckScrollBar();
            AppendBorderOverEverything();
        }