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

◆ categoryButton_OnUpdate()

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

Definition at line 321 of file CreativePowers.cs.

322 {
323 if (affectedElement.IsMouseHovering)
324 {
326 string originalText = Language.GetTextValue(_powerNameKey + (groupOptionButton.IsSelected ? "_Opened" : "_Closed"));
327 CreativePowersHelper.AddDescriptionIfNeeded(ref originalText, _powerNameKey + "_Description");
328 CreativePowersHelper.AddUnlockTextIfNeeded(ref originalText, GetIsUnlocked(), _powerNameKey + "_Unlock");
329 CreativePowersHelper.AddPermissionTextIfNeeded(this, ref originalText);
330 Main.instance.MouseTextNoOverride(originalText, 0, 0);
331 }
333 }
static string GetTextValue(string key)
Definition Language.cs:15

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