Deploying to gh-pages from @ VickScarlet/lifeRestart@03bcb19942 🚀

This commit is contained in:
VickScarlet
2026-06-29 07:00:16 +00:00
parent 3b37b960fa
commit 9e27a3c562
34 changed files with 9 additions and 9 deletions
-1
View File
@@ -1 +0,0 @@
var e=class extends ui.view.CyberTheme.CyberAchievementUI{constructor(){super(),this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN)),this.#e={min:Math.min(this.btnAchievement.fontSize,this.btnStatistics.fontSize),max:Math.max(this.btnAchievement.fontSize,this.btnStatistics.fontSize)},this.btnStatistics.on(Laya.Event.CLICK,this,()=>this.switch(`statistics`)),this.btnAchievement.on(Laya.Event.CLICK,this,()=>this.switch(`achievement`)),this.btnRank.on(Laya.Event.CLICK,this,$$event,[`message`,[`M_NoRank`]]),this.listAchievements.renderHandler=new Laya.Handler(this,this.onRenderAchievement),this.listAchievements.scrollBar.elasticDistance=150,this.on(Laya.Event.RESIZE,this,()=>{this.boxPage.width=2*this.width,this.boxA.width=this.boxB.width=this.width,this.boxPage.x<0&&(this.boxPage.x=-this.width);let e=this.listAchievements?._itemRender?.props?.width;if(e){let t=Math.max(Math.floor((this.width-65)/e),1);this.listAchievements.width=t*e+(t-1)*(this.listAchievements.spaceY||0)+30}})}#e;#t;init(){this.switch(`statistics`,0);let{statistics:e,achievements:t,PropertyTypes:n}=core;this.listAchievements.array=t,this.labRemakeTimes.text=e[n.TMS].value,this.labRemakeTimesJudge.text=e[n.TMS].judge,this.labAchievementCountJudge.color=$ui.common.grade[e[n.TMS].grade],this.labAchievementCount.text=e[n.CACHV].value,this.labAchievementCountJudge.text=e[n.CACHV].judge,this.labAchievementCountJudge.color=$ui.common.grade[e[n.CACHV].grade],this.labEventRate.text=parseInt(e[n.REVT].value*100)+`%`,this.prgEventRate.value=e[n.REVT].value,this.labTalentRate.text=parseInt(e[n.RTLT].value*100)+`%`,this.prgTalentRate.value=e[n.RTLT].value}switch(e,t=300){switch(this.#t&&this.#t.forEach(e=>Laya.Tween.clear(e)),this.#t=[],e){case`statistics`:t=-this.boxPage.x/this.width*t,this.#t.push(Laya.Tween.to(this.boxPage,{x:0},t,Laya.Ease.backOut,Laya.Handler.create(this,()=>this.#t=null)),Laya.Tween.to(this.btnStatistics,{fontSize:this.#e.max,anchorX:.5,anchorY:1},t,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:this.#e.min,anchorX:.5,anchorY:1},t,Laya.Ease.backOut));break;case`achievement`:t=(this.width+this.boxPage.x)/this.width*t,this.#t.push(Laya.Tween.to(this.boxPage,{x:-this.width},t,Laya.Ease.backOut,Laya.Handler.create(this,()=>this.#t=null)),Laya.Tween.to(this.btnStatistics,{fontSize:this.#e.min,anchorX:.5,anchorY:1},t,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:this.#e.max,anchorX:.5,anchorY:1},t,Laya.Ease.backOut));break}}onRenderAchievement(e,t){let n=e.dataSource,r=e.getChildByName(`name`),i=e.getChildByName(`description`),a=e.getChildByName(`completed`),o=e.getChildByName(`uncomplete`);n.isAchieved?(r.text=n.name,i.text=n.description,a.visible=!0,o.visible=!1):(r.text=n.hide?`???`:n.name,i.text=n.hide?`???`:n.description,a.visible=!1,o.visible=!0),e.colorFilter=$ui.gradeFilter(n.grade)}};export{e as default};
+1
View File
@@ -0,0 +1 @@
var e=class extends ui.view.CyberTheme.CyberAchievementUI{constructor(){super(),this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN));let e=Math.min(this.btnAchievement.fontSize,this.btnStatistics.fontSize),t=Math.max(this.btnAchievement.fontSize,this.btnStatistics.fontSize);this.#e={min:e,max:t},this.btnStatistics.on(Laya.Event.CLICK,this,()=>this.switch(`statistics`)),this.btnAchievement.on(Laya.Event.CLICK,this,()=>this.switch(`achievement`)),this.btnRank.on(Laya.Event.CLICK,this,$$event,[`message`,[`M_NoRank`]]),this.listAchievements.renderHandler=new Laya.Handler(this,this.onRenderAchievement),this.listAchievements.scrollBar.elasticDistance=150,this.on(Laya.Event.RESIZE,this,()=>{this.boxPage.width=2*this.width,this.boxA.width=this.boxB.width=this.width,this.boxPage.x<0&&(this.boxPage.x=-this.width);let e=this.listAchievements?._itemRender?.props?.width;if(e){let t=Math.max(Math.floor((this.width-65)/e),1);this.listAchievements.width=t*e+(t-1)*(this.listAchievements.spaceY||0)+30}})}#e;#t;init(){this.switch(`statistics`,0);let{statistics:e,achievements:t,PropertyTypes:n}=core;this.listAchievements.array=t,this.labRemakeTimes.text=e[n.TMS].value,this.labRemakeTimesJudge.text=e[n.TMS].judge,this.labAchievementCountJudge.color=$ui.common.grade[e[n.TMS].grade],this.labAchievementCount.text=e[n.CACHV].value,this.labAchievementCountJudge.text=e[n.CACHV].judge,this.labAchievementCountJudge.color=$ui.common.grade[e[n.CACHV].grade],this.labEventRate.text=parseInt(e[n.REVT].value*100)+`%`,this.prgEventRate.value=e[n.REVT].value,this.labTalentRate.text=parseInt(e[n.RTLT].value*100)+`%`,this.prgTalentRate.value=e[n.RTLT].value}switch(e,t=300){switch(this.#t&&this.#t.forEach(e=>Laya.Tween.clear(e)),this.#t=[],e){case`statistics`:t=-this.boxPage.x/this.width*t,this.#t.push(Laya.Tween.to(this.boxPage,{x:0},t,Laya.Ease.backOut,Laya.Handler.create(this,()=>this.#t=null)),Laya.Tween.to(this.btnStatistics,{fontSize:this.#e.max,anchorX:.5,anchorY:1},t,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:this.#e.min,anchorX:.5,anchorY:1},t,Laya.Ease.backOut));break;case`achievement`:t=(this.width+this.boxPage.x)/this.width*t,this.#t.push(Laya.Tween.to(this.boxPage,{x:-this.width},t,Laya.Ease.backOut,Laya.Handler.create(this,()=>this.#t=null)),Laya.Tween.to(this.btnStatistics,{fontSize:this.#e.min,anchorX:.5,anchorY:1},t,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:this.#e.max,anchorX:.5,anchorY:1},t,Laya.Ease.backOut));break}}onRenderAchievement(e,t){let n=e.dataSource,r=e.getChildByName(`name`),i=e.getChildByName(`description`),a=e.getChildByName(`completed`),o=e.getChildByName(`uncomplete`);n.isAchieved?(r.text=n.name,i.text=n.description,a.visible=!0,o.visible=!1):(r.text=n.hide?`???`:n.name,i.text=n.hide?`???`:n.description,a.visible=!1,o.visible=!0),e.colorFilter=$ui.gradeFilter(n.grade)}};export{e as default};
+1
View File
@@ -0,0 +1 @@
var e=class e extends ui.view.DefaultTheme.CelebrityUI{constructor(){super(),this.btnRetry.on(Laya.Event.CLICK,this,()=>this.random()),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.panelCharacter.vScrollBar.elasticDistance=150}#e;static#t=Laya.plugin.extractComponents(e.uiView,[`boxCharacter`,`boxTalent`,`boxUniqueUnGenerate`]);#n(t,n){let{name:r,property:i,talent:a}=t,o=$ui.common.characterItem,s=e.#t(`boxCharacter`),c=s.getChildByName(`vboxStates`),l=s.getChildByName(`boxName`);l.label=r;let u=$_.clone(i);for(let e in u)Math.abs(u[e]-Math.PI)<1e-7&&(u[e]=`π`);c.label=$_.format($lang.F_PropertyStr,u),$_.deepMapSet(l,o.name),$_.deepMapSet(c,o.state);for(let t of a){let n=e.#t(`boxTalent`);n.label=$_.format($lang.F_TalentSelection,t),n.y=c.height+c.space,$_.deepMapSet(n,$ui.common.card[t.grade].normal),c.addChild(n)}let d=new Laya.Box;return d.height=c.space,d.y=c.height,c.addChild(d),c.scaleY=0,s.dataSource=t,s.switch=e=>c.scaleY=+!!e,s.click=(e,t)=>{l.offAll(Laya.Event.CLICK),l.on(Laya.Event.CLICK,t||this,e)},n&&s.click(n),s}#r(t){let n=$ui.common.characterItem,r=e.#t(`boxUniqueUnGenerate`),i=r.getChildByName(`boxName`),a=r.getChildByName(`vboxStates`),o=a.getChildByName(`label`),s=a.getChildByName(`boxBtn`),c=s.getChildByName(`btn`);return $_.deepMapSet(i,n.name),$_.deepMapSet(a,n.state),$_.deepMapSet(c,n.name),s.y=o.height+a.space,o.event(Laya.Event.RESIZE),a.scaleY=0,r.dataSource=!1,r.switch=e=>a.scaleY=+!!e,r.click=(e,t)=>{i.offAll(Laya.Event.CLICK),i.on(Laya.Event.CLICK,t||this,e)},r.generate=(e,t)=>{c.offAll(Laya.Event.CLICK),c.on(Laya.Event.CLICK,t||this,e)},t&&r.generate(t),r}init(){this.random()}close(){this.#e=null,this.vboxCharacter.destroyChildren(!0)}random(e){this.#e=null,this.vboxCharacter.destroyChildren(!0);let{unique:t,normal:n}=core.characterRandom(),r=[],i=this.generateUnique(t,()=>{core.generateUnique(),this.random(n)});i&&r.push(i),(e||n).forEach(e=>r.push(this.#n(e))),r.forEach((e,t)=>{e.y=t,this.vboxCharacter.addChild(e),e.click(()=>{this.#e&&this.#e.switch(!1),this.#e=e,e.switch(!0),e.event(Laya.Event.RESIZE)})}),e&&i&&(this.#e=i,i.switch(!0),i.event(Laya.Event.RESIZE))}generateUnique(e,t){return e?e.generate?(e.name=$lang.UI_UniqueWaTaShi,this.#n(e)):this.#r(t):null}next(){if(!this.#e)return $$event(`message`,[`M_PleaseSelectOne`]);if(!this.#e.dataSource)return $$event(`message`,[`M_UnGenerate`]);let{property:e,talent:t}=this.#e.dataSource,n=core.remake(t.map(e=>e.id));n.length>0&&$$event(`message`,[n.map(e=>[`F_TalentReplace`,e])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:e,talents:t,enableExtend:!1})}};export{e as default};
-1
View File
@@ -1 +0,0 @@
var e=class e extends ui.view.DefaultTheme.CelebrityUI{constructor(){super(),this.btnRetry.on(Laya.Event.CLICK,this,()=>this.random()),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.panelCharacter.vScrollBar.elasticDistance=150}#e;static#t=Laya.plugin.extractComponents(e.uiView,[`boxCharacter`,`boxTalent`,`boxUniqueUnGenerate`]);#n(t,n){let{name:r,property:i,talent:a}=t,o=$ui.common.characterItem,s=e.#t(`boxCharacter`),c=s.getChildByName(`vboxStates`),l=s.getChildByName(`boxName`);l.label=r;let u=$_.clone(i);for(let e in u)Math.abs(u[e]-Math.PI)<1e-7&&(u[e]=`π`);c.label=$_.format($lang.F_PropertyStr,u),$_.deepMapSet(l,o.name),$_.deepMapSet(c,o.state);for(let t of a){let n=e.#t(`boxTalent`);n.label=$_.format($lang.F_TalentSelection,t),n.y=c.height+c.space,$_.deepMapSet(n,$ui.common.card[t.grade].normal),c.addChild(n)}let d=new Laya.Box;return d.height=c.space,d.y=c.height,c.addChild(d),c.scaleY=0,s.dataSource=t,s.switch=e=>c.scaleY=e?1:0,s.click=(e,t)=>{l.offAll(Laya.Event.CLICK),l.on(Laya.Event.CLICK,t||this,e)},n&&s.click(n),s}#r(t){let n=$ui.common.characterItem,r=e.#t(`boxUniqueUnGenerate`),i=r.getChildByName(`boxName`),a=r.getChildByName(`vboxStates`),o=a.getChildByName(`label`),s=a.getChildByName(`boxBtn`),c=s.getChildByName(`btn`);return $_.deepMapSet(i,n.name),$_.deepMapSet(a,n.state),$_.deepMapSet(c,n.name),s.y=o.height+a.space,o.event(Laya.Event.RESIZE),a.scaleY=0,r.dataSource=!1,r.switch=e=>a.scaleY=e?1:0,r.click=(e,t)=>{i.offAll(Laya.Event.CLICK),i.on(Laya.Event.CLICK,t||this,e)},r.generate=(e,t)=>{c.offAll(Laya.Event.CLICK),c.on(Laya.Event.CLICK,t||this,e)},t&&r.generate(t),r}init(){this.random()}close(){this.#e=null,this.vboxCharacter.destroyChildren(!0)}random(e){this.#e=null,this.vboxCharacter.destroyChildren(!0);let{unique:t,normal:n}=core.characterRandom(),r=[],i=this.generateUnique(t,()=>{core.generateUnique(),this.random(n)});i&&r.push(i),(e||n).forEach(e=>r.push(this.#n(e))),r.forEach((e,t)=>{e.y=t,this.vboxCharacter.addChild(e),e.click(()=>{this.#e&&this.#e.switch(!1),this.#e=e,e.switch(!0),e.event(Laya.Event.RESIZE)})}),e&&i&&(this.#e=i,i.switch(!0),i.event(Laya.Event.RESIZE))}generateUnique(e,t){return e?e.generate?(e.name=$lang.UI_UniqueWaTaShi,this.#n(e)):this.#r(t):null}next(){if(!this.#e)return $$event(`message`,[`M_PleaseSelectOne`]);if(!this.#e.dataSource)return $$event(`message`,[`M_UnGenerate`]);let{property:e,talent:t}=this.#e.dataSource,n=core.remake(t.map(e=>e.id));n.length>0&&$$event(`message`,[n.map(e=>[`F_TalentReplace`,e])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:e,talents:t,enableExtend:!1})}};export{e as default};
+1
View File
@@ -0,0 +1 @@
var e=class e extends ui.view.CyberTheme.CelebrityUI{constructor(){super(),this.btnRetry.on(Laya.Event.CLICK,this,()=>this.random()),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.panelCharacter.vScrollBar.elasticDistance=150}#e;static#t=Laya.plugin.extractComponents(e.uiView,[`boxCharacter`,`boxTalent`,`boxUniqueUnGenerate`]);#n(t,n){let{name:r,property:i,talent:a}=t,o=e.#t(`boxCharacter`),s=o.getChildByName(`vboxStates`),c=o.getChildByName(`boxName`);c.getChildByName(`label`).text=r;let l=$_.clone(i);for(let e in l)Math.abs(l[e]-Math.PI)<1e-7&&(l[e]=`π`);s.getChildByName(`label`).text=$_.format($lang.F_PropertyStr,l);for(let t of a){let n=e.#t(`boxTalent`);n.getChildByName(`label`).text=$_.format($lang.F_TalentSelection,t),n.y=s.height+s.space;let r=n.getChildByName(`grade${t.grade}`);r&&(r.visible=!0),s.addChild(n)}let u=new Laya.Box;return u.height=s.space,u.y=s.height,s.addChild(u),s.scaleY=0,o.dataSource=t,o.switch=e=>s.scaleY=+!!e,o.click=(e,t)=>{c.offAll(Laya.Event.CLICK),c.on(Laya.Event.CLICK,t||this,e)},n&&o.click(n),o}#r(t){let n=e.#t(`boxUniqueUnGenerate`),r=n.getChildByName(`boxName`),i=n.getChildByName(`vboxStates`),a=i.getChildByName(`label`),o=i.getChildByName(`boxBtn`).getChildByName(`btn`);return a.event(Laya.Event.RESIZE),i.scaleY=0,n.dataSource=!1,n.switch=e=>i.scaleY=+!!e,n.click=(e,t)=>{r.offAll(Laya.Event.CLICK),r.on(Laya.Event.CLICK,t||this,e)},n.generate=(e,t)=>{o.offAll(Laya.Event.CLICK),o.on(Laya.Event.CLICK,t||this,e)},t&&n.generate(t),n}init(){this.random()}close(){this.#e=null,this.vboxCharacter.destroyChildren(!0)}random(e){this.#e=null,this.vboxCharacter.destroyChildren(!0);let{unique:t,normal:n}=core.characterRandom(),r=[],i=this.generateUnique(t,()=>{core.generateUnique(),this.random(n)});i&&r.push(i),(e||n).forEach(e=>r.push(this.#n(e))),r.forEach((e,t)=>{e.y=t,this.vboxCharacter.addChild(e),e.click(()=>{this.#e&&this.#e.switch(!1),this.#e=e,e.switch(!0),e.event(Laya.Event.RESIZE)})}),e&&i&&(this.#e=i,i.switch(!0),i.event(Laya.Event.RESIZE))}generateUnique(e,t){return e?e.generate?(e.name=$lang.UI_UniqueWaTaShi,this.#n(e)):this.#r(t):null}next(){if(!this.#e)return $$event(`message`,[`M_PleaseSelectOne`]);if(!this.#e.dataSource)return $$event(`message`,[`M_UnGenerate`]);let{property:e,talent:t}=this.#e.dataSource,n=core.remake(t.map(e=>e.id));n.length>0&&$$event(`message`,[n.map(e=>[`F_TalentReplace`,e])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:e,talents:t,enableExtend:!1})}};export{e as default};
-1
View File
@@ -1 +0,0 @@
var e=class e extends ui.view.CyberTheme.CelebrityUI{constructor(){super(),this.btnRetry.on(Laya.Event.CLICK,this,()=>this.random()),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.panelCharacter.vScrollBar.elasticDistance=150}#e;static#t=Laya.plugin.extractComponents(e.uiView,[`boxCharacter`,`boxTalent`,`boxUniqueUnGenerate`]);#n(t,n){let{name:r,property:i,talent:a}=t,o=e.#t(`boxCharacter`),s=o.getChildByName(`vboxStates`),c=o.getChildByName(`boxName`);c.getChildByName(`label`).text=r;let l=$_.clone(i);for(let e in l)Math.abs(l[e]-Math.PI)<1e-7&&(l[e]=`π`);s.getChildByName(`label`).text=$_.format($lang.F_PropertyStr,l);for(let t of a){let n=e.#t(`boxTalent`);n.getChildByName(`label`).text=$_.format($lang.F_TalentSelection,t),n.y=s.height+s.space;let r=n.getChildByName(`grade${t.grade}`);r&&(r.visible=!0),s.addChild(n)}let u=new Laya.Box;return u.height=s.space,u.y=s.height,s.addChild(u),s.scaleY=0,o.dataSource=t,o.switch=e=>s.scaleY=e?1:0,o.click=(e,t)=>{c.offAll(Laya.Event.CLICK),c.on(Laya.Event.CLICK,t||this,e)},n&&o.click(n),o}#r(t){let n=e.#t(`boxUniqueUnGenerate`),r=n.getChildByName(`boxName`),i=n.getChildByName(`vboxStates`),a=i.getChildByName(`label`),o=i.getChildByName(`boxBtn`).getChildByName(`btn`);return a.event(Laya.Event.RESIZE),i.scaleY=0,n.dataSource=!1,n.switch=e=>i.scaleY=e?1:0,n.click=(e,t)=>{r.offAll(Laya.Event.CLICK),r.on(Laya.Event.CLICK,t||this,e)},n.generate=(e,t)=>{o.offAll(Laya.Event.CLICK),o.on(Laya.Event.CLICK,t||this,e)},t&&n.generate(t),n}init(){this.random()}close(){this.#e=null,this.vboxCharacter.destroyChildren(!0)}random(e){this.#e=null,this.vboxCharacter.destroyChildren(!0);let{unique:t,normal:n}=core.characterRandom(),r=[],i=this.generateUnique(t,()=>{core.generateUnique(),this.random(n)});i&&r.push(i),(e||n).forEach(e=>r.push(this.#n(e))),r.forEach((e,t)=>{e.y=t,this.vboxCharacter.addChild(e),e.click(()=>{this.#e&&this.#e.switch(!1),this.#e=e,e.switch(!0),e.event(Laya.Event.RESIZE)})}),e&&i&&(this.#e=i,i.switch(!0),i.event(Laya.Event.RESIZE))}generateUnique(e,t){return e?e.generate?(e.name=$lang.UI_UniqueWaTaShi,this.#n(e)):this.#r(t):null}next(){if(!this.#e)return $$event(`message`,[`M_PleaseSelectOne`]);if(!this.#e.dataSource)return $$event(`message`,[`M_UnGenerate`]);let{property:e,talent:t}=this.#e.dataSource,n=core.remake(t.map(e=>e.id));n.length>0&&$$event(`message`,[n.map(e=>[`F_TalentReplace`,e])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:e,talents:t,enableExtend:!1})}};export{e as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -30,7 +30,7 @@
<script type="text/javascript" src="libs/laya/min/laya.filter.min.js"></script>
<script type="text/javascript" src="libs/laya/min/laya.particle.min.js"></script>
<script type="text/javascript" src="libs/laya/min/laya.ui.min.js"></script>
<script type="module" crossorigin src="./assets/index-cRTiEXBh.js"></script>
<script type="module" crossorigin src="./assets/index-BdVYj6Of.js"></script>
</head>
<body style="background:black"></body>
</html>