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

◆ DrawSelf()

override void Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon.DrawSelf ( SpriteBatch spriteBatch)
inlineprotectedvirtual

Reimplemented from Terraria.UI.UIElement.

Definition at line 51 of file UIBestiaryEntryIcon.cs.

52 {
53 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
54 //IL_0094: Unknown result type (might be due to invalid IL or missing references)
55 //IL_009e: Unknown result type (might be due to invalid IL or missing references)
56 //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
57 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
58 //IL_004f: Unknown result type (might be due to invalid IL or missing references)
59 //IL_0054: Unknown result type (might be due to invalid IL or missing references)
62 bool isHovered = base.IsMouseHovering || ForceHover;
63 if (unlockState)
64 {
66 {
67 iconbox = dimensions.ToRectangle(),
68 IsPortrait = _isPortrait,
69 IsHovered = isHovered
70 });
71 }
72 else
73 {
74 Texture2D value = _notUnlockedTexture.Value;
75 spriteBatch.Draw(value, dimensions.Center(), (Rectangle?)null, Color.White * 0.15f, 0f, value.Size() / 2f, 1f, (SpriteEffects)0, 0f);
76 }
77 }
CalculatedStyle GetDimensions()
Definition UIElement.cs:460
void Draw(BestiaryUICollectionInfo providedInfo, SpriteBatch spriteBatch, EntryIconDrawSettings settings)
bool GetUnlockState(BestiaryUICollectionInfo providedInfo)

References Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon._collectionInfo, Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon._entry, Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon._isPortrait, Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon._notUnlockedTexture, Terraria.GameContent.Bestiary.IEntryIcon.Draw(), Terraria.GameContent.UI.Elements.UIBestiaryEntryIcon.ForceHover, Terraria.UI.UIElement.GetDimensions(), Terraria.GameContent.Bestiary.IEntryIcon.GetUnlockState(), and Terraria.GameContent.Bestiary.BestiaryEntry.Icon.

+ Here is the call graph for this function: