mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 14:07:25 +08:00
Hide test hit directly in explosion scene
This commit is contained in:
parent
b64e69fabd
commit
095686a320
@ -22,6 +22,12 @@ namespace osu.Game.Rulesets.Taiko.Tests
|
|||||||
HitObject.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
HitObject.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void UpdateInitialTransforms()
|
||||||
|
{
|
||||||
|
// base implementation in DrawableHitObject forces alpha to 1.
|
||||||
|
// suppress locally to allow hiding the visuals wherever necessary.
|
||||||
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,9 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
hit,
|
// the hit needs to be added to hierarchy in order for nested objects to be created correctly.
|
||||||
|
// setting zero alpha is supposed to prevent the test from looking broken.
|
||||||
|
hit.With(h => h.Alpha = 0),
|
||||||
new HitExplosion(hit, hit.Type)
|
new HitExplosion(hit, hit.Type)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
|
Loading…
Reference in New Issue
Block a user