mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 22:22:55 +08:00
Make offsetting of bottom bar more readable
This commit is contained in:
parent
626f4b0dfd
commit
680646d3a6
@ -119,8 +119,9 @@ namespace osu.Game.Screens.Select.FooterV2
|
||||
},
|
||||
new Container
|
||||
{
|
||||
//Offset the bar to centre it with consideration for the shearing
|
||||
Position = new Vector2(-0.15f * 35, -10),
|
||||
// The X offset has to multiplied as such to account for the fact that we only want to offset by the distance from the CenterLeft point of the container
|
||||
// not the whole shear width
|
||||
Position = new Vector2(-SHEAR.X * (button_height / 2 - 10), -10),
|
||||
Anchor = Anchor.BottomCentre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(120, 6),
|
||||
|
Loading…
Reference in New Issue
Block a user