mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Update design for TimingControlPoint
This commit is contained in:
@ -20,7 +20,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private const double default_beat_length = 60000.0 / 60.0;
|
private const double default_beat_length = 60000.0 / 60.0;
|
||||||
|
|
||||||
public override Color4 GetRepresentingColour(OsuColour colours) => colours.YellowDark;
|
public override Color4 GetRepresentingColour(OsuColour colours) => colours.Orange1;
|
||||||
|
|
||||||
public static readonly TimingControlPoint DEFAULT = new TimingControlPoint
|
public static readonly TimingControlPoint DEFAULT = new TimingControlPoint
|
||||||
{
|
{
|
||||||
|
@ -27,6 +27,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
AutoSizeAxes = Axes.X;
|
AutoSizeAxes = Axes.X;
|
||||||
|
|
||||||
|
Origin = Anchor.TopCentre;
|
||||||
|
|
||||||
X = (float)group.Time;
|
X = (float)group.Time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,15 +3,12 @@
|
|||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Colour;
|
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Game.Beatmaps.ControlPoints;
|
using osu.Game.Beatmaps.ControlPoints;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osuTK.Graphics;
|
|
||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||||
{
|
{
|
||||||
@ -31,26 +28,27 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
Origin = Anchor.CentreLeft;
|
Margin = new MarginPadding { Vertical = 10 };
|
||||||
Anchor = Anchor.CentreLeft;
|
|
||||||
|
const float corner_radius = 5;
|
||||||
|
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
|
Masking = true;
|
||||||
Color4 colour = point.GetRepresentingColour(colours);
|
CornerRadius = corner_radius;
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
new Box
|
new Box
|
||||||
{
|
{
|
||||||
Alpha = 0.9f,
|
Colour = point.GetRepresentingColour(colours),
|
||||||
Colour = ColourInfo.GradientHorizontal(colour, colour.Opacity(0.5f)),
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
bpmText = new OsuSpriteText
|
bpmText = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Alpha = 0.9f,
|
Alpha = 0.9f,
|
||||||
Padding = new MarginPadding(3),
|
Padding = new MarginPadding { Vertical = 3, Horizontal = 6 },
|
||||||
Font = OsuFont.Default.With(size: 40)
|
Font = OsuFont.Default.With(size: 20, weight: FontWeight.SemiBold),
|
||||||
|
Colour = colours.B5,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user