mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Add a basic implementation of the new design results screen.
This commit is contained in:
17
osu.Game/Screens/Ranking/AspectContainer.cs
Normal file
17
osu.Game/Screens/Ranking/AspectContainer.cs
Normal file
@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user