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:
parent
1222536f7a
commit
d12de7dbfa
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user