mirror of
https://github.com/osukey/osukey.git
synced 2025-07-23 19:30:06 +09:00
Use explicit label
This commit is contained in:
@ -16,12 +16,14 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
public class RowAttribute : CompositeDrawable
|
public class RowAttribute : CompositeDrawable
|
||||||
{
|
{
|
||||||
private readonly ControlPoint point;
|
private readonly ControlPoint point;
|
||||||
|
private readonly string label;
|
||||||
|
|
||||||
protected FillFlowContainer Content { get; private set; }
|
protected FillFlowContainer Content { get; private set; }
|
||||||
|
|
||||||
public RowAttribute(ControlPoint point)
|
public RowAttribute(ControlPoint point, string label)
|
||||||
{
|
{
|
||||||
this.point = point;
|
this.point = point;
|
||||||
|
this.label = label;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -72,7 +74,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Padding = new MarginPadding(3),
|
Padding = new MarginPadding(3),
|
||||||
Font = OsuFont.Default.With(weight: FontWeight.SemiBold, size: 12),
|
Font = OsuFont.Default.With(weight: FontWeight.SemiBold, size: 12),
|
||||||
Text = point.GetType().Name.Replace("ControlPoint", string.Empty).ToLowerInvariant(),
|
Text = label,
|
||||||
Colour = colours.Gray0
|
Colour = colours.Gray0
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -12,14 +12,14 @@ using osu.Game.Graphics.Sprites;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Timing.RowAttributes
|
namespace osu.Game.Screens.Edit.Timing.RowAttributes
|
||||||
{
|
{
|
||||||
internal class TimingRowAttribute : RowAttribute
|
public class TimingRowAttribute : RowAttribute
|
||||||
{
|
{
|
||||||
private readonly BindableNumber<double> beatLength;
|
private readonly BindableNumber<double> beatLength;
|
||||||
private readonly Bindable<TimeSignatures> timeSignature;
|
private readonly Bindable<TimeSignatures> timeSignature;
|
||||||
private OsuSpriteText text;
|
private OsuSpriteText text;
|
||||||
|
|
||||||
public TimingRowAttribute(TimingControlPoint timing)
|
public TimingRowAttribute(TimingControlPoint timing)
|
||||||
: base(timing)
|
: base(timing, "timing")
|
||||||
{
|
{
|
||||||
timeSignature = timing.TimeSignatureBindable.GetBoundCopy();
|
timeSignature = timing.TimeSignatureBindable.GetBoundCopy();
|
||||||
beatLength = timing.BeatLengthBindable.GetBoundCopy();
|
beatLength = timing.BeatLengthBindable.GetBoundCopy();
|
||||||
|
Reference in New Issue
Block a user