Skip to content

Commit

Permalink
Merge pull request #56 from ILW8/move-mods-display-replay
Browse files Browse the repository at this point in the history
move mods display to center when watching replay
  • Loading branch information
ILW8 authored May 13, 2024
2 parents 2d45a3d + 2ba94cf commit f01ea39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion osu.Game/Database/RealmArchiveModelImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Framework.Threading;
using osu.Game.Configuration;
using osu.Game.Extensions;
using osu.Game.IO.Archives;
using osu.Game.Models;
Expand Down
16 changes: 10 additions & 6 deletions osu.Game/Screens/Play/HUDOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,14 @@ public HUDOverlay([CanBeNull] DrawableRuleset drawableRuleset, IReadOnlyList<Mod
: Empty(),
topRightElements = new FillFlowContainer
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
AlwaysPresent = true,
Margin = new MarginPadding(10),
Spacing = new Vector2(10),
AutoSizeAxes = Axes.Both,
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
Width = 1.0f,
Direction = FillDirection.Vertical,
Children = new Drawable[]
{
Expand Down Expand Up @@ -381,9 +383,11 @@ protected virtual void BindDrawableRuleset(DrawableRuleset drawableRuleset)

protected ModDisplay CreateModsContainer() => new ModDisplay
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Margin = new MarginPadding { Top = 96 }
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Margin = new MarginPadding { Top = 32 },
Scale = new Vector2(1.15f),
ExpansionMode = ExpansionMode.AlwaysExpanded
};

protected PlayerSettingsOverlay CreatePlayerSettingsOverlay() => new PlayerSettingsOverlay();
Expand Down

0 comments on commit f01ea39

Please sign in to comment.