mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:07:38 +08:00
Remove all HorizontalScreenOffset
calculations from overlays
This commit is contained in:
parent
e924ea8d93
commit
9f3013e2c8
@ -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>
|
||||||
|
@ -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(),
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user