mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Extract disabling progress bar user-interactivity
This commit is contained in:
@ -40,8 +40,14 @@ namespace osu.Game.Graphics.UserInterface
|
||||
set => CurrentNumber.Value = value;
|
||||
}
|
||||
|
||||
public ProgressBar()
|
||||
private readonly bool userInteractive;
|
||||
public override bool HandlePositionalInput => userInteractive;
|
||||
public override bool HandleNonPositionalInput => userInteractive;
|
||||
|
||||
public ProgressBar(bool userInteractive)
|
||||
{
|
||||
this.userInteractive = userInteractive;
|
||||
|
||||
CurrentNumber.MinValue = 0;
|
||||
CurrentNumber.MaxValue = 1;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
|
Reference in New Issue
Block a user