mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
More robust implementation
This commit is contained in:
parent
84efddcbc7
commit
ad80e2ff51
@ -81,20 +81,31 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
bool hasFlipped = previousParentScale != Parent.Scale;
|
bool extraUpdateConditions =
|
||||||
if (graphNeedsUpdate || (values != null && DrawSize != previousDrawSize) || hasFlipped)
|
DrawSize != previousDrawSize ||
|
||||||
|
previousParentScale != Parent.Scale;
|
||||||
|
|
||||||
|
if (graphNeedsUpdate || (values != null && extraUpdateConditions))
|
||||||
{
|
{
|
||||||
scheduledCreate?.Cancel();
|
bool hasFlipped =
|
||||||
|
previousParentScale.X == -Parent.Scale.X ||
|
||||||
|
previousParentScale.Y == -Parent.Scale.Y;
|
||||||
|
|
||||||
if (!hasFlipped)
|
if (!hasFlipped)
|
||||||
{
|
{
|
||||||
scheduledCreate = Scheduler.AddDelayed(RecreateGraph, 500);
|
columns?.FadeOut(500, Easing.OutQuint).Expire();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RecreateGraph();
|
if (columns != null)
|
||||||
|
{
|
||||||
|
columns.Alpha = 0.0f;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scheduledCreate?.Cancel();
|
||||||
|
scheduledCreate = Scheduler.AddDelayed(RecreateGraph, 500);
|
||||||
|
|
||||||
previousDrawSize = DrawSize;
|
previousDrawSize = DrawSize;
|
||||||
previousParentScale = Parent.Scale;
|
previousParentScale = Parent.Scale;
|
||||||
graphNeedsUpdate = false;
|
graphNeedsUpdate = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user