1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 11:22:57 +08:00

minor design fixes

This commit is contained in:
Givikap120 2023-09-03 02:17:04 +03:00
parent 2e2d4d0d60
commit 0779cd8f4f
2 changed files with 31 additions and 32 deletions

View File

@ -222,41 +222,44 @@ namespace osu.Game.Overlays.Mods
});
}
FooterContent.Add(mapInfoContainer = new ModMapInfoContainer
FooterContent.Children = new Drawable[]
{
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Padding = new MarginPadding
mapInfoContainer = new ModMapInfoContainer
{
Vertical = PADDING,
Horizontal = 70
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
Padding = new MarginPadding
{
Vertical = PADDING,
Horizontal = 70
}
},
});
FooterContent.Add(footerButtonFlow = new FillFlowContainer<ShearedButton>
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Horizontal,
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Padding = new MarginPadding
footerButtonFlow = new FillFlowContainer<ShearedButton>
{
Vertical = PADDING,
Horizontal = 70
},
Spacing = new Vector2(10),
ChildrenEnumerable = CreateFooterButtons().Prepend(BackButton = new ShearedButton(BUTTON_WIDTH)
{
Text = CommonStrings.Back,
Action = Hide,
DarkerColour = colours.Pink2,
LighterColour = colours.Pink1
})
});
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Horizontal,
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Padding = new MarginPadding
{
Vertical = PADDING,
Horizontal = 70
},
Spacing = new Vector2(10),
ChildrenEnumerable = CreateFooterButtons().Prepend(BackButton = new ShearedButton(BUTTON_WIDTH)
{
Text = CommonStrings.Back,
Action = Hide,
DarkerColour = colours.Pink2,
LighterColour = colours.Pink1
})
}
};
globalAvailableMods.BindTo(game.AvailableMods);
}
public override void Hide()
{
base.Hide();

View File

@ -308,9 +308,6 @@ namespace osu.Game.Screens.Select
// therein it will be registered at the `OsuGame` level to properly function as a blocking overlay.
LoadComponent(ModSelect = CreateModSelectOverlay());
//var bindedStats = BeatmapDetails.Details.GetBindedAdjustedMapStats();
//ModSelect.SetBindedMapStats(bindedStats);
if (Footer != null)
{
foreach (var (button, overlay) in CreateFooterButtons())
@ -586,7 +583,6 @@ namespace osu.Game.Screens.Select
FilterControl.Activate();
ModSelect.SelectedMods.BindTo(selectedMods);
//BeatmapDetails.AdjustedInfo.BindTo(adjustedInfo);
beginLooping();
}