Make bashes not use textawesome.

This commit is contained in:
smoogipooo 2017-03-20 15:28:53 +09:00
parent 29f303b4d0
commit 051ef61d48
2 changed files with 8 additions and 6 deletions

@ -1 +1 @@
Subproject commit 4f9ed4e703777ede98737c7e2af31efa4694c395 Subproject commit 00406e13d1b15683b3565a126e207b08bca7555f

View File

@ -5,6 +5,7 @@ using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Framework.Screens.Testing; using osu.Framework.Screens.Testing;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Backgrounds; using osu.Game.Graphics.Backgrounds;
@ -163,26 +164,27 @@ namespace osu.Desktop.VisualTests.Tests
/// </summary> /// </summary>
class BashCirclePiece : CirclePiece class BashCirclePiece : CirclePiece
{ {
private Sprite icon;
public BashCirclePiece() public BashCirclePiece()
{ {
Height = 128; Height = 128;
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours, TextureStore textures)
{ {
AccentColour = colours.YellowDark; AccentColour = colours.YellowDark;
icon.Texture = textures.Get(@"Play/Taiko/bash-hit-inner");
} }
protected override Drawable CreateIcon() protected override Drawable CreateIcon()
{ {
return new TextAwesome return icon = new Sprite
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
TextSize = 45f,
Icon = FontAwesome.fa_asterisk
}; };
} }
} }