mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Merge remote-tracking branch 'refs/remotes/upstream/master' into better-glow
# Conflicts: # osu.Game/Beatmaps/Drawable/Panel.cs
This commit is contained in:
commit
54dbb0a355
@ -1 +1 @@
|
|||||||
Subproject commit dd9faf46095a761558abc6cb11ecd0e7498dba4e
|
Subproject commit 059520c91803855835c734bb6d9b56e90238fe78
|
@ -52,7 +52,7 @@ namespace osu.Game.Beatmaps.Drawable
|
|||||||
|
|
||||||
protected virtual void Selected()
|
protected virtual void Selected()
|
||||||
{
|
{
|
||||||
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 255);
|
BorderColour = new Color4(BorderColour.R, BorderColour.G, BorderColour.B, 1f);
|
||||||
BorderThickness = 2.5f;
|
BorderThickness = 2.5f;
|
||||||
|
|
||||||
EdgeEffect = new EdgeEffect
|
EdgeEffect = new EdgeEffect
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.GameModes.Play.Catch
|
|||||||
protected override bool CanPopOutWhileRolling => true;
|
protected override bool CanPopOutWhileRolling => true;
|
||||||
|
|
||||||
protected virtual double FadeOutDelay => 1000;
|
protected virtual double FadeOutDelay => 1000;
|
||||||
protected virtual double FadeOutDuration => 300;
|
protected override double FadeOutDuration => 300;
|
||||||
|
|
||||||
protected override string FormatCount(ulong count)
|
protected override string FormatCount(ulong count)
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,8 @@ namespace osu.Game.GameModes.Play
|
|||||||
protected virtual EasingTypes PopOutEasing => EasingTypes.None;
|
protected virtual EasingTypes PopOutEasing => EasingTypes.None;
|
||||||
protected virtual float PopOutInitialAlpha => 0.75f;
|
protected virtual float PopOutInitialAlpha => 0.75f;
|
||||||
|
|
||||||
|
protected virtual double FadeOutDuration => 100;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Duration in milliseconds for the counter roll-up animation for each element.
|
/// Duration in milliseconds for the counter roll-up animation for each element.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -60,7 +62,6 @@ namespace osu.Game.GameModes.Play
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ulong prevCount;
|
|
||||||
protected ulong count;
|
protected ulong count;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -204,7 +205,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
|
|
||||||
private void updateCount(ulong value, bool rolling = false)
|
private void updateCount(ulong value, bool rolling = false)
|
||||||
{
|
{
|
||||||
prevCount = count;
|
ulong prevCount = count;
|
||||||
count = value;
|
count = value;
|
||||||
if (!rolling)
|
if (!rolling)
|
||||||
{
|
{
|
||||||
|
@ -92,6 +92,11 @@ namespace osu.Game.GameModes.Play.Osu
|
|||||||
protected override void OnCountRolling(ulong currentValue, ulong newValue)
|
protected override void OnCountRolling(ulong currentValue, ulong newValue)
|
||||||
{
|
{
|
||||||
ScheduledPopOutCurrentId++;
|
ScheduledPopOutCurrentId++;
|
||||||
|
|
||||||
|
// Hides displayed count if was increasing from 0 to 1 but didn't finish
|
||||||
|
if (currentValue == 0 && newValue == 0)
|
||||||
|
DisplayedCountSpriteText.FadeOut(FadeOutDuration);
|
||||||
|
|
||||||
base.OnCountRolling(currentValue, newValue);
|
base.OnCountRolling(currentValue, newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,13 +121,17 @@ namespace osu.Game.GameModes.Play.Osu
|
|||||||
protected override void OnCountChange(ulong currentValue, ulong newValue)
|
protected override void OnCountChange(ulong currentValue, ulong newValue)
|
||||||
{
|
{
|
||||||
ScheduledPopOutCurrentId++;
|
ScheduledPopOutCurrentId++;
|
||||||
|
|
||||||
|
if (newValue == 0)
|
||||||
|
DisplayedCountSpriteText.FadeOut();
|
||||||
|
|
||||||
base.OnCountChange(currentValue, newValue);
|
base.OnCountChange(currentValue, newValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnDisplayedCountRolling(ulong currentValue, ulong newValue)
|
protected override void OnDisplayedCountRolling(ulong currentValue, ulong newValue)
|
||||||
{
|
{
|
||||||
if (newValue == 0)
|
if (newValue == 0)
|
||||||
DisplayedCountSpriteText.FadeOut(PopOutDuration);
|
DisplayedCountSpriteText.FadeOut(FadeOutDuration);
|
||||||
else
|
else
|
||||||
DisplayedCountSpriteText.Show();
|
DisplayedCountSpriteText.Show();
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
private ScrollContainer scrollContainer;
|
private ScrollContainer scrollContainer;
|
||||||
private FlowContainer beatmapSetFlow;
|
private FlowContainer beatmapSetFlow;
|
||||||
private TrackManager trackManager;
|
private TrackManager trackManager;
|
||||||
|
private Container wedgeContainer;
|
||||||
|
|
||||||
/// <param name="database">Optionally provide a database to use instead of the OsuGame one.</param>
|
/// <param name="database">Optionally provide a database to use instead of the OsuGame one.</param>
|
||||||
public PlaySongSelect(BeatmapDatabase database = null)
|
public PlaySongSelect(BeatmapDatabase database = null)
|
||||||
@ -45,7 +46,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
const float bottomToolHeight = 50;
|
const float bottomToolHeight = 50;
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new Container
|
wedgeContainer = new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Size = Vector2.One,
|
Size = Vector2.One,
|
||||||
@ -147,6 +148,7 @@ namespace osu.Game.GameModes.Play
|
|||||||
{
|
{
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
ensurePlayingSelected();
|
ensurePlayingSelected();
|
||||||
|
wedgeContainer.FadeInFromZero(250);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnResuming(GameMode last)
|
protected override void OnResuming(GameMode last)
|
||||||
|
@ -43,7 +43,7 @@ namespace osu.Game.GameModes.Play.Taiko
|
|||||||
protected override void OnDisplayedCountRolling(ulong currentValue, ulong newValue)
|
protected override void OnDisplayedCountRolling(ulong currentValue, ulong newValue)
|
||||||
{
|
{
|
||||||
if (newValue == 0)
|
if (newValue == 0)
|
||||||
DisplayedCountSpriteText.FadeOut(AnimationDuration);
|
DisplayedCountSpriteText.FadeOut(FadeOutDuration);
|
||||||
else
|
else
|
||||||
DisplayedCountSpriteText.Show();
|
DisplayedCountSpriteText.Show();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user