1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Add extra bottom space for catcher to not look cut off on tall resolutions

This commit is contained in:
Salman Ahmed 2024-02-15 07:31:01 +03:00
parent 9b17020707
commit 0c25a9a460

View File

@ -20,6 +20,9 @@ namespace osu.Game.Rulesets.Catch.UI
const float base_game_width = 1024f;
const float base_game_height = 768f;
// extra bottom space for the catcher to not get cut off at tall resolutions lower than 4:3 (e.g. 5:4). number chosen based on testing with maximum catcher scale (i.e. CS 0).
const float extra_bottom_space = 200f;
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
@ -31,7 +34,8 @@ namespace osu.Game.Rulesets.Catch.UI
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.X,
Height = base_game_height,
Height = base_game_height + extra_bottom_space,
Y = extra_bottom_space / 2,
Masking = true,
Child = new Container
{