mirror of https://github.com/ppy/osu
Rename parameter to make more sense
This commit is contained in:
parent
9e9e382bee
commit
4bc324f040
|
@ -40,13 +40,18 @@ public double CurrentTime
|
|||
set => CurrentNumber.Value = value;
|
||||
}
|
||||
|
||||
private readonly bool userInteractive;
|
||||
public override bool HandlePositionalInput => userInteractive;
|
||||
public override bool HandleNonPositionalInput => userInteractive;
|
||||
private readonly bool allowSeek;
|
||||
|
||||
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.MaxValue = 1;
|
||||
|
|
Loading…
Reference in New Issue