mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 00:53:19 +08:00
Mark SetupZoom
and parameterless ZoomableScrollContainer
ctor as protected
This commit is contained in:
parent
bc2b629ee7
commit
48bcf57066
@ -53,7 +53,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
/// Creates a <see cref="ZoomableScrollContainer"/> with no zoom range.
|
||||
/// Functionality will be disabled until zoom is set up via <see cref="SetupZoom"/>.
|
||||
/// </summary>
|
||||
public ZoomableScrollContainer()
|
||||
protected ZoomableScrollContainer()
|
||||
: base(Direction.Horizontal)
|
||||
{
|
||||
base.Content.Add(zoomedContent = new Container { RelativeSizeAxes = Axes.Y });
|
||||
@ -76,7 +76,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
/// <param name="initial">The initial zoom value, applied immediately.</param>
|
||||
/// <param name="minimum">The minimum zoom value.</param>
|
||||
/// <param name="maximum">The maximum zoom value.</param>
|
||||
public void SetupZoom(float initial, float minimum, float maximum)
|
||||
protected void SetupZoom(float initial, float minimum, float maximum)
|
||||
{
|
||||
if (minimum < 1)
|
||||
throw new ArgumentException($"{nameof(minimum)} ({minimum}) must be >= 1.", nameof(maximum));
|
||||
|
Loading…
Reference in New Issue
Block a user