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

◆ GetHoverText()

string Terraria.GameContent.Bestiary.UnlockableNPCEntryIcon.GetHoverText ( BestiaryUICollectionInfo providedInfo)
inline

Implements Terraria.GameContent.Bestiary.IEntryIcon.

Definition at line 248 of file UnlockableNPCEntryIcon.cs.

249 {
250 string result = Lang.GetNPCNameValue(_npcCache.netID);
252 {
254 }
256 {
257 return result;
258 }
259 return "???";
260 }
bool GetUnlockState(BestiaryUICollectionInfo providedInfo)
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
int netID
Similar to F:Terraria.NPC.type, but accounts for negative T:Terraria.ID.NPCID values.
Definition NPC.cs:1168

References Terraria.GameContent.Bestiary.UnlockableNPCEntryIcon._npcCache, Terraria.GameContent.Bestiary.UnlockableNPCEntryIcon._overrideNameKey, Terraria.Lang.GetNPCNameValue(), Terraria.Localization.Language.GetTextValue(), Terraria.GameContent.Bestiary.UnlockableNPCEntryIcon.GetUnlockState(), and Terraria.NPC.netID.

+ Here is the call graph for this function: