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

◆ GetSortingValueForElement()

float Terraria.GameContent.Bestiary.NPCPortraitInfoElement.GetSortingValueForElement ( IBestiaryInfoElement element)
inlineprivate

Definition at line 99 of file NPCPortraitInfoElement.cs.

100 {
101 if (element is IBestiaryBackgroundOverlayAndColorProvider bestiaryBackgroundOverlayAndColorProvider)
102 {
103 return bestiaryBackgroundOverlayAndColorProvider.DisplayPriority;
104 }
105 return 0f;
106 }

Referenced by Terraria.GameContent.Bestiary.NPCPortraitInfoElement.ProvideUIElement().