mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:12:57 +08:00
Use explicit primitive types
This commit is contained in:
parent
670fcea68d
commit
d80a73b63d
@ -82,8 +82,8 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
|
||||
public virtual void Update(Playfield playfield)
|
||||
{
|
||||
var shouldAlwaysShowCursor = isBreakTime.Value || spinnerPeriods.IsInAny(playfield.Clock.CurrentTime);
|
||||
var targetAlpha = shouldAlwaysShowCursor ? 1 : comboBasedAlpha;
|
||||
bool shouldAlwaysShowCursor = isBreakTime.Value || spinnerPeriods.IsInAny(playfield.Clock.CurrentTime);
|
||||
float targetAlpha = shouldAlwaysShowCursor ? 1 : comboBasedAlpha;
|
||||
playfield.Cursor.Alpha = (float)Interpolation.Lerp(playfield.Cursor.Alpha, targetAlpha, Math.Clamp(playfield.Time.Elapsed / transition_duration, 0, 1));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user