1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 20:05:29 +08:00

Move lines to background to better visualise graphs at points of change

This commit is contained in:
Dean Herbert 2022-10-18 18:13:13 +09:00
parent 74986e0c8c
commit a7b3aa62fb

View File

@ -11,6 +11,7 @@ using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Input.Events; using osu.Framework.Input.Events;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Settings; using osu.Game.Overlays.Settings;
@ -85,6 +86,13 @@ namespace osu.Game.Tests.Visual.Gameplay
MaxValue = 8192, MaxValue = 8192,
}, },
LabelText = "max combo", LabelText = "max combo",
},
new OsuTextFlowContainer
{
RelativeSizeAxes = Axes.X,
Width = 0.5f,
AutoSizeAxes = Axes.Y,
Text = "Left click to add miss"
} }
} }
}, },
@ -261,18 +269,20 @@ namespace osu.Game.Tests.Visual.Gameplay
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
}, },
Content,
hoverLine = new Box hoverLine = new Box
{ {
Colour = Color4.Yellow, Colour = Color4.Yellow,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Origin = Anchor.TopCentre,
Alpha = 0, Alpha = 0,
Width = 1, Width = 1,
}, },
missLines = new Container missLines = new Container
{ {
Alpha = 0.6f,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
}, },
Content,
} }
}; };
@ -298,6 +308,7 @@ namespace osu.Game.Tests.Visual.Gameplay
new Box new Box
{ {
Colour = OsuColour.Gray(0.2f), Colour = OsuColour.Gray(0.2f),
Origin = Anchor.TopCentre,
Width = 1, Width = 1,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
RelativePositionAxes = Axes.X, RelativePositionAxes = Axes.X,
@ -327,6 +338,7 @@ namespace osu.Game.Tests.Visual.Gameplay
missLines.Add(new Box missLines.Add(new Box
{ {
Colour = Color4.Red, Colour = Color4.Red,
Origin = Anchor.TopCentre,
Width = 1, Width = 1,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
RelativePositionAxes = Axes.X, RelativePositionAxes = Axes.X,