1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 00:20:23 +08:00

Change global shear definition to be a Vector2

Saves having this defined in 20+ places. If we ever make any changes to
shear, it's 100% going to need to be applied to every usage (there will
never be a case of multiple different shears in the game).

Also fixes a mismatching definition in `ShearedNub`.
This commit is contained in:
Dean Herbert
2025-04-16 16:54:01 +09:00
Unverified
parent 57a81658f8
commit 7a8e96f322
22 changed files with 72 additions and 94 deletions
@@ -52,7 +52,7 @@ namespace osu.Game.Graphics.UserInterface
public ShearedSearchTextBox()
{
Height = 42;
Shear = new Vector2(OsuGame.SHEAR, 0);
Shear = OsuGame.SHEAR;
Masking = true;
CornerRadius = corner_radius;
@@ -115,7 +115,7 @@ namespace osu.Game.Graphics.UserInterface
PlaceholderText = CommonStrings.InputSearch;
CornerRadius = corner_radius;
TextContainer.Shear = new Vector2(-OsuGame.SHEAR, 0);
TextContainer.Shear = -OsuGame.SHEAR;
}
protected override SpriteText CreatePlaceholder() => new SearchPlaceholder();