1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 03:55:30 +08:00

Move load below CreateIcon().

This commit is contained in:
smoogipooo 2017-03-24 15:42:48 +09:00
parent cce5b4f80f
commit aa9a65d69c
3 changed files with 20 additions and 20 deletions

View File

@ -16,14 +16,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
{ {
private Sprite icon; 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() protected override Framework.Graphics.Drawable CreateIcon()
{ {
return icon = new Sprite return icon = new Sprite
@ -32,5 +24,13 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
Origin = Anchor.Centre, Origin = Anchor.Centre,
}; };
} }
[BackgroundDependencyLoader]
private void load(OsuColour colours, TextureStore textures)
{
AccentColour = colours.YellowDark;
icon.Texture = textures.Get(@"Play/Taiko/bash-hit-inner");
}
} }
} }

View File

@ -15,12 +15,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
/// </summary> /// </summary>
public class CentreHitCirclePiece : CirclePiece public class CentreHitCirclePiece : CirclePiece
{ {
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AccentColour = colours.PinkDarker;
}
protected override Framework.Graphics.Drawable CreateIcon() protected override Framework.Graphics.Drawable CreateIcon()
{ {
return new CircularContainer return new CircularContainer
@ -39,5 +33,11 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
} }
}; };
} }
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AccentColour = colours.PinkDarker;
}
} }
} }

View File

@ -16,12 +16,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
/// </summary> /// </summary>
public class RimHitCirclePiece : CirclePiece public class RimHitCirclePiece : CirclePiece
{ {
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AccentColour = colours.BlueDarker;
}
protected override Framework.Graphics.Drawable CreateIcon() protected override Framework.Graphics.Drawable CreateIcon()
{ {
return new CircularContainer return new CircularContainer
@ -43,5 +37,11 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
} }
}; };
} }
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
AccentColour = colours.BlueDarker;
}
} }
} }