1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Fix transition stutter

This commit is contained in:
DrabWeb 2017-02-22 16:37:58 -04:00
parent cf5258ceb0
commit a58a0a4edf
2 changed files with 15 additions and 13 deletions

View File

@ -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
using System;
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Primitives;
using osu.Framework.Graphics.Primitives;
using osu.Game.Graphics.Sprites;
using osu.Game.Modes;
namespace osu.Game.Overlays.Mods
{
class AlwaysPresentFlowContainer : FlowContainer
{
public override bool IsPresent => true;
}
public class ModSection : Container
{
private OsuSpriteText headerLabel;
private FlowContainer buttonsContainer;
private AlwaysPresentFlowContainer buttonsContainer;
public FlowContainer ButtonsContainer
{
get
@ -95,9 +100,9 @@ namespace osu.Game.Overlays.Mods
if (value == colour) return;
colour = value;
foreach (ModButton button in buttons)
{
button.Colour = value;
foreach (ModButton button in buttons)
{
button.Colour = value;
}
}
}
@ -148,7 +153,7 @@ namespace osu.Game.Overlays.Mods
Font = @"Exo2.0-Bold",
Text = Header,
},
buttonsContainer = new FlowContainer
buttonsContainer = new AlwaysPresentFlowContainer
{
AutoSizeAxes = Axes.Both,
Origin = Anchor.BottomLeft,

View File

@ -121,9 +121,6 @@ namespace osu.Game.Overlays
}
}
// TODO: Remove when framework updated
public override bool HandleInput => State == Visibility.Visible;
protected override void PopIn()
{
base.Show();