mirror of
https://github.com/ppy/osu
synced 2025-04-11 03:31:46 +00:00
Make the layout faster
This commit is contained in:
parent
94f3dbb2f6
commit
83f77d9c35
@ -24,7 +24,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
public class HUDOverlay : Container
|
public class HUDOverlay : Container
|
||||||
{
|
{
|
||||||
private const int fade_duration = 400;
|
private const float fade_duration = 400;
|
||||||
private const Easing fade_easing = Easing.Out;
|
private const Easing fade_easing = Easing.Out;
|
||||||
|
|
||||||
public readonly KeyCounterDisplay KeyCounter;
|
public readonly KeyCounterDisplay KeyCounter;
|
||||||
@ -103,8 +103,8 @@ namespace osu.Game.Screens.Play
|
|||||||
Origin = Anchor.BottomRight,
|
Origin = Anchor.BottomRight,
|
||||||
Position = -new Vector2(5, TwoLayerButton.SIZE_RETRACTED.Y),
|
Position = -new Vector2(5, TwoLayerButton.SIZE_RETRACTED.Y),
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
AutoSizeDuration = fade_duration,
|
LayoutDuration = fade_duration / 2,
|
||||||
AutoSizeEasing = fade_easing,
|
LayoutEasing = fade_easing,
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user