Add ui scaling setup screen, kind of

This commit is contained in:
Dean Herbert
2022-04-06 18:11:32 +09:00
parent ae07b2b512
commit c2df3465b2
3 changed files with 94 additions and 10 deletions

View File

@ -57,7 +57,8 @@ namespace osu.Game.Overlays
{
Origin = Anchor.Centre,
RelativePositionAxes = Axes.Both,
Size = new Vector2(400, 300),
RelativeSizeAxes = Axes.Both,
Size = new Vector2(0.5f),
Position = new Vector2(0.5f),
EdgeEffect = new EdgeEffectParameters
{
@ -130,5 +131,8 @@ namespace osu.Game.Overlays
public void MoveDisplayTo(Vector2 position) =>
currentDisplayContainer.MoveTo(position, 1000, Easing.OutElasticQuarter);
public void ResizeDisplayTo(Vector2 scale) =>
currentDisplayContainer.ScaleTo(scale, 1000, Easing.OutElasticQuarter);
}
}