mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Remove unused puzzle pieces
This commit is contained in:
parent
fafca093e8
commit
7ad498cb29
@ -326,8 +326,6 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private bool trackingPosition;
|
||||
|
||||
public void SetLogoTracking(bool value) => trackingPosition = value;
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
|
||||
|
@ -224,27 +224,6 @@ namespace osu.Game.Screens.Menu
|
||||
ripple.Texture = textures.Get(@"Menu/logo");
|
||||
}
|
||||
|
||||
private double? reservationEndTime;
|
||||
private Action<OsuLogo> reservationCallback;
|
||||
|
||||
private bool canFulfillReservation => !reservationEndTime.HasValue || reservationEndTime <= Time.Current;
|
||||
|
||||
public void RequestUsage(Action<OsuLogo> callback)
|
||||
{
|
||||
reservationCallback = callback;
|
||||
}
|
||||
|
||||
private void fulfillReservation()
|
||||
{
|
||||
reservationCallback(this);
|
||||
reservationCallback = null;
|
||||
}
|
||||
|
||||
public void ReserveFor(float duration)
|
||||
{
|
||||
reservationEndTime = Time.Current + duration;
|
||||
}
|
||||
|
||||
private int lastBeatIndex;
|
||||
|
||||
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, TrackAmplitudes amplitudes)
|
||||
@ -311,9 +290,6 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
triangles.Velocity = paused_velocity;
|
||||
}
|
||||
|
||||
if (reservationCallback != null && canFulfillReservation)
|
||||
fulfillReservation();
|
||||
}
|
||||
|
||||
private bool interactive => Action != null && Alpha > 0.2f;
|
||||
|
Loading…
Reference in New Issue
Block a user