mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 01:32:55 +08:00
Move load below CreateIcon().
This commit is contained in:
parent
cce5b4f80f
commit
aa9a65d69c
@ -16,14 +16,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
||||
{
|
||||
private Sprite icon;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours, TextureStore textures)
|
||||
{
|
||||
AccentColour = colours.YellowDark;
|
||||
|
||||
icon.Texture = textures.Get(@"Play/Taiko/bash-hit-inner");
|
||||
}
|
||||
|
||||
protected override Framework.Graphics.Drawable CreateIcon()
|
||||
{
|
||||
return icon = new Sprite
|
||||
@ -32,5 +24,13 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
||||
Origin = Anchor.Centre,
|
||||
};
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours, TextureStore textures)
|
||||
{
|
||||
AccentColour = colours.YellowDark;
|
||||
|
||||
icon.Texture = textures.Get(@"Play/Taiko/bash-hit-inner");
|
||||
}
|
||||
}
|
||||
}
|
@ -15,12 +15,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
||||
/// </summary>
|
||||
public class CentreHitCirclePiece : CirclePiece
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
AccentColour = colours.PinkDarker;
|
||||
}
|
||||
|
||||
protected override Framework.Graphics.Drawable CreateIcon()
|
||||
{
|
||||
return new CircularContainer
|
||||
@ -39,5 +33,11 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
AccentColour = colours.PinkDarker;
|
||||
}
|
||||
}
|
||||
}
|
@ -16,12 +16,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
||||
/// </summary>
|
||||
public class RimHitCirclePiece : CirclePiece
|
||||
{
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
AccentColour = colours.BlueDarker;
|
||||
}
|
||||
|
||||
protected override Framework.Graphics.Drawable CreateIcon()
|
||||
{
|
||||
return new CircularContainer
|
||||
@ -43,5 +37,11 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
AccentColour = colours.BlueDarker;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user