mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 16:37:26 +08:00
Adjust metrics of editor menu spacers (and make visible)
This commit is contained in:
parent
c7d0279a44
commit
4ea8495c61
@ -4,6 +4,7 @@
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
@ -200,7 +201,17 @@ namespace osu.Game.Screens.Edit.Components.Menus
|
|||||||
public DrawableSpacer(MenuItem item)
|
public DrawableSpacer(MenuItem item)
|
||||||
: base(item)
|
: base(item)
|
||||||
{
|
{
|
||||||
Scale = new Vector2(1, 0.3f);
|
Scale = new Vector2(1, 0.6f);
|
||||||
|
|
||||||
|
AddInternal(new Box
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
Colour = BackgroundColourHover,
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
Height = 2f,
|
||||||
|
Width = 0.8f,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnHover(HoverEvent e) => true;
|
protected override bool OnHover(HoverEvent e) => true;
|
||||||
|
Loading…
Reference in New Issue
Block a user