1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 03:33:29 +08:00

some fixes

This commit is contained in:
2023-10-17 17:34:48 +08:00
parent 5d9085d8dc
commit 1f60a386e6
4 changed files with 11 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ public static class UIConfigWindow
MyWindow.AddText(x, y, tab, "Maximum star count", 16);
x += 20f;
y += 26f;
var sl0 = MySlider.CreateSlider(x, y, tab, (float)MoreSettings.MaxStarCount.Value, 64f, 1024f, "G", 240f);
var sl0 = MySlider.CreateSlider(x, y, tab, MoreSettings.MaxStarCount.Value, 64f, 1024f, "G", 240f);
sl0.OnValueChanged += () =>
{
sl0.Value = MoreSettings.MaxStarCount.Value = (Mathf.RoundToInt(sl0.Value) + 7) & ~7;