mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Check if graph DrawSize changed
This commit is contained in:
parent
0d76f4501d
commit
e3d5ba5301
@ -78,11 +78,13 @@ namespace osu.Game.Screens.Play
|
|||||||
private readonly LayoutValue layout = new LayoutValue(Invalidation.DrawSize);
|
private readonly LayoutValue layout = new LayoutValue(Invalidation.DrawSize);
|
||||||
private ScheduledDelegate scheduledCreate;
|
private ScheduledDelegate scheduledCreate;
|
||||||
|
|
||||||
|
private Vector2 previousDrawSize;
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
if (values != null && !layout.IsValid)
|
if (values != null && !layout.IsValid && DrawSize != previousDrawSize)
|
||||||
{
|
{
|
||||||
columns?.FadeOut(500, Easing.OutQuint).Expire();
|
columns?.FadeOut(500, Easing.OutQuint).Expire();
|
||||||
|
|
||||||
@ -90,6 +92,7 @@ namespace osu.Game.Screens.Play
|
|||||||
scheduledCreate = Scheduler.AddDelayed(RecreateGraph, 500);
|
scheduledCreate = Scheduler.AddDelayed(RecreateGraph, 500);
|
||||||
|
|
||||||
layout.Validate();
|
layout.Validate();
|
||||||
|
previousDrawSize = DrawSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user