1
0
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:
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,
Origin = Anchor.Centre,
Alpha = 0.5f,
AccentColour = Color4.Blue,
isIntro = true,
AccentColour = Color4.DarkBlue,
Size = new Vector2(0.96f)
},
circleContainer = new Container

View File

@ -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()