mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Change shear factor everywhere to 0.15x
This commit is contained in:
parent
7fce4cc494
commit
9265290acf
@ -11,6 +11,7 @@ using osu.Framework.Localisation;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Overlays.Mods;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
@ -66,7 +67,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
private readonly Box background;
|
||||
private readonly OsuSpriteText text;
|
||||
|
||||
private const float shear = 0.2f;
|
||||
private const float shear = ShearedOverlayContainer.SHEAR;
|
||||
|
||||
private Colour4? darkerColour;
|
||||
private Colour4? lighterColour;
|
||||
|
@ -22,7 +22,8 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
protected const float PADDING = 14;
|
||||
|
||||
public const float SHEAR = 0.2f;
|
||||
// todo: maybe move this to a higher place since it's used for screen footer buttons etc.
|
||||
public const float SHEAR = 0.15f;
|
||||
|
||||
[Cached]
|
||||
protected readonly OverlayColourProvider ColourProvider;
|
||||
|
@ -18,6 +18,7 @@ using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Overlays.Mods;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
@ -25,9 +26,7 @@ namespace osu.Game.Screens.Footer
|
||||
{
|
||||
public partial class ScreenFooterButton : OsuClickableContainer, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
// if we go by design, both this and ShearedButton should have shear factor as 1/7,
|
||||
// but ShearedButton uses 1/5 so we must follow suit for the design to stay consistent.
|
||||
private const float shear = 1f / 5f;
|
||||
private const float shear = ShearedOverlayContainer.SHEAR;
|
||||
|
||||
protected const int CORNER_RADIUS = 10;
|
||||
protected const int BUTTON_HEIGHT = 90;
|
||||
|
Loading…
Reference in New Issue
Block a user