Closed Gamzky closed 1 year ago
Really FloatUtil.ToString should be used here and not float.ToString... Note how in your screenshots, the decimal separator for that field is a comma, where it should be a dot (CW is using invariant culture in an attempt to avoid these issues). So really the problem is being caused when the value in the textbox is being parsed, in BSRadiusTextBox_TextChanged, it's currently using float.TryParse instead of FloatUtil.TryParse. I'll close this PR and add the correct fix in a separate commit. Thanks for finding the issue.
Currently, when you click away from an archetype and click back, the decimal point is being removed causing an incorrect BSRadius. Not sure if this is a good fix as I am not that familiar with C#.
Before:![before](https://user-images.githubusercontent.com/30494798/228332098-23a638c4-53e2-4d71-a16c-746ec737d24a.gif)
After:![after](https://user-images.githubusercontent.com/30494798/228332165-edb2c6d9-ffdc-426d-a3b6-3a3b88b7d9a3.gif)