mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 09:43:10 +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;
|
private bool trackingPosition;
|
||||||
|
|
||||||
public void SetLogoTracking(bool value) => trackingPosition = value;
|
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
|
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
|
||||||
|
@ -224,27 +224,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
ripple.Texture = textures.Get(@"Menu/logo");
|
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;
|
private int lastBeatIndex;
|
||||||
|
|
||||||
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, TrackAmplitudes amplitudes)
|
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;
|
triangles.Velocity = paused_velocity;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reservationCallback != null && canFulfillReservation)
|
|
||||||
fulfillReservation();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool interactive => Action != null && Alpha > 0.2f;
|
private bool interactive => Action != null && Alpha > 0.2f;
|
||||||
|
Loading…
Reference in New Issue
Block a user