1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Change default masking value to true

This commit is contained in:
Andrei Zavatski 2024-01-21 04:57:48 +03:00
parent 6ba3546be5
commit e003ecb593
11 changed files with 7 additions and 10 deletions

View File

@ -15,6 +15,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
{
TriangleScale = 1.2f;
HideAlphaDiscrepancies = false;
Masking = false;
}
protected override void Update()

View File

@ -78,9 +78,9 @@ namespace osu.Game.Graphics.Backgrounds
/// <summary>
/// If enabled, only the portion of triangles that falls within this <see cref="Drawable"/>'s
/// shape is drawn to the screen.
/// shape is drawn to the screen. Default is true.
/// </summary>
public bool Masking { get; set; }
public bool Masking { get; set; } = true;
/// <summary>
/// Whether we should drop-off alpha values of triangles more quickly to improve

View File

@ -34,9 +34,9 @@ namespace osu.Game.Graphics.Backgrounds
/// <summary>
/// If enabled, only the portion of triangles that falls within this <see cref="Drawable"/>'s
/// shape is drawn to the screen.
/// shape is drawn to the screen. Default is true.
/// </summary>
public bool Masking { get; set; }
public bool Masking { get; set; } = true;
private readonly BindableFloat spawnRatio = new BindableFloat(1f);

View File

@ -150,6 +150,7 @@ namespace osu.Game.Graphics.UserInterface
TriangleScale = 4,
ColourDark = OsuColour.Gray(0.88f),
Shear = new Vector2(-0.2f, 0),
Masking = false
},
},
},

View File

@ -68,7 +68,6 @@ namespace osu.Game.Graphics.UserInterfaceV2
SpawnRatio = 0.6f,
RelativeSizeAxes = Axes.Both,
Depth = float.MaxValue,
Masking = true
});
updateColours();

View File

@ -50,7 +50,6 @@ namespace osu.Game.Online.Leaderboards
ColourDark = rankColour.Darken(0.1f),
ColourLight = rankColour.Lighten(0.1f),
Velocity = 0.25f,
Masking = true
},
new OsuSpriteText
{

View File

@ -150,7 +150,6 @@ namespace osu.Game.Overlays.Dialog
ColourLight = Color4Extensions.FromHex(@"271e26"),
ColourDark = Color4Extensions.FromHex(@"1e171e"),
TriangleScale = 4,
Masking = true
},
flashLayer = new Box
{

View File

@ -95,6 +95,7 @@ namespace osu.Game.Overlays.Mods
Height = header_height,
Shear = new Vector2(-ShearedOverlayContainer.SHEAR, 0),
Velocity = 0.7f,
Masking = false
},
headerText = new OsuTextFlowContainer(t =>
{

View File

@ -255,7 +255,6 @@ namespace osu.Game.Overlays.Toolbar
RelativeSizeAxes = Axes.Both,
ColourLight = OsuColour.Gray(40),
ColourDark = OsuColour.Gray(20),
Masking = true
},
};
}

View File

@ -192,7 +192,6 @@ namespace osu.Game.Screens.Menu
ColourLight = Color4Extensions.FromHex(@"ff7db7"),
ColourDark = Color4Extensions.FromHex(@"de5b95"),
RelativeSizeAxes = Axes.Both,
Masking = true
},
}
},

View File

@ -110,7 +110,6 @@ namespace osu.Game.Screens.Select.Carousel
RelativeSizeAxes = Axes.Both,
ColourLight = Color4Extensions.FromHex(@"3a7285"),
ColourDark = Color4Extensions.FromHex(@"123744"),
Masking = true
},
new FillFlowContainer
{