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

◆ CategoryButton_OnUpdate_DisplayTooltips()

static void Terraria.GameContent.UI.States.UICreativePowersMenu.CategoryButton_OnUpdate_DisplayTooltips ( UIElement affectedElement,
string categoryNameKey )
inlinestaticprivate

Definition at line 216 of file UICreativePowersMenu.cs.

217 {
219 if (affectedElement.IsMouseHovering)
220 {
221 string originalText = Language.GetTextValue(groupOptionButton.IsSelected ? (categoryNameKey + "Opened") : (categoryNameKey + "Closed"));
223 Main.instance.MouseTextNoOverride(originalText, 0, 0);
224 }
225 }
static void AddDescriptionIfNeeded(ref string originalText, string descriptionKey)
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.CreativePowersHelper.AddDescriptionIfNeeded(), Terraria.Localization.Language.GetTextValue(), and Terraria.Main.instance.

Referenced by Terraria.GameContent.UI.States.UICreativePowersMenu.itemsWindowButton_OnUpdate(), Terraria.GameContent.UI.States.UICreativePowersMenu.personalCategoryButton_OnUpdate(), Terraria.GameContent.UI.States.UICreativePowersMenu.researchWindowButton_OnUpdate(), Terraria.GameContent.UI.States.UICreativePowersMenu.timeCategoryButton_OnUpdate(), and Terraria.GameContent.UI.States.UICreativePowersMenu.weatherCategoryButton_OnUpdate().

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