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

◆ categoryButton_OnUpdate()

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

Definition at line 658 of file CreativePowers.cs.

659 {
660 if (affectedElement.IsMouseHovering)
661 {
663 string originalText = Language.GetTextValue(_powerNameKey + (groupOptionButton.IsSelected ? "_Opened" : "_Closed"));
664 CreativePowersHelper.AddDescriptionIfNeeded(ref originalText, _powerNameKey + "_Description");
665 CreativePowersHelper.AddUnlockTextIfNeeded(ref originalText, GetIsUnlocked(), _powerNameKey + "_Unlock");
666 CreativePowersHelper.AddPermissionTextIfNeeded(this, ref originalText);
667 Main.instance.MouseTextNoOverride(originalText, 0, 0);
668 }
670 }
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.ASharedSliderPower._powerNameKey, Terraria.GameContent.Creative.CreativePowersHelper.AddDescriptionIfNeeded(), Terraria.GameContent.Creative.CreativePowersHelper.AddPermissionTextIfNeeded(), Terraria.GameContent.Creative.CreativePowersHelper.AddUnlockTextIfNeeded(), Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.AttemptPushingChange(), Terraria.GameContent.Creative.CreativePowers.ASharedSliderPower.GetIsUnlocked(), Terraria.Localization.Language.GetTextValue(), and Terraria.Main.instance.

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

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