mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 18:53:21 +08:00
Fix transition stutter
This commit is contained in:
parent
cf5258ceb0
commit
a58a0a4edf
@ -1,23 +1,28 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>=
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Primitives;
|
using osu.Framework.Graphics.Primitives;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Modes;
|
using osu.Game.Modes;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Mods
|
namespace osu.Game.Overlays.Mods
|
||||||
{
|
{
|
||||||
|
class AlwaysPresentFlowContainer : FlowContainer
|
||||||
|
{
|
||||||
|
public override bool IsPresent => true;
|
||||||
|
}
|
||||||
|
|
||||||
public class ModSection : Container
|
public class ModSection : Container
|
||||||
{
|
{
|
||||||
private OsuSpriteText headerLabel;
|
private OsuSpriteText headerLabel;
|
||||||
|
|
||||||
private FlowContainer buttonsContainer;
|
private AlwaysPresentFlowContainer buttonsContainer;
|
||||||
public FlowContainer ButtonsContainer
|
public FlowContainer ButtonsContainer
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@ -95,9 +100,9 @@ namespace osu.Game.Overlays.Mods
|
|||||||
if (value == colour) return;
|
if (value == colour) return;
|
||||||
colour = value;
|
colour = value;
|
||||||
|
|
||||||
foreach (ModButton button in buttons)
|
foreach (ModButton button in buttons)
|
||||||
{
|
{
|
||||||
button.Colour = value;
|
button.Colour = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,7 +153,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
Font = @"Exo2.0-Bold",
|
Font = @"Exo2.0-Bold",
|
||||||
Text = Header,
|
Text = Header,
|
||||||
},
|
},
|
||||||
buttonsContainer = new FlowContainer
|
buttonsContainer = new AlwaysPresentFlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
|
@ -121,9 +121,6 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove when framework updated
|
|
||||||
public override bool HandleInput => State == Visibility.Visible;
|
|
||||||
|
|
||||||
protected override void PopIn()
|
protected override void PopIn()
|
||||||
{
|
{
|
||||||
base.Show();
|
base.Show();
|
||||||
|
Loading…
Reference in New Issue
Block a user