Merge pull request #918 from peppy/update-framework

Update framework
This commit is contained in:
Dean Herbert 2017-06-08 20:24:40 +09:00 committed by GitHub
commit b2b1c08432
8 changed files with 11 additions and 11 deletions

@ -1 +1 @@
Subproject commit 3ad1dd52ae511b816fb928f70ef811ec605c5c18
Subproject commit 7131c54ea0a76ea03565ca93680487930c1c158a

View File

@ -134,7 +134,7 @@ private class AutoTimeRelativeContainer : Container
public override void InvalidateFromChild(Invalidation invalidation)
{
// We only want to re-compute our size when a child's size or position has changed
if ((invalidation & Invalidation.Geometry) == 0)
if ((invalidation & Invalidation.RequiredParentSizeToFit) == 0)
{
base.InvalidateFromChild(invalidation);
return;

View File

@ -86,6 +86,6 @@ private void newMessagesArrived(IEnumerable<Message> newMessages)
}
}
private void scrollToEnd() => Scheduler.AddDelayed(() => scroll.ScrollToEnd(), 50);
private void scrollToEnd() => ScheduleAfterChildren(() => scroll.ScrollToEnd());
}
}

View File

@ -80,7 +80,7 @@ protected int SelectedIndex
backgroundIcon.RotateTo(-rotate_angle * direction, mod_switch_duration, mod_switch_easing);
backgroundIcon.Icon = modAfter.Icon;
using (iconsContainer.BeginDelayedSequence(mod_switch_duration, true))
using (BeginDelayedSequence(mod_switch_duration, true))
{
foregroundIcon.RotateTo(-rotate_angle * direction);
foregroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
@ -88,7 +88,7 @@ protected int SelectedIndex
backgroundIcon.RotateTo(rotate_angle * direction);
backgroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
iconsContainer.Schedule(() => displayMod(modAfter));
Schedule(() => displayMod(modAfter));
}
}

View File

@ -39,7 +39,7 @@ public bool Bounding
set
{
bounding = value;
Invalidate(Invalidation.Geometry);
Invalidate(Invalidation.MiscGeometry);
}
}

View File

@ -25,13 +25,13 @@ protected override void OnResuming(Screen last)
protected override void OnEntering(Screen last)
{
base.OnEntering(last);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
Background.FadeColour(Color4.DarkGray, 500);
Beatmap?.Track?.Stop();
}
protected override bool OnExiting(Screen next)
{
Background.Schedule(() => Background.FadeColour(Color4.White, 500));
Background.FadeColour(Color4.White, 500);
Beatmap?.Track?.Start();
return base.OnExiting(next);
}

View File

@ -24,12 +24,12 @@ protected override void OnEntering(Screen last)
{
base.OnEntering(last);
Background.Schedule(() => Background.FadeColour(Color4.DarkGray, 500));
Background.FadeColour(Color4.DarkGray, 500);
}
protected override bool OnExiting(Screen next)
{
Background.Schedule(() => Background.FadeColour(Color4.White, 500));
Background.FadeColour(Color4.White, 500);
return base.OnExiting(next);
}
}

View File

@ -69,7 +69,7 @@ public SquareGraph()
public override bool Invalidate(Invalidation invalidation = Invalidation.All, Drawable source = null, bool shallPropagate = true)
{
if ((invalidation & Invalidation.SizeInParentSpace) > 0)
if ((invalidation & Invalidation.DrawSize) > 0)
layout.Invalidate();
return base.Invalidate(invalidation, source, shallPropagate);
}