Add placement-dependent horizontal screen offset properties

This commit is contained in:
Salman Ahmed
2021-08-06 18:36:43 +03:00
parent 067ff0e0ad
commit 8e8e0fb8d8
3 changed files with 13 additions and 0 deletions

View File

@ -21,6 +21,8 @@ namespace osu.Game.Overlays
public LocalisableString Title => SettingsStrings.HeaderTitle;
public LocalisableString Description => SettingsStrings.HeaderDescription;
public override float HorizontalScreenOffset => base.HorizontalScreenOffset + (lastOpenedSubPanel?.HorizontalScreenOffset ?? 0f);
protected override IEnumerable<SettingsSection> CreateSections() => new SettingsSection[]
{
new GeneralSection(),