Add constant for HitTarget line thickness and make slightly thicker (displays better at lower resolutions).

This commit is contained in:
Dean Herbert 2017-03-23 15:32:41 +09:00
parent ef8830aa7f
commit ebb64e01d1
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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
},
};