Skip to content

Commit

Permalink
Merge pull request ppy#30590 from frenzibyte/fix-mania-stage-line-ali…
Browse files Browse the repository at this point in the history
…gnment

Fix stage line alignment in mania not matching stable
  • Loading branch information
smoogipoo authored Nov 13, 2024
2 parents 78084e3 + 3268008 commit 5ce230b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ private void load(ISkinSource skin, StageDefinition stageDefinition)
},
columnBackgrounds = new ColumnFlow<Drawable>(stageDefinition)
{
RelativeSizeAxes = Axes.Y
RelativeSizeAxes = Axes.Y,
Masking = false,
},
new HitTargetInsetContainer
{
Expand Down Expand Up @@ -126,8 +127,8 @@ private void load(ISkinSource skin)
},
new Container
{
X = isLastColumn ? -0.16f : 0,
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Y,
Width = rightLineWidth,
Scale = new Vector2(0.740f, 1),
Expand Down
6 changes: 6 additions & 0 deletions osu.Game.Rulesets.Mania/UI/ColumnFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ public partial class ColumnFlow<TContent> : CompositeDrawable
private readonly FillFlowContainer<Container<TContent>> columns;
private readonly StageDefinition stageDefinition;

public new bool Masking
{
get => base.Masking;
set => base.Masking = value;
}

public ColumnFlow(StageDefinition stageDefinition)
{
this.stageDefinition = stageDefinition;
Expand Down

0 comments on commit 5ce230b

Please sign in to comment.