mirror of
https://github.com/ppy/osu.git
synced 2025-03-03 21:13:22 +08:00
Replace old mod select overlay with new design
This commit is contained in:
parent
e2895ea145
commit
407db7ff9d
@ -551,7 +551,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
|
|
||||||
public class TestPlaySongSelect : PlaySongSelect
|
public class TestPlaySongSelect : PlaySongSelect
|
||||||
{
|
{
|
||||||
public ModSelectOverlay ModSelectOverlay => ModSelect;
|
public ModSelectScreen ModSelectOverlay => ModSelect;
|
||||||
|
|
||||||
public BeatmapOptionsOverlay BeatmapOptionsOverlay => BeatmapOptions;
|
public BeatmapOptionsOverlay BeatmapOptionsOverlay => BeatmapOptions;
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
return base.OnExiting(e);
|
return base.OnExiting(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override ModSelectOverlay CreateModSelectOverlay() => new UserModSelectOverlay
|
protected override ModSelectScreen CreateModSelectOverlay() => new UserModSelectScreen
|
||||||
{
|
{
|
||||||
IsValidMod = IsValidMod
|
IsValidMod = IsValidMod
|
||||||
};
|
};
|
||||||
|
@ -101,7 +101,7 @@ namespace osu.Game.Screens.Select
|
|||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private LegacyImportManager legacyImportManager { get; set; }
|
private LegacyImportManager legacyImportManager { get; set; }
|
||||||
|
|
||||||
protected ModSelectOverlay ModSelect { get; private set; }
|
protected ModSelectScreen ModSelect { get; private set; }
|
||||||
|
|
||||||
protected Sample SampleConfirm { get; private set; }
|
protected Sample SampleConfirm { get; private set; }
|
||||||
|
|
||||||
@ -252,35 +252,19 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
AddRangeInternal(new Drawable[]
|
AddRangeInternal(new Drawable[]
|
||||||
{
|
{
|
||||||
new GridContainer // used for max height implementation
|
FooterPanels = new Container
|
||||||
{
|
{
|
||||||
|
Anchor = Anchor.BottomLeft,
|
||||||
|
Origin = Anchor.BottomLeft,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
RowDimensions = new[]
|
Padding = new MarginPadding { Bottom = Footer.HEIGHT },
|
||||||
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Dimension(),
|
BeatmapOptions = new BeatmapOptionsOverlay(),
|
||||||
new Dimension(GridSizeMode.Relative, 1f, maxSize: ModSelectOverlay.HEIGHT + Footer.HEIGHT),
|
|
||||||
},
|
|
||||||
Content = new[]
|
|
||||||
{
|
|
||||||
null,
|
|
||||||
new Drawable[]
|
|
||||||
{
|
|
||||||
FooterPanels = new Container
|
|
||||||
{
|
|
||||||
Anchor = Anchor.BottomLeft,
|
|
||||||
Origin = Anchor.BottomLeft,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Padding = new MarginPadding { Bottom = Footer.HEIGHT },
|
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
|
||||||
BeatmapOptions = new BeatmapOptionsOverlay(),
|
|
||||||
ModSelect = CreateModSelectOverlay()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Footer = new Footer()
|
Footer = new Footer(),
|
||||||
|
ModSelect = CreateModSelectOverlay()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,7 +316,7 @@ namespace osu.Game.Screens.Select
|
|||||||
(new FooterButtonOptions(), BeatmapOptions)
|
(new FooterButtonOptions(), BeatmapOptions)
|
||||||
};
|
};
|
||||||
|
|
||||||
protected virtual ModSelectOverlay CreateModSelectOverlay() => new UserModSelectOverlay();
|
protected virtual ModSelectScreen CreateModSelectOverlay() => new UserModSelectScreen();
|
||||||
|
|
||||||
protected virtual void ApplyFilterToCarousel(FilterCriteria criteria)
|
protected virtual void ApplyFilterToCarousel(FilterCriteria criteria)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user