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

◆ AddUnlockTextIfNeeded()

static void Terraria.GameContent.Creative.CreativePowersHelper.AddUnlockTextIfNeeded ( ref string originalText,
bool needed,
string descriptionKey )
inlinestatic

Definition at line 153 of file CreativePowersHelper.cs.

154 {
155 if (!needed)
156 {
158 originalText = originalText + "\n" + textValue;
159 }
160 }
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

References Terraria.Localization.Language.GetTextValue().

Referenced by Terraria.GameContent.Creative.CreativePowers.APerPlayerTogglePower.button_OnUpdate(), Terraria.GameContent.Creative.CreativePowers.ASharedButtonPower.button_OnUpdate(), Terraria.GameContent.Creative.CreativePowers.ASharedTogglePower.button_OnUpdate(), Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.categoryButton_OnUpdate(), and Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.categoryButton_OnUpdate().

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