mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Increase size of default osu!mania skin's keys to allow clearance with HUD
This commit is contained in:
parent
3794b55eef
commit
9db996a91f
@ -53,9 +53,8 @@ namespace osu.Game.Rulesets.Mania.UI.Components
|
|||||||
keyIcon = new Container
|
keyIcon = new Container
|
||||||
{
|
{
|
||||||
Name = "Key icon",
|
Name = "Key icon",
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Size = new Vector2(key_icon_size),
|
Size = new Vector2(key_icon_size),
|
||||||
|
Origin = Anchor.Centre,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
CornerRadius = key_icon_corner_radius,
|
CornerRadius = key_icon_corner_radius,
|
||||||
BorderThickness = 2,
|
BorderThickness = 2,
|
||||||
@ -88,11 +87,15 @@ namespace osu.Game.Rulesets.Mania.UI.Components
|
|||||||
{
|
{
|
||||||
if (direction.NewValue == ScrollingDirection.Up)
|
if (direction.NewValue == ScrollingDirection.Up)
|
||||||
{
|
{
|
||||||
|
keyIcon.Anchor = Anchor.BottomCentre;
|
||||||
|
keyIcon.Y = -20;
|
||||||
directionContainer.Anchor = directionContainer.Origin = Anchor.TopLeft;
|
directionContainer.Anchor = directionContainer.Origin = Anchor.TopLeft;
|
||||||
gradient.Colour = ColourInfo.GradientVertical(Color4.Black, Color4.Black.Opacity(0));
|
gradient.Colour = ColourInfo.GradientVertical(Color4.Black, Color4.Black.Opacity(0));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
keyIcon.Anchor = Anchor.TopCentre;
|
||||||
|
keyIcon.Y = 20;
|
||||||
directionContainer.Anchor = directionContainer.Origin = Anchor.BottomLeft;
|
directionContainer.Anchor = directionContainer.Origin = Anchor.BottomLeft;
|
||||||
gradient.Colour = ColourInfo.GradientVertical(Color4.Black.Opacity(0), Color4.Black);
|
gradient.Colour = ColourInfo.GradientVertical(Color4.Black.Opacity(0), Color4.Black);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
{
|
{
|
||||||
public const float COLUMN_SPACING = 1;
|
public const float COLUMN_SPACING = 1;
|
||||||
|
|
||||||
public const float HIT_TARGET_POSITION = 50;
|
public const float HIT_TARGET_POSITION = 110;
|
||||||
|
|
||||||
public IReadOnlyList<Column> Columns => columnFlow.Children;
|
public IReadOnlyList<Column> Columns => columnFlow.Children;
|
||||||
private readonly FillFlowContainer<Column> columnFlow;
|
private readonly FillFlowContainer<Column> columnFlow;
|
||||||
|
Loading…
Reference in New Issue
Block a user