mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix brokenness due to relative sizes.
This commit is contained in:
@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class CirclePiece : TaikoPiece
|
public class CirclePiece : TaikoPiece
|
||||||
{
|
{
|
||||||
public const float SYMBOL_SIZE = 0.35f;
|
public const float SYMBOL_SIZE = 0.45f;
|
||||||
public const float SYMBOL_BORDER = 8;
|
public const float SYMBOL_BORDER = 8;
|
||||||
private const double pre_beat_transition_time = 80;
|
private const double pre_beat_transition_time = 80;
|
||||||
|
|
||||||
@ -126,12 +126,6 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isStrong)
|
|
||||||
{
|
|
||||||
content.Scale = new Vector2(TaikoHitObject.STRONG_SCALE);
|
|
||||||
content.Width = 1 / TaikoHitObject.STRONG_SCALE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private const float edge_alpha_kiai = 0.5f;
|
private const float edge_alpha_kiai = 0.5f;
|
||||||
|
@ -19,6 +19,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
Anchor = Anchor.Centre;
|
Anchor = Anchor.Centre;
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
|
RelativeSizeAxes = Axes.Both;
|
||||||
Size = new Vector2(CirclePiece.SYMBOL_SIZE);
|
Size = new Vector2(CirclePiece.SYMBOL_SIZE);
|
||||||
|
|
||||||
BorderThickness = CirclePiece.SYMBOL_BORDER;
|
BorderThickness = CirclePiece.SYMBOL_BORDER;
|
||||||
|
@ -6,7 +6,6 @@ using OpenTK;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using OpenTK;
|
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The size of a tick.
|
/// The size of a tick.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const float tick_size = 14;
|
private const float tick_size = 0.35f;
|
||||||
|
|
||||||
private bool filled;
|
private bool filled;
|
||||||
public bool Filled
|
public bool Filled
|
||||||
@ -40,7 +40,8 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
|||||||
Anchor = Anchor.Centre;
|
Anchor = Anchor.Centre;
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.None;
|
RelativeSizeAxes = Axes.Both;
|
||||||
|
FillMode = FillMode.Fit;
|
||||||
Size = new Vector2(tick_size);
|
Size = new Vector2(tick_size);
|
||||||
|
|
||||||
Add(new CircularContainer
|
Add(new CircularContainer
|
||||||
|
Reference in New Issue
Block a user