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:
parent
a1200b8fe8
commit
4248453616
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user