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

◆ AddInfoToList()

void Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.AddInfoToList ( BestiaryEntry entry,
ExtraBestiaryInfoPageInformation extraInfo )
inlineprivate

Definition at line 128 of file UIBestiaryEntryInfoPage.cs.

129 {
132 orderby x.Key
133 select x;
134 UIElement item = null;
136 {
137 if (item2.Count() == 0)
138 {
139 continue;
140 }
141 bool flag = false;
142 foreach (IBestiaryInfoElement item3 in item2.OrderByDescending(GetIndividualElementPriority))
143 {
144 UIElement uIElement = item3.ProvideUIElement(uICollectionInfo);
145 if (uIElement != null)
146 {
148 flag = true;
149 }
150 }
151 if (flag)
152 {
153 UIHorizontalSeparator uIHorizontalSeparator = new UIHorizontalSeparator
154 {
156 Color = new Color(89, 116, 213, 255) * 0.9f
157 };
160 }
161 }
162 _list.Remove(item);
163 }
BestiaryUICollectionInfo GetUICollectionInfo(BestiaryEntry entry, ExtraBestiaryInfoPageInformation extraInfo)
BestiaryInfoCategory GetBestiaryInfoCategory(IBestiaryInfoElement element)
virtual void Add(UIElement item)
Definition UIList.cs:82
virtual bool Remove(UIElement item)
Definition UIList.cs:90
StyleDimension Width
Definition UIElement.cs:27
static StyleDimension FromPixelsAndPercent(float pixels, float percent)

References Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage._list, Terraria.GameContent.UI.Elements.UIList.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, Terraria.UI.StyleDimension.FromPixelsAndPercent(), Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.GetBestiaryInfoCategory(), Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.GetIndividualElementPriority(), Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.GetUICollectionInfo(), Terraria.GameContent.UI.Elements.UIList.Remove(), and Terraria.UI.UIElement.Width.

Referenced by Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.FillInfoForEntry().