1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 04:53:12 +08:00

Modify LogoVisualisation to allow color changes

Also change the color from blue to dark blue
This commit is contained in:
Shivam 2020-06-02 21:50:50 +02:00
parent 4ebc1d3721
commit b79773cdb1
2 changed files with 8 additions and 3 deletions

View File

@ -95,7 +95,8 @@ namespace osu.Game.Screens.Menu
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Alpha = 0.5f, Alpha = 0.5f,
AccentColour = Color4.Blue, isIntro = true,
AccentColour = Color4.DarkBlue,
Size = new Vector2(0.96f) Size = new Vector2(0.96f)
}, },
circleContainer = new Container circleContainer = new Container

View File

@ -70,6 +70,7 @@ namespace osu.Game.Screens.Menu
private IShader shader; private IShader shader;
private readonly Texture texture; private readonly Texture texture;
public bool isIntro = false;
private Bindable<User> user; private Bindable<User> user;
private Bindable<Skin> skin; private Bindable<Skin> skin;
@ -88,8 +89,11 @@ namespace osu.Game.Screens.Menu
user = api.LocalUser.GetBoundCopy(); user = api.LocalUser.GetBoundCopy();
skin = skinManager.CurrentSkin.GetBoundCopy(); skin = skinManager.CurrentSkin.GetBoundCopy();
user.ValueChanged += _ => updateColour(); if (!isIntro)
skin.BindValueChanged(_ => updateColour(), true); {
user.ValueChanged += _ => updateColour();
skin.BindValueChanged(_ => updateColour(), true);
}
} }
private void updateAmplitudes() private void updateAmplitudes()