Rename ScrollToTopButton to ScrollBackButton

This commit is contained in:
Joseph Madamba
2023-02-26 14:39:34 -08:00
parent dc00905f8d
commit fa710ae1b0
2 changed files with 7 additions and 7 deletions

View File

@ -126,7 +126,7 @@ namespace osu.Game.Tests.Visual.UserInterface
private partial class TestScrollContainer : OverlayScrollContainer private partial class TestScrollContainer : OverlayScrollContainer
{ {
public new ScrollToTopButton Button => base.Button; public new ScrollBackButton Button => base.Button;
} }
} }
} }

View File

@ -22,23 +22,23 @@ using osuTK.Graphics;
namespace osu.Game.Overlays namespace osu.Game.Overlays
{ {
/// <summary> /// <summary>
/// <see cref="UserTrackingScrollContainer"/> which provides <see cref="ScrollToTopButton"/>. Mostly used in <see cref="FullscreenOverlay{T}"/>. /// <see cref="UserTrackingScrollContainer"/> which provides <see cref="ScrollBackButton"/>. Mostly used in <see cref="FullscreenOverlay{T}"/>.
/// </summary> /// </summary>
public partial class OverlayScrollContainer : UserTrackingScrollContainer public partial class OverlayScrollContainer : UserTrackingScrollContainer
{ {
/// <summary> /// <summary>
/// Scroll position at which the <see cref="ScrollToTopButton"/> will be shown. /// Scroll position at which the <see cref="ScrollBackButton"/> will be shown.
/// </summary> /// </summary>
private const int button_scroll_position = 200; private const int button_scroll_position = 200;
protected ScrollToTopButton Button; protected ScrollBackButton Button;
private readonly Bindable<float?> lastScrollTarget = new Bindable<float?>(); private readonly Bindable<float?> lastScrollTarget = new Bindable<float?>();
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
AddInternal(Button = new ScrollToTopButton AddInternal(Button = new ScrollBackButton
{ {
Anchor = Anchor.BottomRight, Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight, Origin = Anchor.BottomRight,
@ -82,7 +82,7 @@ namespace osu.Game.Overlays
} }
} }
public partial class ScrollToTopButton : OsuHoverContainer public partial class ScrollBackButton : OsuHoverContainer
{ {
private const int fade_duration = 500; private const int fade_duration = 500;
@ -112,7 +112,7 @@ namespace osu.Game.Overlays
public Bindable<float?> LastScrollTarget = new Bindable<float?>(); public Bindable<float?> LastScrollTarget = new Bindable<float?>();
public ScrollToTopButton() public ScrollBackButton()
: base(HoverSampleSet.ScrollToTop) : base(HoverSampleSet.ScrollToTop)
{ {
Size = new Vector2(50); Size = new Vector2(50);