mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Add ui scaling setup screen, kind of
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user