mirror of
https://github.com/ppy/osu
synced 2024-12-27 01:12:45 +00:00
Revert changes
This commit is contained in:
parent
4e65944609
commit
90fdf5599f
@ -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[]
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user