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

◆ button_OnUpdate()

void Terraria.GameContent.Creative.CreativePowers.ASharedButtonPower.button_OnUpdate ( UIElement affectedElement)
inlineprivateinherited

Definition at line 429 of file CreativePowers.cs.

430 {
431 if (affectedElement.IsMouseHovering)
432 {
433 string originalText = Language.GetTextValue(_powerNameKey);
434 CreativePowersHelper.AddDescriptionIfNeeded(ref originalText, _descriptionKey);
435 CreativePowersHelper.AddUnlockTextIfNeeded(ref originalText, GetIsUnlocked(), _powerNameKey + "_Unlock");
436 CreativePowersHelper.AddPermissionTextIfNeeded(this, ref originalText);
437 Main.instance.MouseTextNoOverride(originalText, 0, 0);
438 }
439 }
static string GetTextValue(string key)
Definition Language.cs:15

References Terraria.GameContent.Creative.CreativePowers.ASharedButtonPower._descriptionKey, Terraria.GameContent.Creative.CreativePowers.ASharedButtonPower._powerNameKey, Terraria.GameContent.Creative.CreativePowersHelper.AddDescriptionIfNeeded(), Terraria.GameContent.Creative.CreativePowersHelper.AddPermissionTextIfNeeded(), Terraria.GameContent.Creative.CreativePowersHelper.AddUnlockTextIfNeeded(), Terraria.GameContent.Creative.CreativePowers.ASharedButtonPower.GetIsUnlocked(), Terraria.Localization.Language.GetTextValue(), and Terraria.Main.instance.

Referenced by Terraria.GameContent.Creative.CreativePowers.ASharedButtonPower.ProvidePowerButtons().