mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 22:02:54 +08:00
Allow OsuButton be auto-sized
This commit is contained in:
parent
d20dc3668e
commit
25ddd20b2e
@ -175,6 +175,17 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
base.OnMouseUp(e);
|
base.OnMouseUp(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public new Axes AutoSizeAxes
|
||||||
|
{
|
||||||
|
get => base.AutoSizeAxes;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
base.AutoSizeAxes = value;
|
||||||
|
Content.RelativeSizeAxes = ~value;
|
||||||
|
Content.AutoSizeAxes = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected virtual SpriteText CreateText() => new OsuSpriteText
|
protected virtual SpriteText CreateText() => new OsuSpriteText
|
||||||
{
|
{
|
||||||
Depth = -1,
|
Depth = -1,
|
||||||
|
Loading…
Reference in New Issue
Block a user