add particle

This commit is contained in:
Vick Scarlet
2021-12-02 21:28:10 +08:00
parent f17003925e
commit 0567e40ddc
17 changed files with 80 additions and 24 deletions

View File

@@ -67,6 +67,7 @@ export default class CyberTrajectory extends ui.view.CyberTheme.CyberTrajectoryU
#talents;
init({propertyAllocate, talents}) {
this.boxParticle.visible = false;
this.boxSpeed.visible = true;
this.btnSummary.visible = false;
this.#trajectoryItems = [];
@@ -111,6 +112,9 @@ export default class CyberTrajectory extends ui.view.CyberTheme.CyberTrajectoryU
this.renderTrajectory(age, content);
if(age >= 100) {
this.boxParticle.visible = true;
}
Laya.timer.frameOnce(1, this, () => {
this.panelTrajectory.scrollTo(0, this.panelTrajectory.contentHeight);
});