1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 06:29:52 +08:00

Revert changes

This commit is contained in:
jkh675
2024-07-29 18:14:07 +08:00
Unverified
parent 4e65944609
commit 90fdf5599f
2 changed files with 7 additions and 9 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ namespace osu.Game.Overlays.Mods
{
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(7),
Children = new Drawable[]
+5 -8
View File
@@ -23,7 +23,8 @@ namespace osu.Game.Overlays.Mods
public ModPresetTooltip(OverlayColourProvider colourProvider)
{
AutoSizeAxes = Axes.Both;
Width = 250;
AutoSizeAxes = Axes.Y;
Masking = true;
CornerRadius = 7;
@@ -37,8 +38,8 @@ namespace osu.Game.Overlays.Mods
},
Content = new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Left = 10, Right = 10, Top = 5, Bottom = 5 },
Spacing = new Vector2(7),
Children = new[]
@@ -65,11 +66,7 @@ namespace osu.Game.Overlays.Mods
lastPreset = preset;
Content.RemoveAll(d => d is ModPresetRow, true);
Content.AddRange(preset.Mods.AsOrdered().Select(mod => new ModPresetRow(mod)
{
RelativeSizeAxes = Axes.None,
AutoSizeAxes = Axes.Both,
}));
Content.AddRange(preset.Mods.AsOrdered().Select(mod => new ModPresetRow(mod)));
}
protected override void PopIn() => this.FadeIn(transition_duration, Easing.OutQuint);