mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 08:32:55 +08:00
Simplify AccentColour property for now
This commit is contained in:
parent
25b1058cd3
commit
8c063fe2b8
@ -22,7 +22,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
internal class LogoVisualisation : Drawable, IHasAccentColour
|
internal class LogoVisualisation : Drawable, IHasAccentColour
|
||||||
{
|
{
|
||||||
private readonly Bindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
|
private readonly Bindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
|
||||||
private Color4 barColour;
|
|
||||||
|
|
||||||
private const int index_change = 5;
|
private const int index_change = 5;
|
||||||
private const float bar_length = 600;
|
private const float bar_length = 600;
|
||||||
@ -36,17 +35,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private int indexOffset;
|
private int indexOffset;
|
||||||
|
|
||||||
public Color4 AccentColour
|
public Color4 AccentColour { get; set; }
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return barColour;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
barColour = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly float[] frequencyAmplitudes = new float[256];
|
private readonly float[] frequencyAmplitudes = new float[256];
|
||||||
|
|
||||||
@ -129,7 +118,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
visNode.Texture = texture;
|
visNode.Texture = texture;
|
||||||
visNode.Size = DrawSize.X;
|
visNode.Size = DrawSize.X;
|
||||||
visNode.Shared = sharedData;
|
visNode.Shared = sharedData;
|
||||||
visNode.Colour = barColour;
|
visNode.Colour = AccentColour;
|
||||||
visNode.AudioData = frequencyAmplitudes;
|
visNode.AudioData = frequencyAmplitudes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user