mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 04:52:53 +08: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>
|
/// </summary>
|
||||||
private const float border_offset = 1;
|
private const float border_offset = 1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Thickness of all drawn line pieces.
|
||||||
|
/// </summary>
|
||||||
|
private const float border_thickness = 2.5f;
|
||||||
|
|
||||||
public HitTarget()
|
public HitTarget()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
@ -42,7 +47,7 @@ namespace osu.Game.Modes.Taiko.UI
|
|||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Y = border_offset,
|
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
|
Alpha = 0.1f
|
||||||
},
|
},
|
||||||
new CircularContainer
|
new CircularContainer
|
||||||
@ -53,7 +58,7 @@ namespace osu.Game.Modes.Taiko.UI
|
|||||||
Size = new Vector2(finisher_diameter),
|
Size = new Vector2(finisher_diameter),
|
||||||
Masking = true,
|
Masking = true,
|
||||||
BorderColour = Color4.White,
|
BorderColour = Color4.White,
|
||||||
BorderThickness = 2,
|
BorderThickness = border_thickness,
|
||||||
Alpha = 0.1f,
|
Alpha = 0.1f,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
@ -73,7 +78,7 @@ namespace osu.Game.Modes.Taiko.UI
|
|||||||
Size = new Vector2(normal_diameter),
|
Size = new Vector2(normal_diameter),
|
||||||
Masking = true,
|
Masking = true,
|
||||||
BorderColour = Color4.White,
|
BorderColour = Color4.White,
|
||||||
BorderThickness = 2,
|
BorderThickness = border_thickness,
|
||||||
Alpha = 0.5f,
|
Alpha = 0.5f,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
@ -91,7 +96,7 @@ namespace osu.Game.Modes.Taiko.UI
|
|||||||
Anchor = Anchor.BottomCentre,
|
Anchor = Anchor.BottomCentre,
|
||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
Y = -border_offset,
|
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
|
Alpha = 0.1f
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user