mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Modify LogoVisualisation to allow color changes
Also change the color from blue to dark blue
This commit is contained in:
parent
4ebc1d3721
commit
b79773cdb1
@ -95,7 +95,8 @@ namespace osu.Game.Screens.Menu
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Alpha = 0.5f,
|
||||
AccentColour = Color4.Blue,
|
||||
isIntro = true,
|
||||
AccentColour = Color4.DarkBlue,
|
||||
Size = new Vector2(0.96f)
|
||||
},
|
||||
circleContainer = new Container
|
||||
|
@ -70,6 +70,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private IShader shader;
|
||||
private readonly Texture texture;
|
||||
public bool isIntro = false;
|
||||
|
||||
private Bindable<User> user;
|
||||
private Bindable<Skin> skin;
|
||||
@ -88,8 +89,11 @@ namespace osu.Game.Screens.Menu
|
||||
user = api.LocalUser.GetBoundCopy();
|
||||
skin = skinManager.CurrentSkin.GetBoundCopy();
|
||||
|
||||
user.ValueChanged += _ => updateColour();
|
||||
skin.BindValueChanged(_ => updateColour(), true);
|
||||
if (!isIntro)
|
||||
{
|
||||
user.ValueChanged += _ => updateColour();
|
||||
skin.BindValueChanged(_ => updateColour(), true);
|
||||
}
|
||||
}
|
||||
|
||||
private void updateAmplitudes()
|
||||
|
Loading…
Reference in New Issue
Block a user