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

◆ categoryButton_OnUpdate()

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

Definition at line 650 of file CreativePowers.cs.

651 {
652 if (affectedElement.IsMouseHovering)
653 {
655 string originalText = Language.GetTextValue(_powerNameKey + (groupOptionButton.IsSelected ? "_Opened" : "_Closed"));
656 CreativePowersHelper.AddDescriptionIfNeeded(ref originalText, _powerNameKey + "_Description");
657 CreativePowersHelper.AddUnlockTextIfNeeded(ref originalText, GetIsUnlocked(), _powerNameKey + "_Unlock");
658 CreativePowersHelper.AddPermissionTextIfNeeded(this, ref originalText);
659 Main.instance.MouseTextNoOverride(originalText, 0, 0);
660 }
662 }
static string GetTextValue(string key)
Definition Language.cs:15

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().