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

◆ categoryButton_OnUpdate()

void Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.categoryButton_OnUpdate ( UIElement affectedElement)
inlineprivateinherited

Definition at line 324 of file CreativePowers.cs.

325 {
326 if (affectedElement.IsMouseHovering)
327 {
329 string originalText = Language.GetTextValue(_powerNameKey + (groupOptionButton.IsSelected ? "_Opened" : "_Closed"));
330 CreativePowersHelper.AddDescriptionIfNeeded(ref originalText, _powerNameKey + "_Description");
331 CreativePowersHelper.AddUnlockTextIfNeeded(ref originalText, GetIsUnlocked(), _powerNameKey + "_Unlock");
332 CreativePowersHelper.AddPermissionTextIfNeeded(this, ref originalText);
333 Main.instance.MouseTextNoOverride(originalText, 0, 0);
334 }
336 }
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.GameContent.Creative.CreativePowers.APerPlayerSliderPower._powerNameKey, Terraria.GameContent.Creative.CreativePowersHelper.AddDescriptionIfNeeded(), Terraria.GameContent.Creative.CreativePowersHelper.AddPermissionTextIfNeeded(), Terraria.GameContent.Creative.CreativePowersHelper.AddUnlockTextIfNeeded(), Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.AttemptPushingChange(), Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.GetIsUnlocked(), Terraria.Localization.Language.GetTextValue(), and Terraria.Main.instance.

Referenced by Terraria.GameContent.Creative.CreativePowers.APerPlayerSliderPower.GetOptionButton().

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