1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Add temporary scale hack to make cursors correct size

This commit is contained in:
Dean Herbert 2019-07-30 23:20:35 +09:00
parent 1222536f7a
commit d12de7dbfa

View File

@ -255,13 +255,13 @@ namespace osu.Game.Skinning
{
InternalChildren = new Drawable[]
{
new Sprite
new NonPlayfieldSprite
{
Texture = skin.GetTexture("cursormiddle"),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
new Sprite
new NonPlayfieldSprite
{
Texture = skin.GetTexture("cursor"),
Anchor = Anchor.Centre,
@ -270,5 +270,18 @@ namespace osu.Game.Skinning
};
}
}
private class NonPlayfieldSprite : Sprite
{
public override Texture Texture
{
get => base.Texture;
set
{
value.ScaleAdjust *= 2f;
base.Texture = value;
}
}
}
}
}