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

Fix brokenness due to relative sizes.

This commit is contained in:
smoogipooo 2017-08-03 20:04:35 +09:30
parent 0a4464bbe8
commit 351d255355
4 changed files with 5 additions and 10 deletions

View File

@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
/// </summary>
public class CirclePiece : TaikoPiece
{
public const float SYMBOL_SIZE = 0.35f;
public const float SYMBOL_SIZE = 0.45f;
public const float SYMBOL_BORDER = 8;
private const double pre_beat_transition_time = 80;
@ -126,12 +126,6 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
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;

View File

@ -19,6 +19,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
RelativeSizeAxes = Axes.Both;
Size = new Vector2(CirclePiece.SYMBOL_SIZE);
BorderThickness = CirclePiece.SYMBOL_BORDER;

View File

@ -6,7 +6,6 @@ using OpenTK;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics;
using OpenTK;
namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
{

View File

@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
/// <summary>
/// The size of a tick.
/// </summary>
private const float tick_size = 14;
private const float tick_size = 0.35f;
private bool filled;
public bool Filled
@ -40,7 +40,8 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
RelativeSizeAxes = Axes.None;
RelativeSizeAxes = Axes.Both;
FillMode = FillMode.Fit;
Size = new Vector2(tick_size);
Add(new CircularContainer