1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-12 18:37:46 +08:00
Sheepposu 288eed53df new features + improvements
Hit & aim markers are skinnable. Hidden can be toggled off. Aim line with skinnable color was added. The fadeout time is based on the approach rate. Cursor hide fixed.
2024-02-10 02:02:26 -05:00

33 lines
899 B
C#

using osu.Framework.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Game.Skinning;
namespace osu.Game.Rulesets.Osu.Skinning.Default
{
public partial class HitMarker : Sprite
{
private readonly OsuAction? action;
public HitMarker(OsuAction? action = null)
{
this.action = action;
}
[BackgroundDependencyLoader]
private void load(ISkinSource skin)
{
switch (action)
{
case OsuAction.LeftButton:
Texture = skin.GetTexture(@"hitmarker-left");
break;
case OsuAction.RightButton:
Texture = skin.GetTexture(@"hitmarker-right");
break;
default:
Texture = skin.GetTexture(@"aimmarker");
break;
}
}
}
}