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

◆ UpdateSliderAndShowMultiplierMouseOver()

void Terraria.GameContent.Creative.CreativePowers.ModifyWindDirectionAndStrength.UpdateSliderAndShowMultiplierMouseOver ( UIElement affectedElement)
inlineprivate

Definition at line 1315 of file CreativePowers.cs.

1316 {
1317 if (affectedElement.IsMouseHovering)
1318 {
1319 int num = (int)(Main.windSpeedCurrent * 50f);
1320 string originalText = "";
1321 if (num < 0)
1322 {
1323 originalText += Language.GetTextValue("GameUI.EastWind", Math.Abs(num));
1324 }
1325 else if (num > 0)
1326 {
1327 originalText += Language.GetTextValue("GameUI.WestWind", num);
1328 }
1329 CreativePowersHelper.AddPermissionTextIfNeeded(this, ref originalText);
1330 Main.instance.MouseTextNoOverride(originalText, 0, 0);
1331 }
1332 }
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.AddPermissionTextIfNeeded(), Terraria.Localization.Language.GetTextValue(), Terraria.Main.instance, and Terraria.Main.windSpeedCurrent.

Referenced by Terraria.GameContent.Creative.CreativePowers.ModifyWindDirectionAndStrength.ProvideSlider().

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