Skip to content

Commit

Permalink
Fix to standard Slider not updating value text (4WvgDW71cH)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Box-Coder committed May 20, 2023
1 parent 976495b commit 4836057
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ namespace ssGUI
displayValue = displayValue < MinDisplayValue ? MinDisplayValue : displayValue;

GetSliderObject()->SetSliderValue((displayValue - MinDisplayValue) / (MaxDisplayValue - MinDisplayValue));
UpdateDisplayTextContent();
}

float StandardSlider::GetDisplayValue() const
Expand Down Expand Up @@ -336,6 +337,7 @@ namespace ssGUI
void StandardSlider::SetDisplayIntegerValue(bool displayInteger)
{
DisplayInteger = displayInteger;
UpdateDisplayTextContent();
}

bool StandardSlider::IsDisplayIntegerValue() const
Expand All @@ -346,6 +348,7 @@ namespace ssGUI
void StandardSlider::SetDisplayDecimalPlaces(int decimalPlaces)
{
DisplayDecimalPlaces = decimalPlaces;
UpdateDisplayTextContent();
}

int StandardSlider::GetDisplayDecimalPlaces() const
Expand Down Expand Up @@ -399,8 +402,4 @@ namespace ssGUI
ssLOG_FUNC_EXIT();
return temp;
}




}

0 comments on commit 4836057

Please sign in to comment.