mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Use const whenever possible.
This commit is contained in:
@ -132,7 +132,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
icon.ScaleTo(1, 500, EasingTypes.OutElasticHalf);
|
||||
|
||||
double offset = 0; //(1 - Game.Audio.SyncBeatProgress) * duration;
|
||||
const double offset = 0; //(1 - Game.Audio.SyncBeatProgress) * duration;
|
||||
double startTime = Time.Current + offset;
|
||||
|
||||
icon.RotateTo(10, offset, EasingTypes.InOutSine);
|
||||
|
@ -113,12 +113,12 @@ namespace osu.Game.Screens.Menu
|
||||
//we also handle the exit transition.
|
||||
seeya.Play();
|
||||
|
||||
double fadeOutTime = 2000;
|
||||
const double fade_out_time = 2000;
|
||||
|
||||
Scheduler.AddDelayed(Exit, fadeOutTime);
|
||||
Scheduler.AddDelayed(Exit, fade_out_time);
|
||||
|
||||
//don't want to fade out completely else we will stop running updates and shit will hit the fan.
|
||||
Game.FadeTo(0.01f, fadeOutTime);
|
||||
Game.FadeTo(0.01f, fade_out_time);
|
||||
|
||||
base.OnResuming(last);
|
||||
}
|
||||
|
@ -42,10 +42,10 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public int RestartCount;
|
||||
|
||||
private readonly double pauseCooldown = 1000;
|
||||
private const double pause_cooldown = 1000;
|
||||
private double lastPauseActionTime;
|
||||
|
||||
private bool canPause => Time.Current >= lastPauseActionTime + pauseCooldown;
|
||||
private bool canPause => Time.Current >= lastPauseActionTime + pause_cooldown;
|
||||
|
||||
private IAdjustableClock sourceClock;
|
||||
private IFrameBasedClock interpolatedSourceClock;
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Screens.Select.Options
|
||||
{
|
||||
public class BeatmapOptionsButton : ClickableContainer
|
||||
{
|
||||
private static readonly float width = 130;
|
||||
private const float width = 130;
|
||||
|
||||
private readonly Box background;
|
||||
private readonly Box flash;
|
||||
|
Reference in New Issue
Block a user