mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 08:13:10 +08:00
Fix transition stutter
This commit is contained in:
parent
cf5258ceb0
commit
a58a0a4edf
@ -1,4 +1,4 @@
|
|||||||
// 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;
|
||||||
@ -13,11 +13,16 @@ 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
|
||||||
@ -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