1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 05:27:23 +08:00

Remove all HorizontalScreenOffset calculations from overlays

This commit is contained in:
Salman Ahmed 2021-08-07 19:30:12 +03:00
parent e924ea8d93
commit 9f3013e2c8
3 changed files with 0 additions and 12 deletions

View File

@ -30,11 +30,6 @@ namespace osu.Game.Overlays
private FlowContainer<NotificationSection> sections; private FlowContainer<NotificationSection> sections;
/// <summary>
/// A horizontal offset to apply to the game-wide screen.
/// </summary>
public float HorizontalScreenOffset => -WIDTH + X;
/// <summary> /// <summary>
/// Provide a source for the toolbar height. /// Provide a source for the toolbar height.
/// </summary> /// </summary>

View File

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

View File

@ -40,11 +40,6 @@ namespace osu.Game.Overlays
/// </summary> /// </summary>
public override bool IsPresent => true; public override bool IsPresent => true;
/// <summary>
/// A horizontal offset to apply to the game-wide screen.
/// </summary>
public virtual float HorizontalScreenOffset => (WIDTH + Content?.X) ?? 0f;
protected Sidebar Sidebar; protected Sidebar Sidebar;
private SidebarButton selectedSidebarButton; private SidebarButton selectedSidebarButton;