mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 04:48:04 +09:00
Fixed shadow
This commit is contained in:
parent
b856fb5991
commit
fcda2f0e4e
@ -16,6 +16,8 @@ namespace osu.Game.Overlays.BeatmapOptions
|
|||||||
{
|
{
|
||||||
public class BeatmapOptionsButton : ClickableContainer
|
public class BeatmapOptionsButton : ClickableContainer
|
||||||
{
|
{
|
||||||
|
public static readonly Vector2 SIZE = new Vector2(130f, 100f);
|
||||||
|
|
||||||
private Box background, flash;
|
private Box background, flash;
|
||||||
private TextAwesome iconText;
|
private TextAwesome iconText;
|
||||||
private OsuSpriteText firstLine, secondLine;
|
private OsuSpriteText firstLine, secondLine;
|
||||||
@ -67,7 +69,7 @@ namespace osu.Game.Overlays.BeatmapOptions
|
|||||||
|
|
||||||
public BeatmapOptionsButton()
|
public BeatmapOptionsButton()
|
||||||
{
|
{
|
||||||
Size = new Vector2(130f, 100f);
|
Size = SIZE;
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,7 @@ using OpenTK;
|
|||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Graphics.Primitives;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Framework.Graphics.Transforms;
|
using osu.Framework.Graphics.Transforms;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
@ -76,22 +77,19 @@ namespace osu.Game.Overlays.BeatmapOptions
|
|||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
|
Direction = FillDirection.Left,
|
||||||
|
Padding = new MarginPadding
|
||||||
|
{
|
||||||
|
Left = BeatmapOptionsButton.SIZE.X, // For some reason autosize on this flow container is one button too short
|
||||||
|
},
|
||||||
Children = new BeatmapOptionsButton[]
|
Children = new BeatmapOptionsButton[]
|
||||||
{
|
{
|
||||||
new BeatmapOptionsRemoveFromUnplayedButton
|
new BeatmapOptionsDeleteButton
|
||||||
{
|
{
|
||||||
Action = () =>
|
Action = () =>
|
||||||
{
|
{
|
||||||
Hide();
|
Hide();
|
||||||
OnRemoveFromUnplayed?.Invoke();
|
OnDelete?.Invoke();
|
||||||
},
|
|
||||||
},
|
|
||||||
new BeatmapOptionsClearLocalScoresButton
|
|
||||||
{
|
|
||||||
Action = () =>
|
|
||||||
{
|
|
||||||
Hide();
|
|
||||||
OnClearLocalScores?.Invoke();
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new BeatmapOptionsEditButton
|
new BeatmapOptionsEditButton
|
||||||
@ -102,12 +100,20 @@ namespace osu.Game.Overlays.BeatmapOptions
|
|||||||
OnEdit?.Invoke();
|
OnEdit?.Invoke();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
new BeatmapOptionsDeleteButton
|
new BeatmapOptionsClearLocalScoresButton
|
||||||
{
|
{
|
||||||
Action = () =>
|
Action = () =>
|
||||||
{
|
{
|
||||||
Hide();
|
Hide();
|
||||||
OnDelete?.Invoke();
|
OnClearLocalScores?.Invoke();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
new BeatmapOptionsRemoveFromUnplayedButton
|
||||||
|
{
|
||||||
|
Action = () =>
|
||||||
|
{
|
||||||
|
Hide();
|
||||||
|
OnRemoveFromUnplayed?.Invoke();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user