1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 11:47:24 +08:00

Fix stage line alignment in mania not matching stable

This commit is contained in:
Salman Alshamrani 2024-11-12 04:07:27 -05:00
parent 678d14aa60
commit 3268008d21
2 changed files with 9 additions and 2 deletions

View File

@ -54,7 +54,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
}, },
columnBackgrounds = new ColumnFlow<Drawable>(stageDefinition) columnBackgrounds = new ColumnFlow<Drawable>(stageDefinition)
{ {
RelativeSizeAxes = Axes.Y RelativeSizeAxes = Axes.Y,
Masking = false,
}, },
new HitTargetInsetContainer new HitTargetInsetContainer
{ {
@ -126,8 +127,8 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
}, },
new Container new Container
{ {
X = isLastColumn ? -0.16f : 0,
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Width = rightLineWidth, Width = rightLineWidth,
Scale = new Vector2(0.740f, 1), Scale = new Vector2(0.740f, 1),

View File

@ -28,6 +28,12 @@ namespace osu.Game.Rulesets.Mania.UI
private readonly FillFlowContainer<Container<TContent>> columns; private readonly FillFlowContainer<Container<TContent>> columns;
private readonly StageDefinition stageDefinition; private readonly StageDefinition stageDefinition;
public new bool Masking
{
get => base.Masking;
set => base.Masking = value;
}
public ColumnFlow(StageDefinition stageDefinition) public ColumnFlow(StageDefinition stageDefinition)
{ {
this.stageDefinition = stageDefinition; this.stageDefinition = stageDefinition;