mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
commit
01a35ed448
@ -1 +1 @@
|
||||
Subproject commit 8dbc789266c1bc3e46e364be824d69bcfac74e83
|
||||
Subproject commit 1b0d7a584cad85efcdf25c5155e6e62a4ccb5758
|
@ -85,11 +85,5 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
Clock.ProcessFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,11 +58,5 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Add(d);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
Clock.ProcessFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -32,11 +32,5 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Add(mc);
|
||||
AddToggle(@"Show", mc.ToggleVisibility);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
Clock.ProcessFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,11 +82,5 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Beatmap = beatmap
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
Clock.ProcessFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ namespace osu.Game.Modes.Osu.UI
|
||||
protected virtual float PopOutSmallScale => 1.1f;
|
||||
protected virtual bool CanPopOutWhileRolling => false;
|
||||
|
||||
public Vector2 PopOutScale = new Vector2(2.5f);
|
||||
public Vector2 PopOutScale = new Vector2(1.6f);
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
|
@ -12,18 +12,20 @@ namespace osu.Game.Modes.Osu.UI
|
||||
{
|
||||
public class OsuScoreOverlay : ScoreOverlay
|
||||
{
|
||||
protected override PercentageCounter CreateAccuracyCounter() => new PercentageCounter()
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
Position = new Vector2(0, 45)
|
||||
};
|
||||
|
||||
protected override ScoreCounter CreateScoreCounter() => new ScoreCounter()
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
TextSize = 60
|
||||
TextSize = 60,
|
||||
Margin = new MarginPadding { Right = 5 },
|
||||
};
|
||||
|
||||
protected override PercentageCounter CreateAccuracyCounter() => new PercentageCounter()
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
Position = new Vector2(0, 55),
|
||||
Margin = new MarginPadding { Right = 5 },
|
||||
};
|
||||
|
||||
protected override ComboCounter CreateComboCounter() => new OsuComboCounter()
|
||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
protected override Type TransformType => typeof(TransformAccuracy);
|
||||
|
||||
protected override double RollingDuration => 20;
|
||||
protected override double RollingDuration => 150;
|
||||
protected override bool IsRollingProportional => true;
|
||||
|
||||
private float epsilon => 1e-10f;
|
||||
|
@ -42,7 +42,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// Easing for the counter rollover animation.
|
||||
/// </summary>
|
||||
protected virtual EasingTypes RollingEasing => EasingTypes.None;
|
||||
protected virtual EasingTypes RollingEasing => EasingTypes.Out;
|
||||
|
||||
private T displayedCount;
|
||||
|
||||
|
@ -79,7 +79,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
Direction = FlowDirection.HorizontalOnly,
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Padding = new MarginPadding { Left = 15, Right = 15 },
|
||||
Padding = new MarginPadding { Left = 20, Right = 20 },
|
||||
Spacing = new Vector2(5),
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
AutoSizeAxes = Axes.X,
|
||||
|
@ -67,12 +67,10 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
|
||||
sourceClock = (IAdjustableClock)track ?? new StopwatchClock();
|
||||
Clock = new InterpolatingFramedClock(sourceClock);
|
||||
|
||||
Schedule(() =>
|
||||
{
|
||||
sourceClock.Reset();
|
||||
sourceClock.Start();
|
||||
});
|
||||
|
||||
var beatmap = Beatmap.Beatmap;
|
||||
@ -103,6 +101,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
new PlayerInputManager(game.Host)
|
||||
{
|
||||
Clock = new InterpolatingFramedClock(sourceClock),
|
||||
PassThrough = false,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -113,6 +112,21 @@ namespace osu.Game.Screens.Play
|
||||
};
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
Delay(250, true);
|
||||
Content.FadeIn(250);
|
||||
|
||||
Delay(500, true);
|
||||
|
||||
Schedule(() =>
|
||||
{
|
||||
sourceClock.Start();
|
||||
});
|
||||
}
|
||||
|
||||
private void hitRenderer_OnAllJudged()
|
||||
{
|
||||
Delay(1000);
|
||||
@ -130,12 +144,8 @@ namespace osu.Game.Screens.Play
|
||||
base.OnEntering(last);
|
||||
|
||||
(Background as BackgroundModeBeatmap)?.BlurTo(Vector2.Zero, 1000);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
Clock.ProcessFrame();
|
||||
Content.Alpha = 0;
|
||||
}
|
||||
|
||||
class PlayerInputManager : UserInputManager
|
||||
|
@ -61,7 +61,6 @@ namespace osu.Game.Screens.Select
|
||||
(beatmapInfoContainer = new BufferedContainer
|
||||
{
|
||||
Depth = newDepth,
|
||||
PixelSnapping = true,
|
||||
CacheDrawnFrameBuffer = true,
|
||||
Shear = -Shear,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
@ -25,6 +25,7 @@ using OpenTK.Graphics;
|
||||
using osu.Game.Screens.Play;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Audio.Sample;
|
||||
using osu.Framework.Graphics.Transformations;
|
||||
using osu.Game.Beatmaps.Drawables;
|
||||
using osu.Game.Graphics.Containers;
|
||||
|
||||
@ -188,6 +189,12 @@ namespace osu.Game.Screens.Select
|
||||
changeBackground(Beatmap);
|
||||
|
||||
Content.FadeInFromZero(250);
|
||||
|
||||
beatmapInfoWedge.MoveTo(wedged_container_start_position + new Vector2(-100, 50));
|
||||
beatmapInfoWedge.RotateTo(10);
|
||||
|
||||
beatmapInfoWedge.MoveTo(wedged_container_start_position, 800, EasingTypes.OutQuint);
|
||||
beatmapInfoWedge.RotateTo(0, 800, EasingTypes.OutQuint);
|
||||
}
|
||||
|
||||
protected override void OnResuming(GameMode last)
|
||||
@ -197,16 +204,23 @@ namespace osu.Game.Screens.Select
|
||||
base.OnResuming(last);
|
||||
|
||||
Content.FadeIn(250);
|
||||
|
||||
Content.ScaleTo(1, 250, EasingTypes.OutSine);
|
||||
}
|
||||
|
||||
protected override void OnSuspending(GameMode next)
|
||||
{
|
||||
Content.ScaleTo(1.1f, 250, EasingTypes.InSine);
|
||||
|
||||
Content.FadeOut(250);
|
||||
base.OnSuspending(next);
|
||||
}
|
||||
|
||||
protected override bool OnExiting(GameMode next)
|
||||
{
|
||||
beatmapInfoWedge.MoveTo(wedged_container_start_position + new Vector2(-100, 50), 800, EasingTypes.InQuint);
|
||||
beatmapInfoWedge.RotateTo(10, 800, EasingTypes.InQuint);
|
||||
|
||||
Content.FadeOut(100);
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user