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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user