Skip to content

Commit 141f2b2

Browse files
committed
修改 note 的 debug 元素显示逻辑
1 parent 8b94f5c commit 141f2b2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/chart/note.js

+13
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,19 @@ export default class Note
242242
this.debugSprite.position = this.sprite.position;
243243
this.debugSprite.angle = this.sprite.angle;
244244
this.debugSprite.alpha = 0.2 + (this.sprite.visible ? (this.sprite.alpha * 0.8) : 0);
245+
246+
if (this.time > currentTime)
247+
{
248+
if (!this.sprite.visible)
249+
{
250+
this.sprite.visible = true;
251+
this.sprite.alpha = 0.2;
252+
}
253+
else if (this.sprite.visible)
254+
{
255+
this.sprite.alpha = this.basicAlpha;
256+
}
257+
}
245258
}
246259
}
247260
}

0 commit comments

Comments
 (0)