mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Rename parameter to make more sense
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user