mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Make bashes not use textawesome.
This commit is contained in:
Submodule osu-resources updated: 4f9ed4e703...00406e13d1
@ -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
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user