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

◆ UpdateSliderColorAndShowMultiplierMouseOver()

void Terraria.GameContent.Creative.CreativePowers.DifficultySliderPower.UpdateSliderColorAndShowMultiplierMouseOver ( UIElement affectedElement)
inlineprivate

Definition at line 1137 of file CreativePowers.cs.

1138 {
1139 if (affectedElement.IsMouseHovering)
1140 {
1141 string originalText = "x" + StrengthMultiplierToGiveNPCs.ToString("F2");
1142 CreativePowersHelper.AddPermissionTextIfNeeded(this, ref originalText);
1143 Main.instance.MouseTextNoOverride(originalText, 0, 0);
1144 }
1146 {
1147 uIVerticalSlider.EmptyColor = Color.Black;
1148 Color filledColor = (Main.masterMode ? Main.hcColor : (Main.expertMode ? Main.mcColor : ((!(StrengthMultiplierToGiveNPCs < 1f)) ? Color.White : Main.creativeModeColor)));
1149 uIVerticalSlider.FilledColor = filledColor;
1150 }
1151 }

References Terraria.GameContent.Creative.CreativePowersHelper.AddPermissionTextIfNeeded(), Microsoft.Xna.Framework.Color.Black, Terraria.Main.creativeModeColor, Terraria.Main.instance, and Terraria.GameContent.Creative.CreativePowers.DifficultySliderPower.StrengthMultiplierToGiveNPCs.

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