mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:17:51 +08:00
Add extra bottom space for catcher to not look cut off on tall resolutions
This commit is contained in:
parent
9b17020707
commit
0c25a9a460
@ -20,6 +20,9 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
const float base_game_width = 1024f;
|
const float base_game_width = 1024f;
|
||||||
const float base_game_height = 768f;
|
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;
|
Anchor = Anchor.Centre;
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
@ -31,7 +34,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = base_game_height,
|
Height = base_game_height + extra_bottom_space,
|
||||||
|
Y = extra_bottom_space / 2,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
Child = new Container
|
Child = new Container
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user