Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UIBestiaryEntryInfoPage()

Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.UIBestiaryEntryInfoPage ( )
inline

Definition at line 28 of file UIBestiaryEntryInfoPage.cs.

29 {
30 Width.Set(230f, 0f);
31 Height.Set(0f, 1f);
32 SetPadding(0f);
33 BorderColor = new Color(89, 116, 213, 255);
34 BackgroundColor = new Color(73, 94, 171);
35 UIList uIList = new UIList
36 {
39 };
40 uIList.SetPadding(2f);
41 uIList.PaddingBottom = 4f;
42 uIList.PaddingTop = 4f;
44 _list = uIList;
45 uIList.ListPadding = 4f;
46 uIList.ManualSortMethod = ManualIfnoSortingMethod;
47 UIScrollbar uIScrollbar = new UIScrollbar();
48 uIScrollbar.SetView(100f, 1000f);
49 uIScrollbar.Height.Set(-20f, 1f);
50 uIScrollbar.HAlign = 1f;
51 uIScrollbar.VAlign = 0.5f;
52 uIScrollbar.Left.Set(-6f, 0f);
57 }
void SetScrollbar(UIScrollbar scrollbar)
Definition UIList.cs:141
StyleDimension Height
Definition UIElement.cs:29
void Append(UIElement element)
Definition UIElement.cs:166
StyleDimension Width
Definition UIElement.cs:27
void SetPadding(float pixels)
Definition UIElement.cs:361
void Set(float pixels, float precent)
static StyleDimension FromPixelsAndPercent(float pixels, float percent)

References Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage._list, Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage._scrollbar, Terraria.UI.UIElement.Append(), Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.AppendBorderOverEverything(), Terraria.GameContent.UI.Elements.UIPanel.BackgroundColor, Terraria.GameContent.UI.Elements.UIPanel.BorderColor, Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.CheckScrollBar(), Terraria.UI.StyleDimension.FromPixelsAndPercent(), Terraria.UI.UIElement.Height, Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.ManualIfnoSortingMethod(), Terraria.UI.StyleDimension.Set(), Terraria.UI.UIElement.SetPadding(), Terraria.GameContent.UI.Elements.UIList.SetScrollbar(), and Terraria.UI.UIElement.Width.