mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 18:30:34 +08:00
21 lines
540 B
C#
21 lines
540 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
namespace osu.Game.Screens.Ranking
|
|
{
|
|
public class AspectContainer : Container
|
|
{
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
if (RelativeSizeAxes == Axes.X)
|
|
Height = DrawWidth;
|
|
else
|
|
Width = DrawHeight;
|
|
}
|
|
}
|
|
}
|