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

◆ AddInfoToList()

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

Definition at line 136 of file UIBestiaryEntryInfoPage.cs.

137 {
138 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)
139 //IL_00f9: Unknown result type (might be due to invalid IL or missing references)
140 //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
143 orderby x.Key
144 select x;
145 UIElement item = null;
147 {
148 if (item2.Count() == 0)
149 {
150 continue;
151 }
152 bool flag = false;
153 foreach (IBestiaryInfoElement item3 in item2.OrderByDescending(GetIndividualElementPriority))
154 {
155 UIElement uIElement = item3.ProvideUIElement(uICollectionInfo);
156 if (uIElement != null)
157 {
158 _list.Add(uIElement);
159 flag = true;
160 }
161 }
162 if (flag)
163 {
164 UIHorizontalSeparator uIHorizontalSeparator = new UIHorizontalSeparator
165 {
167 Color = new Color(89, 116, 213, 255) * 0.9f
168 };
171 }
172 }
173 _list.Remove(item);
174 }
BestiaryUICollectionInfo GetUICollectionInfo(BestiaryEntry entry, ExtraBestiaryInfoPageInformation extraInfo)
BestiaryInfoCategory GetBestiaryInfoCategory(IBestiaryInfoElement element)
virtual void Add(UIElement item)
Definition UIList.cs:106
virtual bool Remove(UIElement item)
Definition UIList.cs:114
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(), Terraria.UI.StyleDimension.FromPixelsAndPercent(), Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.GetBestiaryInfoCategory(), Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.GetIndividualElementPriority(), Terraria.GameContent.UI.Elements.UIBestiaryEntryInfoPage.GetUICollectionInfo(), Terraria.GameContent.Bestiary.BestiaryEntry.Info, Terraria.GameContent.UI.Elements.UIList.Remove(), and Terraria.UI.UIElement.Width.

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function: