Skip to content

Commit f59df15

Browse files
authored
Merge pull request #33605 from peppy/ssv2-remove-update-button-shear
Remove shear on update button to match non-sheared panel design
2 parents 21fe6aa + 8afac6a commit f59df15

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

osu.Game.Tests/Visual/SongSelectV2/TestScenePanelUpdateBeatmapButton.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,6 @@ public void SetUp() => Schedule(() =>
2323
};
2424
});
2525

26-
[Test]
27-
public void TestNullBeatmap()
28-
{
29-
AddStep("null beatmap", () => button.BeatmapSet = null);
30-
AddAssert("button invisible", () => button.Alpha == 0f);
31-
}
32-
33-
[Test]
34-
public void TestUpdatedBeatmap()
35-
{
36-
AddStep("updated beatmap", () => button.BeatmapSet = new BeatmapSetInfo
37-
{
38-
Beatmaps = { new BeatmapInfo() }
39-
});
40-
AddAssert("button invisible", () => button.Alpha == 0f);
41-
}
42-
4326
[Test]
4427
public void TestNonUpdatedBeatmap()
4528
{
@@ -58,5 +41,22 @@ public void TestNonUpdatedBeatmap()
5841

5942
AddAssert("button visible", () => button.Alpha == 1f);
6043
}
44+
45+
[Test]
46+
public void TestNullBeatmap()
47+
{
48+
AddStep("null beatmap", () => button.BeatmapSet = null);
49+
AddAssert("button invisible", () => button.Alpha == 0f);
50+
}
51+
52+
[Test]
53+
public void TestUpdatedBeatmap()
54+
{
55+
AddStep("updated beatmap", () => button.BeatmapSet = new BeatmapSetInfo
56+
{
57+
Beatmaps = { new BeatmapInfo() }
58+
});
59+
AddAssert("button invisible", () => button.Alpha == 0f);
60+
}
6161
}
6262
}

osu.Game/Screens/SelectV2/PanelUpdateBeatmapButton.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ private void load(OsuConfigManager config)
6969

7070
Content.Anchor = Anchor.Centre;
7171
Content.Origin = Anchor.Centre;
72-
Content.Shear = OsuGame.SHEAR;
7372

7473
Content.AddRange(new Drawable[]
7574
{
@@ -87,7 +86,6 @@ private void load(OsuConfigManager config)
8786
AutoSizeAxes = Axes.Both,
8887
Direction = FillDirection.Horizontal,
8988
Spacing = new Vector2(4),
90-
Shear = -OsuGame.SHEAR,
9189
Children = new Drawable[]
9290
{
9391
new Container

0 commit comments

Comments
 (0)