Skip to content

Commit

Permalink
Fix slider initial text value (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta authored Jul 25, 2020
1 parent 143d294 commit f4a619a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OWML.ModHelper.Menus/ModSliderInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public ModSliderInput(SliderElement element, IModMenu menu) : base(element, menu
public override float Value
{
get => ToRealNumber(_element.GetValue());
set => _element.Initialize((int)ToFakeNumber(value));
set {
_element.Initialize((int)ToFakeNumber(value));
UpdateValueText();
}
}

public IModSliderInput Copy()
Expand Down

0 comments on commit f4a619a

Please sign in to comment.