mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
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:
@ -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
|
||||||
|
@ -245,15 +245,21 @@ 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),
|
||||||
SelectedMods = { BindTarget = SelectedMods },
|
Width = 0.3f,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
ModSettingsContainer = new ModSettingsContainer
|
||||||
|
{
|
||||||
|
Alpha = 0,
|
||||||
|
SelectedMods = { BindTarget = SelectedMods },
|
||||||
|
},
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user