Rename parameter to make more sense

This commit is contained in:
Dean Herbert
2021-02-05 15:29:32 +09:00
parent 9e9e382bee
commit 4bc324f040

View File

@ -40,13 +40,18 @@ namespace osu.Game.Graphics.UserInterface
set => CurrentNumber.Value = value; set => CurrentNumber.Value = value;
} }
private readonly bool userInteractive; private readonly bool allowSeek;
public override bool HandlePositionalInput => userInteractive;
public override bool HandleNonPositionalInput => userInteractive;
public ProgressBar(bool userInteractive) public override bool HandlePositionalInput => allowSeek;
public override bool HandleNonPositionalInput => allowSeek;
/// <summary>
/// Construct a new progress bar.
/// </summary>
/// <param name="allowSeek">Whether the user should be allowed to click/drag to adjust the value.</param>
public ProgressBar(bool allowSeek)
{ {
this.userInteractive = userInteractive; this.allowSeek = allowSeek;
CurrentNumber.MinValue = 0; CurrentNumber.MinValue = 0;
CurrentNumber.MaxValue = 1; CurrentNumber.MaxValue = 1;