mirror of
https://github.com/ppy/osu
synced 2025-01-07 22:59:55 +00:00
Add constant for HitTarget line thickness and make slightly thicker (displays better at lower resolutions).
This commit is contained in:
parent
ef8830aa7f
commit
ebb64e01d1
@ -30,6 +30,11 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
/// </summary>
|
||||
private const float border_offset = 1;
|
||||
|
||||
/// <summary>
|
||||
/// Thickness of all drawn line pieces.
|
||||
/// </summary>
|
||||
private const float border_thickness = 2.5f;
|
||||
|
||||
public HitTarget()
|
||||
{
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
@ -42,7 +47,7 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Y = border_offset,
|
||||
Size = new Vector2(3, (TaikoPlayfield.PlayfieldHeight - finisher_diameter) / 2f - border_offset),
|
||||
Size = new Vector2(border_thickness, (TaikoPlayfield.PlayfieldHeight - finisher_diameter) / 2f - border_offset),
|
||||
Alpha = 0.1f
|
||||
},
|
||||
new CircularContainer
|
||||
@ -53,7 +58,7 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
Size = new Vector2(finisher_diameter),
|
||||
Masking = true,
|
||||
BorderColour = Color4.White,
|
||||
BorderThickness = 2,
|
||||
BorderThickness = border_thickness,
|
||||
Alpha = 0.1f,
|
||||
Children = new[]
|
||||
{
|
||||
@ -73,7 +78,7 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
Size = new Vector2(normal_diameter),
|
||||
Masking = true,
|
||||
BorderColour = Color4.White,
|
||||
BorderThickness = 2,
|
||||
BorderThickness = border_thickness,
|
||||
Alpha = 0.5f,
|
||||
Children = new[]
|
||||
{
|
||||
@ -91,7 +96,7 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
Anchor = Anchor.BottomCentre,
|
||||
Origin = Anchor.BottomCentre,
|
||||
Y = -border_offset,
|
||||
Size = new Vector2(3, (TaikoPlayfield.PlayfieldHeight - finisher_diameter) / 2f - border_offset),
|
||||
Size = new Vector2(border_thickness, (TaikoPlayfield.PlayfieldHeight - finisher_diameter) / 2f - border_offset),
|
||||
Alpha = 0.1f
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user