mirror of
https://github.com/ppy/osu
synced 2025-01-31 10:22:02 +00:00
Merge pull request #3220 from smoogipoo/extend-modoverlay
Overflow mod select to account for parallax
This commit is contained in:
commit
4832a8ff19
@ -27,6 +27,11 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
public class ModSelectOverlay : WaveOverlayContainer
|
||||
{
|
||||
/// <summary>
|
||||
/// How much this container should overflow the sides of the screen to account for parallax shifting.
|
||||
/// </summary>
|
||||
private const float overflow_padding = 50;
|
||||
|
||||
private const float content_width = 0.8f;
|
||||
|
||||
protected Color4 LowMultiplierColour, HighMultiplierColour;
|
||||
@ -199,6 +204,11 @@ namespace osu.Game.Overlays.Mods
|
||||
Waves.FourthWaveColour = OsuColour.FromHex(@"003a4e");
|
||||
|
||||
Height = 510;
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Left = -overflow_padding,
|
||||
Right = -overflow_padding
|
||||
};
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -258,6 +268,11 @@ namespace osu.Game.Overlays.Mods
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Direction = FillDirection.Vertical,
|
||||
Width = content_width,
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Left = overflow_padding,
|
||||
Right = overflow_padding
|
||||
},
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
@ -295,7 +310,12 @@ namespace osu.Game.Overlays.Mods
|
||||
Origin = Anchor.TopCentre,
|
||||
Anchor = Anchor.TopCentre,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Padding = new MarginPadding { Vertical = 10 },
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 10,
|
||||
Left = overflow_padding,
|
||||
Right = overflow_padding
|
||||
},
|
||||
Child = ModSectionsContainer = new FillFlowContainer<ModSection>
|
||||
{
|
||||
Origin = Anchor.TopCentre,
|
||||
@ -341,7 +361,9 @@ namespace osu.Game.Overlays.Mods
|
||||
Direction = FillDirection.Horizontal,
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Vertical = 15
|
||||
Vertical = 15,
|
||||
Left = overflow_padding,
|
||||
Right = overflow_padding
|
||||
},
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user