Merge pull request #12506 from peppy/fix-mod-customisation-input-blocking-padding

Fix mod settings blocking input outside its visible area
This commit is contained in:
Dan Balasescu
2021-04-21 10:11:35 +09:00
committed by GitHub
2 changed files with 11 additions and 5 deletions

View File

@ -167,7 +167,7 @@ namespace osu.Game.Tests.Visual.UserInterface
GetModButton(mod).SelectNext(1); GetModButton(mod).SelectNext(1);
public void SetModSettingsWidth(float newWidth) => public void SetModSettingsWidth(float newWidth) =>
ModSettingsContainer.Width = newWidth; ModSettingsContainer.Parent.Width = newWidth;
} }
public class TestRulesetInfo : RulesetInfo public class TestRulesetInfo : RulesetInfo

View File

@ -245,18 +245,24 @@ namespace osu.Game.Overlays.Mods
}, },
} }
}, },
ModSettingsContainer = new ModSettingsContainer new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Anchor = Anchor.BottomRight, Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight, Origin = Anchor.BottomRight,
Width = 0.3f,
Alpha = 0,
Padding = new MarginPadding(30), Padding = new MarginPadding(30),
Width = 0.3f,
Children = new Drawable[]
{
ModSettingsContainer = new ModSettingsContainer
{
Alpha = 0,
SelectedMods = { BindTarget = SelectedMods }, SelectedMods = { BindTarget = SelectedMods },
}, },
} }
}, },
}
},
}, },
new Drawable[] new Drawable[]
{ {