mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-02-04 14:53:12 +08:00
add particle
This commit is contained in:
BIN
laya/assets/images/texture/texture_1.png
Normal file
BIN
laya/assets/images/texture/texture_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
1
laya/pages/particle/fly.part
Normal file
1
laya/pages/particle/fly.part
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"textureName":"images/texture/texture_1.png","positionVariance":{"0":0,"1":0,"2":0},"minVerticalVelocity":-100,"minVerticalEndRadian":0,"minStartSize":0,"minStartRadius":0,"minRotateSpeed":0,"minHorizontalVelocity":100,"minHorizontalEndRadian":0,"minEndSize":18.55,"minEndRadius":218.75,"minColor":{"0":0.15,"1":0.92,"2":0.91,"3":0.6000000238418579},"maxVerticalVelocity":100,"maxVerticalEndRadian":0,"maxStartSize":2.04,"maxStartRadius":0,"maxRotateSpeed":0,"maxPartices":400,"maxHorizontalVelocity":100,"maxHorizontalEndRadian":0,"maxEndSize":24.35,"maxEndRadius":84.82,"maxColor":{"0":0.57,"1":1,"2":0,"3":1},"gravity":{"0":0,"1":0,"2":0},"endVelocity":2,"emitterVelocitySensitivity":56.89,"duration":9.52,"colorComponentInter":true,"blendState":0,"ageAddScale":10,"backColor":"#ffffff","textureFileName":"comp\\clip_num.png","textureCount":1,"minHorizontalStartRadian":0,"maxHorizontalStartRadian":0,"minVerticalStartRadian":0,"maxVerticalStartRadian":0,"emitterType":"null","emissionRate":0,"sphereEmitterRadius":1,"sphereEmitterVelocity":0,"sphereEmitterVelocityAddVariance":0,"ringEmitterRadius":30,"ringEmitterVelocity":0,"ringEmitterVelocityAddVariance":0,"ringEmitterUp":2,"minStartColor":{"0":0.5,"1":0.5,"2":0.5,"3":0.2},"maxStartColor":{"0":1,"1":1,"2":1,"3":1},"minEndColor":{"0":0,"1":0,"2":0,"3":0.08},"maxEndColor":{"0":1,"1":1,"2":1,"3":1},"pointEmitterPosition":{"0":0,"1":0,"2":0},"pointEmitterPositionVariance":{"0":0,"1":0,"2":0},"pointEmitterVelocity":{"0":0,"1":0,"2":0},"pointEmitterVelocityAddVariance":{"0":0,"1":0,"2":0},"boxEmitterCenterPosition":{"0":0,"1":0,"2":0},"boxEmitterSize":{"0":0,"1":0,"2":0},"boxEmitterVelocity":{"0":0,"1":0,"2":0},"boxEmitterVelocityAddVariance":{"0":0,"1":0,"2":0},"sphereEmitterCenterPosition":{"0":0,"1":0,"2":0},"ringEmitterCenterPosition":{"0":0,"1":0,"2":0},"useEndRadian":true,"disableColor":false}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"x":0,
|
"x":0,
|
||||||
"type":"View",
|
"type":"View",
|
||||||
"selectedBox":14,
|
"selectedBox":1,
|
||||||
"selecteID":13,
|
"selecteID":152,
|
||||||
"props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberTrajectory.png","runtime":"Laya.runtime.ViewBase","height":2436},
|
"props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberTrajectory.png","runtime":"Laya.runtime.ViewBase","height":2436},
|
||||||
"nodeParent":-1,
|
"nodeParent":-1,
|
||||||
"label":"View",
|
"label":"View",
|
||||||
@@ -550,14 +550,13 @@
|
|||||||
"props":{"right":0,"left":0,"height":1,"bottom":-1},
|
"props":{"right":0,"left":0,"height":1,"bottom":-1},
|
||||||
"nodeParent":1,
|
"nodeParent":1,
|
||||||
"label":"Box",
|
"label":"Box",
|
||||||
"isOpen":true,
|
"isOpen":false,
|
||||||
"isDirectory":true,
|
"isDirectory":true,
|
||||||
"isAniNode":true,
|
"isAniNode":true,
|
||||||
"hasChild":true,
|
"hasChild":true,
|
||||||
"compId":14,
|
"compId":14,
|
||||||
"child":[
|
"child":[
|
||||||
{
|
{
|
||||||
"x":30,
|
|
||||||
"type":"Button",
|
"type":"Button",
|
||||||
"props":{"y":-155,"width":500,"var":"btnSummary","skin":"images/button/button_main@3x.png","name":"btnSummary","label":"UI_Goto_Summary","centerX":0},
|
"props":{"y":-155,"width":500,"var":"btnSummary","skin":"images/button/button_main@3x.png","name":"btnSummary","label":"UI_Goto_Summary","centerX":0},
|
||||||
"nodeParent":14,
|
"nodeParent":14,
|
||||||
@@ -569,7 +568,6 @@
|
|||||||
"compId":13,
|
"compId":13,
|
||||||
"child":[
|
"child":[
|
||||||
{
|
{
|
||||||
"x":45,
|
|
||||||
"type":"Box",
|
"type":"Box",
|
||||||
"props":{},
|
"props":{},
|
||||||
"nodeParent":13,
|
"nodeParent":13,
|
||||||
@@ -750,7 +748,6 @@
|
|||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":45,
|
|
||||||
"type":"Box",
|
"type":"Box",
|
||||||
"props":{},
|
"props":{},
|
||||||
"nodeParent":13,
|
"nodeParent":13,
|
||||||
@@ -824,7 +821,6 @@
|
|||||||
"$HIDDEN":false
|
"$HIDDEN":false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":30,
|
|
||||||
"type":"Box",
|
"type":"Box",
|
||||||
"props":{"y":-155,"var":"boxSpeed","right":100,"name":"boxSpeed","left":100,"height":150,"anchorY":0.5,"anchorX":0.5},
|
"props":{"y":-155,"var":"boxSpeed","right":100,"name":"boxSpeed","left":100,"height":150,"anchorY":0.5,"anchorX":0.5},
|
||||||
"nodeParent":14,
|
"nodeParent":14,
|
||||||
@@ -836,7 +832,6 @@
|
|||||||
"compId":104,
|
"compId":104,
|
||||||
"child":[
|
"child":[
|
||||||
{
|
{
|
||||||
"x":45,
|
|
||||||
"type":"ProgressBar",
|
"type":"ProgressBar",
|
||||||
"props":{"var":"prgSpeed","skin":"images/progress/progress_s.png","right":0,"name":"prgSpeed","left":0,"bottom":0},
|
"props":{"var":"prgSpeed","skin":"images/progress/progress_s.png","right":0,"name":"prgSpeed","left":0,"bottom":0},
|
||||||
"nodeParent":104,
|
"nodeParent":104,
|
||||||
@@ -849,7 +844,6 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":45,
|
|
||||||
"type":"HScrollBar",
|
"type":"HScrollBar",
|
||||||
"props":{"var":"scbSpeed","skin":"images/slider/hslider_s.png","right":0,"name":"scbSpeed","min":0,"max":1000,"left":0,"height":60,"bottom":0},
|
"props":{"var":"scbSpeed","skin":"images/slider/hslider_s.png","right":0,"name":"scbSpeed","min":0,"max":1000,"left":0,"height":60,"bottom":0},
|
||||||
"nodeParent":104,
|
"nodeParent":104,
|
||||||
@@ -862,7 +856,6 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":45,
|
|
||||||
"type":"Label",
|
"type":"Label",
|
||||||
"props":{"text":"UI_Manual","fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70},
|
"props":{"text":"UI_Manual","fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70},
|
||||||
"nodeParent":104,
|
"nodeParent":104,
|
||||||
@@ -875,7 +868,6 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":45,
|
|
||||||
"type":"Label",
|
"type":"Label",
|
||||||
"props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70},
|
"props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70},
|
||||||
"nodeParent":104,
|
"nodeParent":104,
|
||||||
@@ -897,14 +889,13 @@
|
|||||||
"props":{"top":440,"right":20,"left":20,"bottom":250},
|
"props":{"top":440,"right":20,"left":20,"bottom":250},
|
||||||
"nodeParent":1,
|
"nodeParent":1,
|
||||||
"label":"Box",
|
"label":"Box",
|
||||||
"isOpen":true,
|
"isOpen":false,
|
||||||
"isDirectory":true,
|
"isDirectory":true,
|
||||||
"isAniNode":true,
|
"isAniNode":true,
|
||||||
"hasChild":true,
|
"hasChild":true,
|
||||||
"compId":102,
|
"compId":102,
|
||||||
"child":[
|
"child":[
|
||||||
{
|
{
|
||||||
"x":30,
|
|
||||||
"type":"Image",
|
"type":"Image",
|
||||||
"props":{"top":0,"skin":"images/border/border_1@3x.png","right":0,"left":0,"bottom":0},
|
"props":{"top":0,"skin":"images/border/border_1@3x.png","right":0,"left":0,"bottom":0},
|
||||||
"nodeParent":102,
|
"nodeParent":102,
|
||||||
@@ -917,7 +908,6 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":30,
|
|
||||||
"type":"Panel",
|
"type":"Panel",
|
||||||
"props":{"var":"panelTrajectory","vScrollBarSkin":"images/slider/vslider_1@3x.png","top":80,"right":20,"name":"panelTrajectory","left":0,"bottom":80},
|
"props":{"var":"panelTrajectory","vScrollBarSkin":"images/slider/vslider_1@3x.png","top":80,"right":20,"name":"panelTrajectory","left":0,"bottom":80},
|
||||||
"nodeParent":102,
|
"nodeParent":102,
|
||||||
@@ -929,7 +919,6 @@
|
|||||||
"compId":18,
|
"compId":18,
|
||||||
"child":[
|
"child":[
|
||||||
{
|
{
|
||||||
"x":45,
|
|
||||||
"type":"VBox",
|
"type":"VBox",
|
||||||
"props":{"var":"vboxTrajectory","top":0,"right":40,"name":"vboxTrajectory","left":20},
|
"props":{"var":"vboxTrajectory","top":0,"right":40,"name":"vboxTrajectory","left":20},
|
||||||
"nodeParent":18,
|
"nodeParent":18,
|
||||||
@@ -1016,7 +1005,6 @@
|
|||||||
"$HIDDEN":false
|
"$HIDDEN":false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":30,
|
|
||||||
"type":"Box",
|
"type":"Box",
|
||||||
"props":{"y":20,"x":20,"var":"btnUp","top":20,"right":20,"name":"btnUp","left":20,"height":50},
|
"props":{"y":20,"x":20,"var":"btnUp","top":20,"right":20,"name":"btnUp","left":20,"height":50},
|
||||||
"nodeParent":102,
|
"nodeParent":102,
|
||||||
@@ -1065,7 +1053,6 @@
|
|||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"x":30,
|
|
||||||
"type":"Box",
|
"type":"Box",
|
||||||
"props":{"y":1676,"x":20,"var":"btnDown","right":20,"name":"btnDown","left":20,"height":50,"bottom":20},
|
"props":{"y":1676,"x":20,"var":"btnDown","right":20,"name":"btnDown","left":20,"height":50,"bottom":20},
|
||||||
"nodeParent":102,
|
"nodeParent":102,
|
||||||
@@ -1113,6 +1100,32 @@
|
|||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x":15,
|
||||||
|
"type":"Box",
|
||||||
|
"props":{"width":10,"var":"boxParticle","name":"boxParticle","height":10,"centerY":0,"centerX":0},
|
||||||
|
"nodeParent":1,
|
||||||
|
"label":"Box(boxParticle)",
|
||||||
|
"isOpen":false,
|
||||||
|
"isDirectory":true,
|
||||||
|
"isAniNode":true,
|
||||||
|
"hasChild":true,
|
||||||
|
"compId":152,
|
||||||
|
"child":[
|
||||||
|
{
|
||||||
|
"type":"Particle2D",
|
||||||
|
"source":"particle/fly.part",
|
||||||
|
"props":{"y":5,"x":5,"url":"particle/fly.part","autoPlay":true},
|
||||||
|
"nodeParent":152,
|
||||||
|
"label":"Particle2D",
|
||||||
|
"isDirectory":false,
|
||||||
|
"isAniNode":true,
|
||||||
|
"hasChild":false,
|
||||||
|
"compId":151,
|
||||||
|
"child":[
|
||||||
|
]
|
||||||
|
}]
|
||||||
}],
|
}],
|
||||||
"animations":[
|
"animations":[
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"x":0,
|
"x":0,
|
||||||
"type":"View",
|
"type":"View",
|
||||||
"selectedBox":1,
|
"selectedBox":1,
|
||||||
"selecteID":102,
|
"selecteID":153,
|
||||||
"props":{"width":1125,"sceneColor":"#000000","runtime":"Laya.runtime.ViewBase","height":2436},
|
"props":{"width":1125,"sceneColor":"#000000","runtime":"Laya.runtime.ViewBase","height":2436},
|
||||||
"nodeParent":-1,
|
"nodeParent":-1,
|
||||||
"label":"View",
|
"label":"View",
|
||||||
@@ -501,6 +501,32 @@
|
|||||||
}],
|
}],
|
||||||
"$LOCKED":true,
|
"$LOCKED":true,
|
||||||
"$HIDDEN":false
|
"$HIDDEN":false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x":15,
|
||||||
|
"type":"Box",
|
||||||
|
"props":{"width":10,"var":"boxParticle","name":"boxParticle","height":10,"centerY":0,"centerX":0},
|
||||||
|
"nodeParent":1,
|
||||||
|
"label":"Box(boxParticle)",
|
||||||
|
"isOpen":false,
|
||||||
|
"isDirectory":true,
|
||||||
|
"isAniNode":true,
|
||||||
|
"hasChild":true,
|
||||||
|
"compId":153,
|
||||||
|
"child":[
|
||||||
|
{
|
||||||
|
"type":"Particle2D",
|
||||||
|
"source":"particle/fly.part",
|
||||||
|
"props":{"y":5,"x":5,"url":"particle/fly.part","autoPlay":true},
|
||||||
|
"nodeParent":153,
|
||||||
|
"label":"Particle2D",
|
||||||
|
"isDirectory":false,
|
||||||
|
"isAniNode":true,
|
||||||
|
"hasChild":false,
|
||||||
|
"compId":154,
|
||||||
|
"child":[
|
||||||
|
]
|
||||||
|
}]
|
||||||
}],
|
}],
|
||||||
"animations":[
|
"animations":[
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
public/chunk/764.ad9c2.js
Normal file
1
public/chunk/764.ad9c2.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -65,3 +65,5 @@ R 8B95E6D3 vslider_1@3x$bar.png
|
|||||||
P 6581FBA8 vslider_1@3x$down.png
|
P 6581FBA8 vslider_1@3x$down.png
|
||||||
P 6581FBA8 vslider_1@3x$up.png
|
P 6581FBA8 vslider_1@3x$up.png
|
||||||
R C9587878 vslider_1@3x.png
|
R C9587878 vslider_1@3x.png
|
||||||
|
D images/texture
|
||||||
|
P FD231754 texture_1.png
|
||||||
|
|||||||
1
public/images/atlas/images/texture.atlas
Normal file
1
public/images/atlas/images/texture.atlas
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"frames":{"texture_1.png":{"frame":{"h":400,"idx":0,"w":400,"x":0,"y":0},"sourceSize":{"h":400,"w":400},"spriteSourceSize":{"x":0,"y":0}}},"meta":{"image":"texture.png","prefix":"images/texture/"}}
|
||||||
BIN
public/images/atlas/images/texture.png
Normal file
BIN
public/images/atlas/images/texture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
BIN
public/images/texture/texture_1.png
Normal file
BIN
public/images/texture/texture_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
@@ -1 +1 @@
|
|||||||
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"><meta name="description" content="やり直すんだ。そして、次はうまくやる。"/><meta name="keywords" content="人生重开模拟器 liferestart life restart remake 人生重来"/><meta name="renderer" content="webkit"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="full-screen" content="true"/><meta name="x5-fullscreen" content="true"/><meta name="360-fullscreen" content="true"/><meta name="theme-color" content="#157878"/><meta name="laya" screenorientation="landscape"/><meta http-equiv="expires" content="0"/><meta http-equiv="Cache-Control" content="no-siteapp"/><title>Life Restart</title><script src="libs/laya/min/laya.core.min.js"></script><script src="libs/laya/min/laya.webgl.min.js"></script><script src="libs/laya/min/laya.filter.min.js"></script><script src="libs/laya/min/laya.particle.min.js"></script><script src="libs/laya/min/laya.ui.min.js"></script><script defer="defer" src="chunk/main.bc346.js"></script></head><body style="background:black"></body></html>
|
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"><meta name="description" content="やり直すんだ。そして、次はうまくやる。"/><meta name="keywords" content="人生重开模拟器 liferestart life restart remake 人生重来"/><meta name="renderer" content="webkit"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="full-screen" content="true"/><meta name="x5-fullscreen" content="true"/><meta name="360-fullscreen" content="true"/><meta name="theme-color" content="#157878"/><meta name="laya" screenorientation="landscape"/><meta http-equiv="expires" content="0"/><meta http-equiv="Cache-Control" content="no-siteapp"/><title>Life Restart</title><script src="libs/laya/min/laya.core.min.js"></script><script src="libs/laya/min/laya.webgl.min.js"></script><script src="libs/laya/min/laya.filter.min.js"></script><script src="libs/laya/min/laya.particle.min.js"></script><script src="libs/laya/min/laya.ui.min.js"></script><script defer="defer" src="chunk/main.09389.js"></script></head><body style="background:black"></body></html>
|
||||||
1
public/particle/fly.part
Normal file
1
public/particle/fly.part
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"textureName":"images/texture/texture_1.png","positionVariance":{"0":0,"1":0,"2":0},"minVerticalVelocity":-100,"minVerticalEndRadian":0,"minStartSize":0,"minStartRadius":0,"minRotateSpeed":0,"minHorizontalVelocity":100,"minHorizontalEndRadian":0,"minEndSize":18.55,"minEndRadius":218.75,"minColor":{"0":0.15,"1":0.92,"2":0.91,"3":0.6000000238418579},"maxVerticalVelocity":100,"maxVerticalEndRadian":0,"maxStartSize":2.04,"maxStartRadius":0,"maxRotateSpeed":0,"maxPartices":400,"maxHorizontalVelocity":100,"maxHorizontalEndRadian":0,"maxEndSize":24.35,"maxEndRadius":84.82,"maxColor":{"0":0.57,"1":1,"2":0,"3":1},"gravity":{"0":0,"1":0,"2":0},"endVelocity":2,"emitterVelocitySensitivity":56.89,"duration":9.52,"colorComponentInter":true,"blendState":0,"ageAddScale":10,"backColor":"#ffffff","textureFileName":"comp\\clip_num.png","textureCount":1,"minHorizontalStartRadian":0,"maxHorizontalStartRadian":0,"minVerticalStartRadian":0,"maxVerticalStartRadian":0,"emitterType":"null","emissionRate":0,"sphereEmitterRadius":1,"sphereEmitterVelocity":0,"sphereEmitterVelocityAddVariance":0,"ringEmitterRadius":30,"ringEmitterVelocity":0,"ringEmitterVelocityAddVariance":0,"ringEmitterUp":2,"minStartColor":{"0":0.5,"1":0.5,"2":0.5,"3":0.2},"maxStartColor":{"0":1,"1":1,"2":1,"3":1},"minEndColor":{"0":0,"1":0,"2":0,"3":0.08},"maxEndColor":{"0":1,"1":1,"2":1,"3":1},"pointEmitterPosition":{"0":0,"1":0,"2":0},"pointEmitterPositionVariance":{"0":0,"1":0,"2":0},"pointEmitterVelocity":{"0":0,"1":0,"2":0},"pointEmitterVelocityAddVariance":{"0":0,"1":0,"2":0},"boxEmitterCenterPosition":{"0":0,"1":0,"2":0},"boxEmitterSize":{"0":0,"1":0,"2":0},"boxEmitterVelocity":{"0":0,"1":0,"2":0},"boxEmitterVelocityAddVariance":{"0":0,"1":0,"2":0},"sphereEmitterCenterPosition":{"0":0,"1":0,"2":0},"ringEmitterCenterPosition":{"0":0,"1":0,"2":0},"useEndRadian":true,"disableColor":false}
|
||||||
File diff suppressed because one or more lines are too long
@@ -67,6 +67,7 @@ export default class CyberTrajectory extends ui.view.CyberTheme.CyberTrajectoryU
|
|||||||
#talents;
|
#talents;
|
||||||
|
|
||||||
init({propertyAllocate, talents}) {
|
init({propertyAllocate, talents}) {
|
||||||
|
this.boxParticle.visible = false;
|
||||||
this.boxSpeed.visible = true;
|
this.boxSpeed.visible = true;
|
||||||
this.btnSummary.visible = false;
|
this.btnSummary.visible = false;
|
||||||
this.#trajectoryItems = [];
|
this.#trajectoryItems = [];
|
||||||
@@ -111,6 +112,9 @@ export default class CyberTrajectory extends ui.view.CyberTheme.CyberTrajectoryU
|
|||||||
|
|
||||||
this.renderTrajectory(age, content);
|
this.renderTrajectory(age, content);
|
||||||
|
|
||||||
|
if(age >= 100) {
|
||||||
|
this.boxParticle.visible = true;
|
||||||
|
}
|
||||||
Laya.timer.frameOnce(1, this, () => {
|
Laya.timer.frameOnce(1, this, () => {
|
||||||
this.panelTrajectory.scrollTo(0, this.panelTrajectory.contentHeight);
|
this.panelTrajectory.scrollTo(0, this.panelTrajectory.contentHeight);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ export default class Trajectory extends ui.view.DefaultTheme.TrajectoryUI {
|
|||||||
#talents;
|
#talents;
|
||||||
|
|
||||||
init({propertyAllocate, talents}) {
|
init({propertyAllocate, talents}) {
|
||||||
|
this.boxParticle.visible = false;
|
||||||
this.boxSpeed.visible = true;
|
this.boxSpeed.visible = true;
|
||||||
this.btnSummary.visible = false;
|
this.btnSummary.visible = false;
|
||||||
this.#trajectoryItems = [];
|
this.#trajectoryItems = [];
|
||||||
@@ -88,6 +89,9 @@ export default class Trajectory extends ui.view.DefaultTheme.TrajectoryUI {
|
|||||||
|
|
||||||
this.renderTrajectory(age, content);
|
this.renderTrajectory(age, content);
|
||||||
|
|
||||||
|
if(age >= 100) {
|
||||||
|
this.boxParticle.visible = true;
|
||||||
|
}
|
||||||
Laya.timer.frameOnce(1, this, () => {
|
Laya.timer.frameOnce(1, this, () => {
|
||||||
this.panelTrajectory.scrollTo(0, this.panelTrajectory.contentHeight);
|
this.panelTrajectory.scrollTo(0, this.panelTrajectory.contentHeight);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user