1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 07:33:21 +08:00

Update the offset formula

This commit is contained in:
normalid 2024-07-23 19:45:53 +08:00
parent ad1a86ebdc
commit 777a0deb0f
2 changed files with 6 additions and 7 deletions

View File

@ -64,8 +64,8 @@ namespace osu.Game.Skinning
protected override void LoadComplete()
{
base.LoadComplete();
Width = Math.Max(overlayKey.Width, 43 * 1.05f);
Height = Math.Max(overlayKey.Height, 43 * 1.05f);
Width = Math.Max(overlayKey.Width, 48 * 0.95f);
Height = Math.Max(overlayKey.Height, 48 * 0.95f);
}
protected override void Activate(bool forwardPlayback = true)

View File

@ -28,15 +28,14 @@ namespace osu.Game.Skinning
{
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
//BypassAutoSizeAxes = Axes.Both,
SpriteName = { Value= "inputoverlay-background" },
},
KeyFlow = new FillFlowContainer<KeyCounter>
{
Padding = new MarginPadding
{
Horizontal = 7f * 1.05f,
},
// https://osu.ppy.sh/wiki/en/Skinning/Interface#input-overlay
// 24px away from the container, there're 4 counter in legacy, so divide by 4
// "inputoverlay-background.png" are 1.05x in-game. so *1.05f to the X coordinate
X = (24 / 4) * 1.05f,
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
Direction = FillDirection.Horizontal,