Skip to content

Commit

Permalink
removed Default from wholenumbers requirement
Browse files Browse the repository at this point in the history
No Idea, why I let this get past me since the result is 23 being everywhere.
Can't pinpoint the reason 23 (probably from copied input) occurs here and not in the previous version as No code was deleted and was just moved to a method
  • Loading branch information
jalil49 authored and ManlyMarco committed May 16, 2021
1 parent 3a882ec commit ca53702
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Shared.KKalike/Maker/UI/MakerSlider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ protected override GameObject OnCreateControl(Transform subCategoryList)
var inputField = tr.Find("InputField").GetComponent<TMP_InputField>();
if (MakerAPI.InsideMaker) Singleton<ChaCustom.CustomBase>.Instance.lstTmpInputField.Add(inputField);

if (WholeNumbers)
{
InputField(_defaultValue, inputField);
}
InputField(_defaultValue, inputField);

inputField.onEndEdit.AddListener(
txt =>
Expand Down Expand Up @@ -177,6 +174,5 @@ private void InputField(float f, TMP_InputField inputField)
else
inputField.text = Mathf.RoundToInt(f * 100).ToString();
}

}
}

0 comments on commit ca53702

Please sign in to comment.