1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 05:43:39 +08:00

Move disable to better place

This commit is contained in:
Bartłomiej Dach
2025-12-22 10:04:29 +01:00
Unverified
parent daaea093f0
commit df524d68fd
@@ -207,7 +207,6 @@ namespace osu.Game.Graphics.UserInterfaceV2
}
currentNumberInstantaneous.Disabled = disabled;
textBox.ReadOnly = disabled;
updateState();
};
@@ -295,6 +294,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
bool childHasFocus = slider.Focused.Value || textBox.Focused.Value;
textBox.Alpha = 1;
textBox.ReadOnly = Current.Disabled;
background.Colour = currentNumberInstantaneous.Disabled ? colourProvider.Background4 : colourProvider.Background5;
captionText.Colour = currentNumberInstantaneous.Disabled ? colourProvider.Foreground1 : colourProvider.Content2;