1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Use FinishTransforms rather than manual duplication of background colour logic

This commit is contained in:
Dean Herbert 2023-02-03 16:25:54 +09:00
parent a1200b8fe8
commit 4248453616

View File

@ -140,11 +140,10 @@ namespace osu.Game.Screens.Select.FooterV2
{
base.LoadComplete();
// We want the first colour assignment for the background to be instantaneous
backgroundBox.Colour = Enabled.Value ? colourProvider.Background3 : colourProvider.Background3.Darken(0.3f);
Enabled.BindValueChanged(_ => updateDisplay(), true);
OverlayState.BindValueChanged(_ => updateDisplay());
Enabled.BindValueChanged(_ => updateDisplay(), true);
FinishTransforms(true);
}
public GlobalAction? Hotkey;