mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-02-04 14:53:12 +08:00
Deploying to gh-pages from @ VickScarlet/lifeRestart@ddc87ebf40 🚀
This commit is contained in:
@@ -1 +0,0 @@
|
||||
var u=s=>{throw TypeError(s)};var b=(s,a,t)=>a.has(s)||u("Cannot "+t);var n=(s,a,t)=>(b(s,a,"read from private field"),t?t.call(s):a.get(s)),v=(s,a,t)=>a.has(s)?u("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(s):a.set(s,t),m=(s,a,t,i)=>(b(s,a,"write to private field"),i?i.call(s,t):a.set(s,t),t);var c,h;class w extends ui.view.CyberTheme.CyberAchievementUI{constructor(){super();v(this,c);v(this,h);this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN));const t=Math.min(this.btnAchievement.fontSize,this.btnStatistics.fontSize),i=Math.max(this.btnAchievement.fontSize,this.btnStatistics.fontSize);m(this,c,{min:t,max:i}),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,()=>{var o,r,l;this.boxPage.width=2*this.width,this.boxA.width=this.boxB.width=this.width,this.boxPage.x<0&&(this.boxPage.x=-this.width);const e=(l=(r=(o=this.listAchievements)==null?void 0:o._itemRender)==null?void 0:r.props)==null?void 0:l.width;if(e){const d=Math.max(Math.floor((this.width-65)/e),1);this.listAchievements.width=d*e+(d-1)*(this.listAchievements.spaceY||0)+30}})}init(){this.switch("statistics",0);const{statistics:t,achievements:i,PropertyTypes:e}=core;this.listAchievements.array=i,this.labRemakeTimes.text=t[e.TMS].value,this.labRemakeTimesJudge.text=t[e.TMS].judge,this.labAchievementCountJudge.color=$ui.common.grade[t[e.TMS].grade],this.labAchievementCount.text=t[e.CACHV].value,this.labAchievementCountJudge.text=t[e.CACHV].judge,this.labAchievementCountJudge.color=$ui.common.grade[t[e.CACHV].grade],this.labEventRate.text=parseInt(t[e.REVT].value*100)+"%",this.prgEventRate.value=t[e.REVT].value,this.labTalentRate.text=parseInt(t[e.RTLT].value*100)+"%",this.prgTalentRate.value=t[e.RTLT].value}switch(t,i=300){switch(n(this,h)&&n(this,h).forEach(e=>Laya.Tween.clear(e)),m(this,h,[]),t){case"statistics":i=-this.boxPage.x/this.width*i,n(this,h).push(Laya.Tween.to(this.boxPage,{x:0},i,Laya.Ease.backOut,Laya.Handler.create(this,()=>m(this,h,null))),Laya.Tween.to(this.btnStatistics,{fontSize:n(this,c).max,anchorX:.5,anchorY:1},i,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:n(this,c).min,anchorX:.5,anchorY:1},i,Laya.Ease.backOut));break;case"achievement":i=(this.width+this.boxPage.x)/this.width*i,n(this,h).push(Laya.Tween.to(this.boxPage,{x:-this.width},i,Laya.Ease.backOut,Laya.Handler.create(this,()=>m(this,h,null))),Laya.Tween.to(this.btnStatistics,{fontSize:n(this,c).min,anchorX:.5,anchorY:1},i,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:n(this,c).max,anchorX:.5,anchorY:1},i,Laya.Ease.backOut));break}}onRenderAchievement(t,i){const e=t.dataSource,o=t.getChildByName("name"),r=t.getChildByName("description"),l=t.getChildByName("completed"),d=t.getChildByName("uncomplete");e.isAchieved?(o.text=e.name,r.text=e.description,l.visible=!0,d.visible=!1):(o.text=e.hide?"???":e.name,r.text=e.hide?"???":e.description,l.visible=!1,d.visible=!0),t.colorFilter=$ui.gradeFilter(e.grade)}}c=new WeakMap,h=new WeakMap;export{w as default};
|
||||
1
public/assets/achievement-DY_XWsyU.js
Normal file
1
public/assets/achievement-DY_XWsyU.js
Normal file
@@ -0,0 +1 @@
|
||||
class o extends ui.view.CyberTheme.CyberAchievementUI{constructor(){super(),this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN));const e=Math.min(this.btnAchievement.fontSize,this.btnStatistics.fontSize),i=Math.max(this.btnAchievement.fontSize,this.btnStatistics.fontSize);this.#e={min:e,max:i},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);const t=this.listAchievements?._itemRender?.props?.width;if(t){const s=Math.max(Math.floor((this.width-65)/t),1);this.listAchievements.width=s*t+(s-1)*(this.listAchievements.spaceY||0)+30}})}#e;#t;init(){this.switch("statistics",0);const{statistics:e,achievements:i,PropertyTypes:t}=core;this.listAchievements.array=i,this.labRemakeTimes.text=e[t.TMS].value,this.labRemakeTimesJudge.text=e[t.TMS].judge,this.labAchievementCountJudge.color=$ui.common.grade[e[t.TMS].grade],this.labAchievementCount.text=e[t.CACHV].value,this.labAchievementCountJudge.text=e[t.CACHV].judge,this.labAchievementCountJudge.color=$ui.common.grade[e[t.CACHV].grade],this.labEventRate.text=parseInt(e[t.REVT].value*100)+"%",this.prgEventRate.value=e[t.REVT].value,this.labTalentRate.text=parseInt(e[t.RTLT].value*100)+"%",this.prgTalentRate.value=e[t.RTLT].value}switch(e,i=300){switch(this.#t&&this.#t.forEach(t=>Laya.Tween.clear(t)),this.#t=[],e){case"statistics":i=-this.boxPage.x/this.width*i,this.#t.push(Laya.Tween.to(this.boxPage,{x:0},i,Laya.Ease.backOut,Laya.Handler.create(this,()=>this.#t=null)),Laya.Tween.to(this.btnStatistics,{fontSize:this.#e.max,anchorX:.5,anchorY:1},i,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:this.#e.min,anchorX:.5,anchorY:1},i,Laya.Ease.backOut));break;case"achievement":i=(this.width+this.boxPage.x)/this.width*i,this.#t.push(Laya.Tween.to(this.boxPage,{x:-this.width},i,Laya.Ease.backOut,Laya.Handler.create(this,()=>this.#t=null)),Laya.Tween.to(this.btnStatistics,{fontSize:this.#e.min,anchorX:.5,anchorY:1},i,Laya.Ease.backOut),Laya.Tween.to(this.btnAchievement,{fontSize:this.#e.max,anchorX:.5,anchorY:1},i,Laya.Ease.backOut));break}}onRenderAchievement(e,i){const t=e.dataSource,s=e.getChildByName("name"),a=e.getChildByName("description"),h=e.getChildByName("completed"),n=e.getChildByName("uncomplete");t.isAchieved?(s.text=t.name,a.text=t.description,h.visible=!0,n.visible=!1):(s.text=t.hide?"???":t.name,a.text=t.hide?"???":t.description,h.visible=!1,n.visible=!0),e.colorFilter=$ui.gradeFilter(t.grade)}}export{o as default};
|
||||
1
public/assets/celebrity-CudMl41G.js
Normal file
1
public/assets/celebrity-CudMl41G.js
Normal file
@@ -0,0 +1 @@
|
||||
class u 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(u.uiView,["boxCharacter","boxTalent","boxUniqueUnGenerate"]);#a(a,e){const{name:i,property:n,talent:o}=a,t=u.#t("boxCharacter"),s=t.getChildByName("vboxStates"),r=t.getChildByName("boxName");r.getChildByName("label").text=i;const c=$_.clone(n);for(const l in c)Math.abs(c[l]-Math.PI)<1e-7&&(c[l]="π");s.getChildByName("label").text=$_.format($lang.F_PropertyStr,c);for(const l of o){const h=u.#t("boxTalent");h.getChildByName("label").text=$_.format($lang.F_TalentSelection,l),h.y=s.height+s.space;let d=h.getChildByName(`grade${l.grade}`);d&&(d.visible=!0),s.addChild(h)}const C=new Laya.Box;return C.height=s.space,C.y=s.height,s.addChild(C),s.scaleY=0,t.dataSource=a,t.switch=l=>s.scaleY=l?1:0,t.click=(l,h)=>{r.offAll(Laya.Event.CLICK),r.on(Laya.Event.CLICK,h||this,l)},e&&t.click(e),t}#n(a){const e=u.#t("boxUniqueUnGenerate"),i=e.getChildByName("boxName"),n=e.getChildByName("vboxStates"),o=n.getChildByName("label"),s=n.getChildByName("boxBtn").getChildByName("btn");return o.event(Laya.Event.RESIZE),n.scaleY=0,e.dataSource=!1,e.switch=r=>n.scaleY=r?1:0,e.click=(r,c)=>{i.offAll(Laya.Event.CLICK),i.on(Laya.Event.CLICK,c||this,r)},e.generate=(r,c)=>{s.offAll(Laya.Event.CLICK),s.on(Laya.Event.CLICK,c||this,r)},a&&e.generate(a),e}init(){this.random()}close(){this.#e=null,this.vboxCharacter.destroyChildren(!0)}random(a){this.#e=null,this.vboxCharacter.destroyChildren(!0);const{unique:e,normal:i}=core.characterRandom(),n=[],o=this.generateUnique(e,()=>{core.generateUnique(),this.random(i)});o&&n.push(o),(a||i).forEach(t=>n.push(this.#a(t))),n.forEach((t,s)=>{t.y=s,this.vboxCharacter.addChild(t),t.click(()=>{this.#e&&this.#e.switch(!1),this.#e=t,t.switch(!0),t.event(Laya.Event.RESIZE)})}),a&&o&&(this.#e=o,o.switch(!0),o.event(Laya.Event.RESIZE))}generateUnique(a,e){return a?a.generate?(a.name=$lang.UI_UniqueWaTaShi,this.#a(a)):this.#n(e):null}next(){if(!this.#e)return $$event("message",["M_PleaseSelectOne"]);if(!this.#e.dataSource)return $$event("message",["M_UnGenerate"]);const{property:a,talent:e}=this.#e.dataSource,i=core.remake(e.map(n=>n.id));i.length>0&&$$event("message",[i.map(n=>["F_TalentReplace",n])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:a,talents:e,enableExtend:!1})}}export{u as default};
|
||||
@@ -1 +0,0 @@
|
||||
var S=a=>{throw TypeError(a)};var E=(a,s,e)=>s.has(a)||S("Cannot "+e);var u=(a,s,e)=>(E(a,s,"read from private field"),e?e.call(a):s.get(a)),v=(a,s,e)=>s.has(a)?S("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,e),f=(a,s,e,t)=>(E(a,s,"write to private field"),t?t.call(a,e):s.set(a,e),e),p=(a,s,e)=>(E(a,s,"access private method"),e);var r,g,x,L,$;const m=class m extends ui.view.CyberTheme.CelebrityUI{constructor(){super();v(this,x);v(this,r);this.btnRetry.on(Laya.Event.CLICK,this,()=>this.random()),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.panelCharacter.vScrollBar.elasticDistance=150}init(){this.random()}close(){f(this,r,null),this.vboxCharacter.destroyChildren(!0)}random(e){f(this,r,null),this.vboxCharacter.destroyChildren(!0);const{unique:t,normal:l}=core.characterRandom(),i=[],c=this.generateUnique(t,()=>{core.generateUnique(),this.random(l)});c&&i.push(c),(e||l).forEach(n=>i.push(p(this,x,L).call(this,n))),i.forEach((n,o)=>{n.y=o,this.vboxCharacter.addChild(n),n.click(()=>{u(this,r)&&u(this,r).switch(!1),f(this,r,n),n.switch(!0),n.event(Laya.Event.RESIZE)})}),e&&c&&(f(this,r,c),c.switch(!0),c.event(Laya.Event.RESIZE))}generateUnique(e,t){return e?e.generate?(e.name=$lang.UI_UniqueWaTaShi,p(this,x,L).call(this,e)):p(this,x,$).call(this,t):null}next(){if(!u(this,r))return $$event("message",["M_PleaseSelectOne"]);if(!u(this,r).dataSource)return $$event("message",["M_UnGenerate"]);const{property:e,talent:t}=u(this,r).dataSource,l=core.remake(t.map(i=>i.id));l.length>0&&$$event("message",[l.map(i=>["F_TalentReplace",i])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:e,talents:t,enableExtend:!1})}};r=new WeakMap,g=new WeakMap,x=new WeakSet,L=function(e,t){var I,B;const{name:l,property:i,talent:c}=e,n=u(I=m,g).call(I,"boxCharacter"),o=n.getChildByName("vboxStates"),y=n.getChildByName("boxName");y.getChildByName("label").text=l;const h=$_.clone(i);for(const C in h)Math.abs(h[C]-Math.PI)<1e-7&&(h[C]="π");o.getChildByName("label").text=$_.format($lang.F_PropertyStr,h);for(const C of c){const b=u(B=m,g).call(B,"boxTalent");b.getChildByName("label").text=$_.format($lang.F_TalentSelection,C),b.y=o.height+o.space;let N=b.getChildByName(`grade${C.grade}`);N&&(N.visible=!0),o.addChild(b)}const d=new Laya.Box;return d.height=o.space,d.y=o.height,o.addChild(d),o.scaleY=0,n.dataSource=e,n.switch=C=>o.scaleY=C?1:0,n.click=(C,b)=>{y.offAll(Laya.Event.CLICK),y.on(Laya.Event.CLICK,b||this,C)},t&&n.click(t),n},$=function(e){var y;const t=u(y=m,g).call(y,"boxUniqueUnGenerate"),l=t.getChildByName("boxName"),i=t.getChildByName("vboxStates"),c=i.getChildByName("label"),o=i.getChildByName("boxBtn").getChildByName("btn");return c.event(Laya.Event.RESIZE),i.scaleY=0,t.dataSource=!1,t.switch=h=>i.scaleY=h?1:0,t.click=(h,d)=>{l.offAll(Laya.Event.CLICK),l.on(Laya.Event.CLICK,d||this,h)},t.generate=(h,d)=>{o.offAll(Laya.Event.CLICK),o.on(Laya.Event.CLICK,d||this,h)},e&&t.generate(e),t},v(m,g,Laya.plugin.extractComponents(m.uiView,["boxCharacter","boxTalent","boxUniqueUnGenerate"]));let U=m;export{U as default};
|
||||
@@ -1 +0,0 @@
|
||||
var U=t=>{throw TypeError(t)};var E=(t,s,e)=>s.has(t)||U("Cannot "+e);var d=(t,s,e)=>(E(t,s,"read from private field"),e?e.call(t):s.get(t)),g=(t,s,e)=>s.has(t)?U("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),v=(t,s,e,a)=>(E(t,s,"write to private field"),a?a.call(t,e):s.set(t,e),e),$=(t,s,e)=>(E(t,s,"access private method"),e);var h,x,b,L,B;const y=class y extends ui.view.DefaultTheme.CelebrityUI{constructor(){super();g(this,b);g(this,h);this.btnRetry.on(Laya.Event.CLICK,this,()=>this.random()),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.panelCharacter.vScrollBar.elasticDistance=150}init(){this.random()}close(){v(this,h,null),this.vboxCharacter.destroyChildren(!0)}random(e){v(this,h,null),this.vboxCharacter.destroyChildren(!0);const{unique:a,normal:n}=core.characterRandom(),c=[],o=this.generateUnique(a,()=>{core.generateUnique(),this.random(n)});o&&c.push(o),(e||n).forEach(r=>c.push($(this,b,L).call(this,r))),c.forEach((r,l)=>{r.y=l,this.vboxCharacter.addChild(r),r.click(()=>{d(this,h)&&d(this,h).switch(!1),v(this,h,r),r.switch(!0),r.event(Laya.Event.RESIZE)})}),e&&o&&(v(this,h,o),o.switch(!0),o.event(Laya.Event.RESIZE))}generateUnique(e,a){return e?e.generate?(e.name=$lang.UI_UniqueWaTaShi,$(this,b,L).call(this,e)):$(this,b,B).call(this,a):null}next(){if(!d(this,h))return $$event("message",["M_PleaseSelectOne"]);if(!d(this,h).dataSource)return $$event("message",["M_UnGenerate"]);const{property:e,talent:a}=d(this,h).dataSource,n=core.remake(a.map(c=>c.id));n.length>0&&$$event("message",[n.map(c=>["F_TalentReplace",c])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:e,talents:a,enableExtend:!1})}};h=new WeakMap,x=new WeakMap,b=new WeakSet,L=function(e,a){var S,I;const{name:n,property:c,talent:o}=e,r=$ui.common.characterItem,l=d(S=y,x).call(S,"boxCharacter"),i=l.getChildByName("vboxStates"),C=l.getChildByName("boxName");C.label=n;const m=$_.clone(c);for(const u in m)Math.abs(m[u]-Math.PI)<1e-7&&(m[u]="π");i.label=$_.format($lang.F_PropertyStr,m),$_.deepMapSet(C,r.name),$_.deepMapSet(i,r.state);for(const u of o){const f=d(I=y,x).call(I,"boxTalent");f.label=$_.format($lang.F_TalentSelection,u),f.y=i.height+i.space,$_.deepMapSet(f,$ui.common.card[u.grade].normal),i.addChild(f)}const p=new Laya.Box;return p.height=i.space,p.y=i.height,i.addChild(p),i.scaleY=0,l.dataSource=e,l.switch=u=>i.scaleY=u?1:0,l.click=(u,f)=>{C.offAll(Laya.Event.CLICK),C.on(Laya.Event.CLICK,f||this,u)},a&&l.click(a),l},B=function(e){var C;const a=$ui.common.characterItem,n=d(C=y,x).call(C,"boxUniqueUnGenerate"),c=n.getChildByName("boxName"),o=n.getChildByName("vboxStates"),r=o.getChildByName("label"),l=o.getChildByName("boxBtn"),i=l.getChildByName("btn");return $_.deepMapSet(c,a.name),$_.deepMapSet(o,a.state),$_.deepMapSet(i,a.name),l.y=r.height+o.space,r.event(Laya.Event.RESIZE),o.scaleY=0,n.dataSource=!1,n.switch=m=>o.scaleY=m?1:0,n.click=(m,p)=>{c.offAll(Laya.Event.CLICK),c.on(Laya.Event.CLICK,p||this,m)},n.generate=(m,p)=>{i.offAll(Laya.Event.CLICK),i.on(Laya.Event.CLICK,p||this,m)},e&&n.generate(e),n},g(y,x,Laya.plugin.extractComponents(y.uiView,["boxCharacter","boxTalent","boxUniqueUnGenerate"]));let N=y;export{N as default};
|
||||
1
public/assets/celebrity-Dzevtkex.js
Normal file
1
public/assets/celebrity-Dzevtkex.js
Normal file
@@ -0,0 +1 @@
|
||||
class u 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(u.uiView,["boxCharacter","boxTalent","boxUniqueUnGenerate"]);#a(t,o){const{name:e,property:r,talent:a}=t,n=$ui.common.characterItem,i=u.#t("boxCharacter"),s=i.getChildByName("vboxStates"),c=i.getChildByName("boxName");c.label=e;const h=$_.clone(r);for(const l in h)Math.abs(h[l]-Math.PI)<1e-7&&(h[l]="π");s.label=$_.format($lang.F_PropertyStr,h),$_.deepMapSet(c,n.name),$_.deepMapSet(s,n.state);for(const l of a){const m=u.#t("boxTalent");m.label=$_.format($lang.F_TalentSelection,l),m.y=s.height+s.space,$_.deepMapSet(m,$ui.common.card[l.grade].normal),s.addChild(m)}const d=new Laya.Box;return d.height=s.space,d.y=s.height,s.addChild(d),s.scaleY=0,i.dataSource=t,i.switch=l=>s.scaleY=l?1:0,i.click=(l,m)=>{c.offAll(Laya.Event.CLICK),c.on(Laya.Event.CLICK,m||this,l)},o&&i.click(o),i}#n(t){const o=$ui.common.characterItem,e=u.#t("boxUniqueUnGenerate"),r=e.getChildByName("boxName"),a=e.getChildByName("vboxStates"),n=a.getChildByName("label"),i=a.getChildByName("boxBtn"),s=i.getChildByName("btn");return $_.deepMapSet(r,o.name),$_.deepMapSet(a,o.state),$_.deepMapSet(s,o.name),i.y=n.height+a.space,n.event(Laya.Event.RESIZE),a.scaleY=0,e.dataSource=!1,e.switch=c=>a.scaleY=c?1:0,e.click=(c,h)=>{r.offAll(Laya.Event.CLICK),r.on(Laya.Event.CLICK,h||this,c)},e.generate=(c,h)=>{s.offAll(Laya.Event.CLICK),s.on(Laya.Event.CLICK,h||this,c)},t&&e.generate(t),e}init(){this.random()}close(){this.#e=null,this.vboxCharacter.destroyChildren(!0)}random(t){this.#e=null,this.vboxCharacter.destroyChildren(!0);const{unique:o,normal:e}=core.characterRandom(),r=[],a=this.generateUnique(o,()=>{core.generateUnique(),this.random(e)});a&&r.push(a),(t||e).forEach(n=>r.push(this.#a(n))),r.forEach((n,i)=>{n.y=i,this.vboxCharacter.addChild(n),n.click(()=>{this.#e&&this.#e.switch(!1),this.#e=n,n.switch(!0),n.event(Laya.Event.RESIZE)})}),t&&a&&(this.#e=a,a.switch(!0),a.event(Laya.Event.RESIZE))}generateUnique(t,o){return t?t.generate?(t.name=$lang.UI_UniqueWaTaShi,this.#a(t)):this.#n(o):null}next(){if(!this.#e)return $$event("message",["M_PleaseSelectOne"]);if(!this.#e.dataSource)return $$event("message",["M_UnGenerate"]);const{property:t,talent:o}=this.#e.dataSource,e=core.remake(o.map(r=>r.id));e.length>0&&$$event("message",[e.map(r=>["F_TalentReplace",r])]),$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:t,talents:o,enableExtend:!1})}}export{u as default};
|
||||
2
public/assets/index-BLsR_SyO.js
Normal file
2
public/assets/index-BLsR_SyO.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
1
public/assets/property-BR7hIr9B.js
Normal file
1
public/assets/property-BR7hIr9B.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
var u=r=>{throw TypeError(r)};var I=(r,o,e)=>o.has(r)||u("Cannot "+e);var t=(r,o,e)=>(I(r,o,"read from private field"),e?e.call(r):o.get(r)),y=(r,o,e)=>o.has(r)?u("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,e),p=(r,o,e,s)=>(I(r,o,"write to private field"),s?s.call(r,e):o.set(r,e),e);var n,l,a,h;class g extends ui.view.DefaultTheme.PropertyUI{constructor(){super();y(this,n);y(this,l);y(this,a);y(this,h);const e=p(this,n,core.PropertyTypes);this.btnCharmIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.CHR,1]),this.btnCharmReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.CHR,-1]),this.btnIntelligenceIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.INT,1]),this.btnIntelligenceReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.INT,-1]),this.btnStrengthIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.STR,1]),this.btnStrengthReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.STR,-1]),this.btnMoneyIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.MNY,1]),this.btnMoneyReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[e.MNY,-1]),this.inputCharm.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[e.CHR]),this.inputIntelligence.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[e.INT]),this.inputStrength.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[e.STR]),this.inputMoney.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[e.MNY]);const s=({currentTarget:i})=>{i.text=""};this.inputCharm.on(Laya.Event.MOUSE_DOWN,this,s),this.inputIntelligence.on(Laya.Event.MOUSE_DOWN,this,s),this.inputStrength.on(Laya.Event.MOUSE_DOWN,this,s),this.inputMoney.on(Laya.Event.MOUSE_DOWN,this,s),this.btnRandomAllocate.on(Laya.Event.CLICK,this,this.random),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.listSelectedTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1)}init({talents:e}){this.listSelectedTalents.array=e;const s=core.remake(e.map(i=>i.id));s.length>0&&$$event("message",[s.map(i=>["F_TalentReplace",i])]),p(this,l,core.getPropertyPoints()),p(this,h,core.propertyAllocateLimit),this.labLeftPropertyPoint.text=t(this,l),p(this,a,{[t(this,n).CHR]:0,[t(this,n).INT]:0,[t(this,n).STR]:0,[t(this,n).MNY]:0}),this.updateAllocate()}next(){const e=t(this,l)-this.total;if(e>0)return $$event("message",["F_PropertyPointLeft",e]);$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:t(this,a),talents:this.listSelectedTalents.array,enableExtend:!0})}get total(){return t(this,a)[t(this,n).CHR]+t(this,a)[t(this,n).INT]+t(this,a)[t(this,n).STR]+t(this,a)[t(this,n).MNY]}updateAllocate(){const e=t(this,a)[t(this,n).CHR],s=t(this,a)[t(this,n).INT],i=t(this,a)[t(this,n).STR],c=t(this,a)[t(this,n).MNY];this.inputCharm.text=""+e,this.inputIntelligence.text=""+s,this.inputStrength.text=""+i,this.inputMoney.text=""+c,this.labLeftPropertyPoint.text=t(this,l)-this.total,this.btnCharmIncrease.disabled=this.btnCharmIncrease.gray=!1,this.btnCharmReduce.disabled=this.btnCharmReduce.gray=!1,this.btnIntelligenceIncrease.disabled=this.btnIntelligenceIncrease.gray=!1,this.btnIntelligenceReduce.disabled=this.btnIntelligenceReduce.gray=!1,this.btnStrengthIncrease.disabled=this.btnStrengthIncrease.gray=!1,this.btnStrengthReduce.disabled=this.btnStrengthReduce.gray=!1,this.btnMoneyIncrease.disabled=this.btnMoneyIncrease.gray=!1,this.btnMoneyReduce.disabled=this.btnMoneyReduce.gray=!1}check(e,s,i){return!(i<e||i>s)}random(){let e=t(this,l);const s=new Array(4).fill(t(this,h)[1]);for(;e>0;){const i=Math.round(Math.random()*(Math.min(e,t(this,h)[1])-1))+1;for(;;){const c=Math.floor(Math.random()*4)%4;if(!(s[c]-i<0)){s[c]-=i,e-=i;break}}}t(this,a)[t(this,n).CHR]=t(this,h)[1]-s[0],t(this,a)[t(this,n).INT]=t(this,h)[1]-s[1],t(this,a)[t(this,n).STR]=t(this,h)[1]-s[2],t(this,a)[t(this,n).MNY]=t(this,h)[1]-s[3],this.updateAllocate()}onPropertyAllocate(e,s){this.check(t(this,h)[0],t(this,h)[1],t(this,a)[e]+s)&&this.check(0,t(this,l),this.total+s)&&(t(this,a)[e]+=s,this.updateAllocate())}onPropertyAllocateInput(e,s){let i=parseInt(s.text)||0;const c=this.total;c+i<0?i=t(this,h)[0]*4-c:c+i>t(this,l)&&(i=t(this,l)-c),i<t(this,h)[0]?i=t(this,h)[0]:i>t(this,h)[1]&&(i=t(this,h)[1]);const d=i-t(this,a)[e];d?this.onPropertyAllocate(e,d):this.updateAllocate()}renderTalent(e){const s=e.dataSource;e.label=$_.format($lang.F_TalentSelection,s);const i=$ui.common.card[s.grade].normal;$_.deepMapSet(e,i)}}n=new WeakMap,l=new WeakMap,a=new WeakMap,h=new WeakMap;export{g as default};
|
||||
File diff suppressed because one or more lines are too long
1
public/assets/property-DEUj-uQM.js
Normal file
1
public/assets/property-DEUj-uQM.js
Normal file
@@ -0,0 +1 @@
|
||||
class h extends ui.view.DefaultTheme.PropertyUI{constructor(){super();const t=this.#t=core.PropertyTypes;this.btnCharmIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.CHR,1]),this.btnCharmReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.CHR,-1]),this.btnIntelligenceIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.INT,1]),this.btnIntelligenceReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.INT,-1]),this.btnStrengthIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.STR,1]),this.btnStrengthReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.STR,-1]),this.btnMoneyIncrease.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.MNY,1]),this.btnMoneyReduce.on(Laya.Event.CLICK,this,this.onPropertyAllocate,[t.MNY,-1]),this.inputCharm.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[t.CHR]),this.inputIntelligence.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[t.INT]),this.inputStrength.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[t.STR]),this.inputMoney.on(Laya.Event.INPUT,this,this.onPropertyAllocateInput,[t.MNY]);const e=({currentTarget:s})=>{s.text=""};this.inputCharm.on(Laya.Event.MOUSE_DOWN,this,e),this.inputIntelligence.on(Laya.Event.MOUSE_DOWN,this,e),this.inputStrength.on(Laya.Event.MOUSE_DOWN,this,e),this.inputMoney.on(Laya.Event.MOUSE_DOWN,this,e),this.btnRandomAllocate.on(Laya.Event.CLICK,this,this.random),this.btnNext.on(Laya.Event.CLICK,this,this.next),this.listSelectedTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1)}#t;#i;#e;#s;init({talents:t}){this.listSelectedTalents.array=t;const e=core.remake(t.map(s=>s.id));e.length>0&&$$event("message",[e.map(s=>["F_TalentReplace",s])]),this.#i=core.getPropertyPoints(),this.#s=core.propertyAllocateLimit,this.labLeftPropertyPoint.text=this.#i,this.#e={[this.#t.CHR]:0,[this.#t.INT]:0,[this.#t.STR]:0,[this.#t.MNY]:0},this.updateAllocate()}next(){const t=this.#i-this.total;if(t>0)return $$event("message",["F_PropertyPointLeft",t]);$ui.switchView(UI.pages.TRAJECTORY,{propertyAllocate:this.#e,talents:this.listSelectedTalents.array,enableExtend:!0})}get total(){return this.#e[this.#t.CHR]+this.#e[this.#t.INT]+this.#e[this.#t.STR]+this.#e[this.#t.MNY]}updateAllocate(){const t=this.#e[this.#t.CHR],e=this.#e[this.#t.INT],s=this.#e[this.#t.STR],i=this.#e[this.#t.MNY];this.inputCharm.text=""+t,this.inputIntelligence.text=""+e,this.inputStrength.text=""+s,this.inputMoney.text=""+i,this.labLeftPropertyPoint.text=this.#i-this.total,this.btnCharmIncrease.disabled=this.btnCharmIncrease.gray=!1,this.btnCharmReduce.disabled=this.btnCharmReduce.gray=!1,this.btnIntelligenceIncrease.disabled=this.btnIntelligenceIncrease.gray=!1,this.btnIntelligenceReduce.disabled=this.btnIntelligenceReduce.gray=!1,this.btnStrengthIncrease.disabled=this.btnStrengthIncrease.gray=!1,this.btnStrengthReduce.disabled=this.btnStrengthReduce.gray=!1,this.btnMoneyIncrease.disabled=this.btnMoneyIncrease.gray=!1,this.btnMoneyReduce.disabled=this.btnMoneyReduce.gray=!1}check(t,e,s){return!(s<t||s>e)}random(){let t=this.#i;const e=new Array(4).fill(this.#s[1]);for(;t>0;){const s=Math.round(Math.random()*(Math.min(t,this.#s[1])-1))+1;for(;;){const i=Math.floor(Math.random()*4)%4;if(!(e[i]-s<0)){e[i]-=s,t-=s;break}}}this.#e[this.#t.CHR]=this.#s[1]-e[0],this.#e[this.#t.INT]=this.#s[1]-e[1],this.#e[this.#t.STR]=this.#s[1]-e[2],this.#e[this.#t.MNY]=this.#s[1]-e[3],this.updateAllocate()}onPropertyAllocate(t,e){this.check(this.#s[0],this.#s[1],this.#e[t]+e)&&this.check(0,this.#i,this.total+e)&&(this.#e[t]+=e,this.updateAllocate())}onPropertyAllocateInput(t,e){let s=parseInt(e.text)||0;const i=this.total;i+s<0?s=this.#s[0]*4-i:i+s>this.#i&&(s=this.#i-i),s<this.#s[0]?s=this.#s[0]:s>this.#s[1]&&(s=this.#s[1]);const n=s-this.#e[t];n?this.onPropertyAllocate(t,n):this.updateAllocate()}renderTalent(t){const e=t.dataSource;t.label=$_.format($lang.F_TalentSelection,e);const s=$ui.common.card[e.grade].normal;$_.deepMapSet(t,s)}}export{h as default};
|
||||
@@ -1 +0,0 @@
|
||||
var C=t=>{throw TypeError(t)};var S=(t,s,e)=>s.has(t)||C("Cannot "+e);var h=(t,s,e)=>(S(t,s,"read from private field"),e?e.call(t):s.get(t)),T=(t,s,e)=>s.has(t)?C("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(t):s.set(t,e),c=(t,s,e,i)=>(S(t,s,"write to private field"),i?i.call(t,e):s.set(t,e),e);var l,u;class H extends ui.view.CyberTheme.CyberSummaryUI{constructor(){super();T(this,l);T(this,u);this.listSelectedTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.btnAgain.on(Laya.Event.CLICK,this,this.onAgain)}onAgain(){core.talentExtend(h(this,l)),core.times++,$ui.switchView(UI.pages.MAIN)}init({talents:e,enableExtend:i}){const{summary:n,lastExtendTalent:o}=core;c(this,u,i);const a=$ui.common.filter,r=$ui.common.grade,b=n[core.PropertyTypes.HAGE];this.labAge.text=""+b.value,this.labAgeJudge.text=b.judge,this.labAgeJudge.color=r[b.grade];const g=n[core.PropertyTypes.SUM];this.labTotal.text=""+g.value,this.labTotalJudge.text=g.judge,this.labTotalJudge.color=r[g.grade];const d=n[core.PropertyTypes.HCHR];this.labCharm.text=""+d.value,this.prgCharm.value=d.progress,this.labCharmJudge.text=d.judge,this.labCharmJudge.color=r[d.grade],this.boxCharmGrade.colorFilter=a[d.grade];const y=n[core.PropertyTypes.HINT];this.labIntelligence.text=""+y.value,this.prgIntelligence.value=y.progress,this.labIntelligenceJudge.text=y.judge,this.labIntelligenceJudge.color=r[y.grade],this.boxIntelligenceGrade.colorFilter=a[y.grade];const p=n[core.PropertyTypes.HSTR];this.labStrength.text=""+p.value,this.prgStrength.value=p.progress,this.labStrengthJudge.text=p.judge,this.labStrengthJudge.color=r[p.grade],this.boxStrengthGrade.colorFilter=a[p.grade];const v=n[core.PropertyTypes.HMNY];this.labMoney.text=""+v.value,this.prgMoney.value=v.progress,this.labMoneyJudge.text=v.judge,this.labMoneyJudge.color=r[v.grade],this.boxMoneyGrade.colorFilter=a[v.grade];const m=n[core.PropertyTypes.HSPR];this.labSpirit.text=""+m.value,this.prgSpirit.value=m.progress,this.labSpiritJudge.text=m.judge,this.labSpiritJudge.color=r[m.grade],this.boxSpiritGrade.colorFilter=a[m.grade],e.sort(({id:f,grade:x},{id:J,grade:I})=>f==o?-1:J==o?1:I-x),h(this,u)?c(this,l,e[0].id):c(this,l,o),this.listSelectedTalents.array=e}renderTalent(e){const i=e.dataSource,n=e.getChildByName("labTitle"),o=e.getChildByName("grade1"),a=e.getChildByName("grade2"),r=e.getChildByName("grade3"),b=e.getChildByName("labDescription"),g=e.getChildByName("selected"),d=e.getChildByName("unselected");switch(n.text=i.name,b.text=i.description,i.grade){case 1:o.visible=!0,a.visible=!1,r.visible=!1;break;case 2:o.visible=!1,a.visible=!0,r.visible=!1;break;case 3:o.visible=!1,a.visible=!1,r.visible=!0;break;default:o.visible=!1,a.visible=!1,r.visible=!1;break}g.visible=i.id==h(this,l),d.visible=!g.visible,e.off(Laya.Event.CLICK,this,this.onSelectTalent),e.on(Laya.Event.CLICK,this,this.onSelectTalent,[i.id])}onSelectTalent(e){if(!h(this,u))return $$event("message",["M_DisableExtendTalent"]);e==h(this,l)?c(this,l,null):c(this,l,e),this.listSelectedTalents.refresh()}}l=new WeakMap,u=new WeakMap;export{H as default};
|
||||
@@ -1 +0,0 @@
|
||||
var p=t=>{throw TypeError(t)};var m=(t,r,e)=>r.has(t)||p("Cannot "+e);var l=(t,r,e)=>(m(t,r,"read from private field"),e?e.call(t):r.get(t)),u=(t,r,e)=>r.has(t)?p("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,e),i=(t,r,e,a)=>(m(t,r,"write to private field"),a?a.call(t,e):r.set(t,e),e);var n,o;class T extends ui.view.DefaultTheme.SummaryUI{constructor(){super();u(this,n);u(this,o);this.listSummary.renderHandler=Laya.Handler.create(this,this.renderSummary,null,!1),this.listSelectedTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.btnAgain.on(Laya.Event.CLICK,this,this.onAgain)}onAgain(){core.talentExtend(l(this,n)),core.times++,$ui.switchView(UI.pages.MAIN)}init({talents:e,enableExtend:a}){const{summary:s,lastExtendTalent:c}=core;i(this,o,a),this.listSummary.array=[[core.PropertyTypes.HCHR,$lang.UI_Property_Charm],[core.PropertyTypes.HINT,$lang.UI_Property_Intelligence],[core.PropertyTypes.HSTR,$lang.UI_Property_Strength],[core.PropertyTypes.HMNY,$lang.UI_Property_Money],[core.PropertyTypes.HSPR,$lang.UI_Property_Spirit],[core.PropertyTypes.HAGE,$lang.UI_Final_Age],[core.PropertyTypes.SUM,$lang.UI_Total_Judge]].map(([y,h])=>{const d=s[y];return{label:`${h}${$lang.UI_Colon} ${d.value} ${$lang[d.judge]}`,grade:d.grade}}),e.sort(({id:y,grade:h},{id:d,grade:g})=>y==c?-1:d==c?1:g-h),l(this,o)?i(this,n,e[0].id):i(this,n,c),this.listSelectedTalents.array=e}renderSummary(e){const{label:a,grade:s}=e.dataSource;e.label=a,$_.deepMapSet(e,$ui.common.summary[s])}renderTalent(e){const a=e.dataSource;e.label=$_.format($lang.F_TalentSelection,a);const s=$ui.common.card[a.grade];$_.deepMapSet(e,a.id==l(this,n)?s.selected:s.normal),e.getChildByName("blank").pause=a.id!=l(this,n),e.off(Laya.Event.CLICK,this,this.onSelectTalent),e.on(Laya.Event.CLICK,this,this.onSelectTalent,[a.id])}onSelectTalent(e){if(!l(this,o))return $$event("message",["M_DisableExtendTalent"]);e==l(this,n)?i(this,n,null):i(this,n,e),this.listSelectedTalents.refresh()}}n=new WeakMap,o=new WeakMap;export{T as default};
|
||||
1
public/assets/summary-D34oPUII.js
Normal file
1
public/assets/summary-D34oPUII.js
Normal file
@@ -0,0 +1 @@
|
||||
class d extends ui.view.DefaultTheme.SummaryUI{constructor(){super(),this.listSummary.renderHandler=Laya.Handler.create(this,this.renderSummary,null,!1),this.listSelectedTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.btnAgain.on(Laya.Event.CLICK,this,this.onAgain)}#e;#t;onAgain(){core.talentExtend(this.#e),core.times++,$ui.switchView(UI.pages.MAIN)}init({talents:e,enableExtend:t}){const{summary:r,lastExtendTalent:n}=core;this.#t=t,this.listSummary.array=[[core.PropertyTypes.HCHR,$lang.UI_Property_Charm],[core.PropertyTypes.HINT,$lang.UI_Property_Intelligence],[core.PropertyTypes.HSTR,$lang.UI_Property_Strength],[core.PropertyTypes.HMNY,$lang.UI_Property_Money],[core.PropertyTypes.HSPR,$lang.UI_Property_Spirit],[core.PropertyTypes.HAGE,$lang.UI_Final_Age],[core.PropertyTypes.SUM,$lang.UI_Total_Judge]].map(([l,s])=>{const a=r[l];return{label:`${s}${$lang.UI_Colon} ${a.value} ${$lang[a.judge]}`,grade:a.grade}}),e.sort(({id:l,grade:s},{id:a,grade:i})=>l==n?-1:a==n?1:i-s),this.#t?this.#e=e[0].id:this.#e=n,this.listSelectedTalents.array=e}renderSummary(e){const{label:t,grade:r}=e.dataSource;e.label=t,$_.deepMapSet(e,$ui.common.summary[r])}renderTalent(e){const t=e.dataSource;e.label=$_.format($lang.F_TalentSelection,t);const r=$ui.common.card[t.grade];$_.deepMapSet(e,t.id==this.#e?r.selected:r.normal),e.getChildByName("blank").pause=t.id!=this.#e,e.off(Laya.Event.CLICK,this,this.onSelectTalent),e.on(Laya.Event.CLICK,this,this.onSelectTalent,[t.id])}onSelectTalent(e){if(!this.#t)return $$event("message",["M_DisableExtendTalent"]);e==this.#e?this.#e=null:this.#e=e,this.listSelectedTalents.refresh()}}export{d as default};
|
||||
1
public/assets/summary-vbrYtvAa.js
Normal file
1
public/assets/summary-vbrYtvAa.js
Normal file
@@ -0,0 +1 @@
|
||||
class m extends ui.view.CyberTheme.CyberSummaryUI{constructor(){super(),this.listSelectedTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.btnAgain.on(Laya.Event.CLICK,this,this.onAgain)}#e;#t;onAgain(){core.talentExtend(this.#e),core.times++,$ui.switchView(UI.pages.MAIN)}init({talents:e,enableExtend:a}){const{summary:r,lastExtendTalent:i}=core;this.#t=a;const s=$ui.common.filter,t=$ui.common.grade,o=r[core.PropertyTypes.HAGE];this.labAge.text=""+o.value,this.labAgeJudge.text=o.judge,this.labAgeJudge.color=t[o.grade];const n=r[core.PropertyTypes.SUM];this.labTotal.text=""+n.value,this.labTotalJudge.text=n.judge,this.labTotalJudge.color=t[n.grade];const l=r[core.PropertyTypes.HCHR];this.labCharm.text=""+l.value,this.prgCharm.value=l.progress,this.labCharmJudge.text=l.judge,this.labCharmJudge.color=t[l.grade],this.boxCharmGrade.colorFilter=s[l.grade];const d=r[core.PropertyTypes.HINT];this.labIntelligence.text=""+d.value,this.prgIntelligence.value=d.progress,this.labIntelligenceJudge.text=d.judge,this.labIntelligenceJudge.color=t[d.grade],this.boxIntelligenceGrade.colorFilter=s[d.grade];const g=r[core.PropertyTypes.HSTR];this.labStrength.text=""+g.value,this.prgStrength.value=g.progress,this.labStrengthJudge.text=g.judge,this.labStrengthJudge.color=t[g.grade],this.boxStrengthGrade.colorFilter=s[g.grade];const h=r[core.PropertyTypes.HMNY];this.labMoney.text=""+h.value,this.prgMoney.value=h.progress,this.labMoneyJudge.text=h.judge,this.labMoneyJudge.color=t[h.grade],this.boxMoneyGrade.colorFilter=s[h.grade];const c=r[core.PropertyTypes.HSPR];this.labSpirit.text=""+c.value,this.prgSpirit.value=c.progress,this.labSpiritJudge.text=c.judge,this.labSpiritJudge.color=t[c.grade],this.boxSpiritGrade.colorFilter=s[c.grade],e.sort(({id:u,grade:b},{id:y,grade:p})=>u==i?-1:y==i?1:p-b),this.#t?this.#e=e[0].id:this.#e=i,this.listSelectedTalents.array=e}renderTalent(e){const a=e.dataSource,r=e.getChildByName("labTitle"),i=e.getChildByName("grade1"),s=e.getChildByName("grade2"),t=e.getChildByName("grade3"),o=e.getChildByName("labDescription"),n=e.getChildByName("selected"),l=e.getChildByName("unselected");switch(r.text=a.name,o.text=a.description,a.grade){case 1:i.visible=!0,s.visible=!1,t.visible=!1;break;case 2:i.visible=!1,s.visible=!0,t.visible=!1;break;case 3:i.visible=!1,s.visible=!1,t.visible=!0;break;default:i.visible=!1,s.visible=!1,t.visible=!1;break}n.visible=a.id==this.#e,l.visible=!n.visible,e.off(Laya.Event.CLICK,this,this.onSelectTalent),e.on(Laya.Event.CLICK,this,this.onSelectTalent,[a.id])}onSelectTalent(e){if(!this.#t)return $$event("message",["M_DisableExtendTalent"]);e==this.#e?this.#e=null:this.#e=e,this.listSelectedTalents.refresh()}}export{m as default};
|
||||
1
public/assets/talent-BC5YXS8E.js
Normal file
1
public/assets/talent-BC5YXS8E.js
Normal file
@@ -0,0 +1 @@
|
||||
class m extends ui.view.CyberTheme.CyberTalentUI{constructor(){super(),this.btnDrawCard.on(Laya.Event.CLICK,this,this.onClickDrawCard),this.btnNext.on(Laya.Event.CLICK,this,this.onClickNext),this.listTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.listTalents.scrollBar.elasticDistance=150,this.on(Laya.Event.RESIZE,this,()=>{const e=this.listTalents?._itemRender?.props?.width;if(e){const t=Math.max(Math.floor((this.width-40)/e),1);this.listTalents.width=t*e+(t-1)*(this.listTalents.spaceY||0)}})}#e=new Set;static load(){return["images/background/background_2@3x.png"]}init(){this.pageDrawCard.visible=!0,this.pageResult.visible=!1,this.btnNext.label="UI_Talent_Select_Uncomplete",this.#e.clear()}close(){}onClickDrawCard(){this.pageDrawCard.visible=!1,this.pageResult.visible=!0,this.listTalents.array=core.talentRandom()}onClickNext(){if(this.#e.size<core.talentSelectLimit)return $$event("message",["F_TalentSelectNotComplect",core.talentSelectLimit]);const e=[...this.#e].map(t=>this.listTalents.array[t]);$ui.switchView(UI.pages.PROPERTY,{talents:e,enableExtend:!0})}renderTalent(e,t){const r=e.dataSource,h=e.getChildByName("hboxTitle"),i=h.getChildByName("labTitle"),s=h.getChildByName("grades"),a=s.getChildByName("grade1"),l=s.getChildByName("grade2"),n=s.getChildByName("grade3"),v=e.getChildByName("labDescription"),d=e.getChildByName("unselected"),o=e.getChildByName("selected");switch(r.grade){case 1:s.x=0,i.x=1,a.visible=!0,l.visible=!1,n.visible=!1;break;case 2:s.x=0,i.x=1,a.visible=!1,l.visible=!0,n.visible=!1;break;case 3:s.x=0,i.x=1,a.visible=!1,l.visible=!1,n.visible=!0;break;default:s.x=1,i.x=0,a.visible=!1,l.visible=!1,n.visible=!1;break}i.text=r.name,i.event(Laya.Event.RESIZE),v.text=r.description,d.visible=!(o.visible=this.#e.has(t)),e.offAll(Laya.Event.CLICK),e.on(Laya.Event.CLICK,this,()=>{if(this.#e.has(t))this.#e.delete(t);else{if(this.#e.size>=core.talentSelectLimit)return $$event("message",["F_TalentSelectLimit",core.talentSelectLimit]);const b=core.exclude([...this.#e].map(c=>this.listTalents.array[c].id),this.listTalents.array[t].id);if(b!=null){for(const{name:c,id:C}of this.listTalents.array)if(b==C)return $$event("message",["F_TalentConflict",c]);return}this.#e.add(t)}this.btnNext.label=this.#e.size===core.talentSelectLimit?"UI_Next":"UI_Talent_Select_Uncomplete",d.visible=!(o.visible=this.#e.has(t))})}}export{m as default};
|
||||
@@ -1 +0,0 @@
|
||||
var d=a=>{throw TypeError(a)};var T=(a,s,e)=>s.has(a)||d("Cannot "+e);var l=(a,s,e)=>(T(a,s,"read from private field"),e?e.call(a):s.get(a)),u=(a,s,e)=>s.has(a)?d("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,e);var t;class p extends ui.view.DefaultTheme.TalentUI{constructor(){super();u(this,t,new Set);this.btnDrawCard.on(Laya.Event.CLICK,this,this.onClickDrawCard),this.btnNext.on(Laya.Event.CLICK,this,this.onClickNext),this.listTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.listTalents.scrollBar.elasticDistance=150}init(){this.pageDrawCard.visible=!0,this.pageResult.visible=!1,this.btnNext.label="UI_Talent_Select_Uncomplete",l(this,t).clear()}close(){}onClickDrawCard(){this.pageDrawCard.visible=!1,this.pageResult.visible=!0,this.listTalents.array=core.talentRandom()}onClickNext(){if(l(this,t).size<core.talentSelectLimit)return $$event("message",["F_TalentSelectNotComplect",core.talentSelectLimit]);const e=[...l(this,t)].map(i=>this.listTalents.array[i]);$ui.switchView(UI.pages.PROPERTY,{talents:e,enableExtend:!0})}renderTalent(e,i){const c=e.dataSource,m=e.getChildByName("blank");e.label=$_.format($lang.F_TalentSelection,c);const h=$ui.common.card[c.grade],o=()=>{const n=l(this,t).has(i);m.pause=!n,$_.deepMapSet(e,n?h.selected:h.normal)};o(),e.offAll(Laya.Event.CLICK),e.on(Laya.Event.CLICK,this,()=>{if(l(this,t).has(i))l(this,t).delete(i);else{if(l(this,t).size>=core.talentSelectLimit)return $$event("message",["F_TalentSelectLimit",core.talentSelectLimit]);const n=core.exclude([...l(this,t)].map(r=>this.listTalents.array[r].id),this.listTalents.array[i].id);if(n!=null){for(const{name:r,id:C}of this.listTalents.array)if(n==C)return $$event("message",["F_TalentConflict",r]);return}l(this,t).add(i)}this.btnNext.label=l(this,t).size===core.talentSelectLimit?"UI_Next":"UI_Talent_Select_Uncomplete",o()})}}t=new WeakMap;export{p as default};
|
||||
@@ -1 +0,0 @@
|
||||
var u=s=>{throw TypeError(s)};var p=(s,l,e)=>l.has(s)||u("Cannot "+e);var i=(s,l,e)=>(p(s,l,"read from private field"),e?e.call(s):l.get(s)),f=(s,l,e)=>l.has(s)?u("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(s):l.set(s,e);var t;class N extends ui.view.CyberTheme.CyberTalentUI{constructor(){super();f(this,t,new Set);this.btnDrawCard.on(Laya.Event.CLICK,this,this.onClickDrawCard),this.btnNext.on(Laya.Event.CLICK,this,this.onClickNext),this.listTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.listTalents.scrollBar.elasticDistance=150,this.on(Laya.Event.RESIZE,this,()=>{var a,c,h;const e=(h=(c=(a=this.listTalents)==null?void 0:a._itemRender)==null?void 0:c.props)==null?void 0:h.width;if(e){const n=Math.max(Math.floor((this.width-40)/e),1);this.listTalents.width=n*e+(n-1)*(this.listTalents.spaceY||0)}})}static load(){return["images/background/background_2@3x.png"]}init(){this.pageDrawCard.visible=!0,this.pageResult.visible=!1,this.btnNext.label="UI_Talent_Select_Uncomplete",i(this,t).clear()}close(){}onClickDrawCard(){this.pageDrawCard.visible=!1,this.pageResult.visible=!0,this.listTalents.array=core.talentRandom()}onClickNext(){if(i(this,t).size<core.talentSelectLimit)return $$event("message",["F_TalentSelectNotComplect",core.talentSelectLimit]);const e=[...i(this,t)].map(a=>this.listTalents.array[a]);$ui.switchView(UI.pages.PROPERTY,{talents:e,enableExtend:!0})}renderTalent(e,a){const c=e.dataSource,h=e.getChildByName("hboxTitle"),n=h.getChildByName("labTitle"),r=h.getChildByName("grades"),d=r.getChildByName("grade1"),o=r.getChildByName("grade2"),b=r.getChildByName("grade3"),T=e.getChildByName("labDescription"),C=e.getChildByName("unselected"),g=e.getChildByName("selected");switch(c.grade){case 1:r.x=0,n.x=1,d.visible=!0,o.visible=!1,b.visible=!1;break;case 2:r.x=0,n.x=1,d.visible=!1,o.visible=!0,b.visible=!1;break;case 3:r.x=0,n.x=1,d.visible=!1,o.visible=!1,b.visible=!0;break;default:r.x=1,n.x=0,d.visible=!1,o.visible=!1,b.visible=!1;break}n.text=c.name,n.event(Laya.Event.RESIZE),T.text=c.description,C.visible=!(g.visible=i(this,t).has(a)),e.offAll(Laya.Event.CLICK),e.on(Laya.Event.CLICK,this,()=>{if(i(this,t).has(a))i(this,t).delete(a);else{if(i(this,t).size>=core.talentSelectLimit)return $$event("message",["F_TalentSelectLimit",core.talentSelectLimit]);const m=core.exclude([...i(this,t)].map(v=>this.listTalents.array[v].id),this.listTalents.array[a].id);if(m!=null){for(const{name:v,id:y}of this.listTalents.array)if(m==y)return $$event("message",["F_TalentConflict",v]);return}i(this,t).add(a)}this.btnNext.label=i(this,t).size===core.talentSelectLimit?"UI_Next":"UI_Talent_Select_Uncomplete",C.visible=!(g.visible=i(this,t).has(a))})}}t=new WeakMap;export{N as default};
|
||||
1
public/assets/talent-lizrVIVp.js
Normal file
1
public/assets/talent-lizrVIVp.js
Normal file
@@ -0,0 +1 @@
|
||||
class o extends ui.view.DefaultTheme.TalentUI{constructor(){super(),this.btnDrawCard.on(Laya.Event.CLICK,this,this.onClickDrawCard),this.btnNext.on(Laya.Event.CLICK,this,this.onClickNext),this.listTalents.renderHandler=Laya.Handler.create(this,this.renderTalent,null,!1),this.listTalents.scrollBar.elasticDistance=150}#e=new Set;init(){this.pageDrawCard.visible=!0,this.pageResult.visible=!1,this.btnNext.label="UI_Talent_Select_Uncomplete",this.#e.clear()}close(){}onClickDrawCard(){this.pageDrawCard.visible=!1,this.pageResult.visible=!0,this.listTalents.array=core.talentRandom()}onClickNext(){if(this.#e.size<core.talentSelectLimit)return $$event("message",["F_TalentSelectNotComplect",core.talentSelectLimit]);const e=[...this.#e].map(t=>this.listTalents.array[t]);$ui.switchView(UI.pages.PROPERTY,{talents:e,enableExtend:!0})}renderTalent(e,t){const s=e.dataSource,r=e.getChildByName("blank");e.label=$_.format($lang.F_TalentSelection,s);const i=$ui.common.card[s.grade],n=()=>{const a=this.#e.has(t);r.pause=!a,$_.deepMapSet(e,a?i.selected:i.normal)};n(),e.offAll(Laya.Event.CLICK),e.on(Laya.Event.CLICK,this,()=>{if(this.#e.has(t))this.#e.delete(t);else{if(this.#e.size>=core.talentSelectLimit)return $$event("message",["F_TalentSelectLimit",core.talentSelectLimit]);const a=core.exclude([...this.#e].map(l=>this.listTalents.array[l].id),this.listTalents.array[t].id);if(a!=null){for(const{name:l,id:c}of this.listTalents.array)if(a==c)return $$event("message",["F_TalentConflict",l]);return}this.#e.add(t)}this.btnNext.label=this.#e.size===core.talentSelectLimit?"UI_Next":"UI_Talent_Select_Uncomplete",n()})}}export{o as default};
|
||||
1
public/assets/thanks-CuRlAQkm.js
Normal file
1
public/assets/thanks-CuRlAQkm.js
Normal file
@@ -0,0 +1 @@
|
||||
class p extends ui.view.DefaultTheme.ThanksUI{constructor(){super(),this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN)),this.listSupports.renderHandler=Laya.Handler.create(this,this.renderSupport,null,!1),this.panelTopSupports.vScrollBar.elasticDistance=150,this.listSupports.scrollBar.elasticDistance=150,this.btnAFD.on(Laya.Event.CLICK,this,goto,["sponsor_afd"]),this.btnDDF.on(Laya.Event.CLICK,this,goto,["sponsor_ddf"])}static#o=Laya.plugin.extractComponents(p.uiView,["boxTopSupport"]);#e(){const t=p.#o("boxTopSupport");return t.name=t.getChildByName("name"),t.comment=t.getChildByName("comment"),$_.deepMapSet(t,$ui.common.topSupportItem),t}#t;init(){const t=[];this.#t=[],core.specialThanks.sort(()=>.5-Math.random()).forEach(({group:s,name:e,comment:o,color:r})=>s==2?t.push({name:e,color:r}):this.renderTopSupport(e,o,r)),this.listSupports.array=t}renderTopSupport(t,s,e){const o=this.#e();o.name.text=t,o.comment.text=s,o.name.color=e||"#000000",this.vboxTopSupports.addChild(o),this.#t.push(o),this.#t.forEach((r,a)=>r.y=a)}renderSupport(t){const{name:s,color:e}=t.dataSource;t.text=s,t.color=e||$ui.common.defaultFontColor}close(){this.#t.forEach(t=>{t.removeSelf(),t.destroy()}),this.#t=null}}export{p as default};
|
||||
@@ -1 +0,0 @@
|
||||
var S=o=>{throw TypeError(o)};var m=(o,e,t)=>e.has(o)||S("Cannot "+t);var n=(o,e,t)=>(m(o,e,"read from private field"),t?t.call(o):e.get(o)),u=(o,e,t)=>e.has(o)?S("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),d=(o,e,t,s)=>(m(o,e,"write to private field"),s?s.call(o,t):e.set(o,t),t),C=(o,e,t)=>(m(o,e,"access private method"),t);var h,l,y,r;const i=class i extends ui.view.DefaultTheme.ThanksUI{constructor(){super();u(this,l);u(this,r);this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN)),this.listSupports.renderHandler=Laya.Handler.create(this,this.renderSupport,null,!1),this.panelTopSupports.vScrollBar.elasticDistance=150,this.listSupports.scrollBar.elasticDistance=150,this.btnAFD.on(Laya.Event.CLICK,this,goto,["sponsor_afd"]),this.btnDDF.on(Laya.Event.CLICK,this,goto,["sponsor_ddf"])}init(){const t=[];d(this,r,[]),core.specialThanks.sort(()=>.5-Math.random()).forEach(({group:s,name:a,comment:p,color:c})=>s==2?t.push({name:a,color:c}):this.renderTopSupport(a,p,c)),this.listSupports.array=t}renderTopSupport(t,s,a){const p=C(this,l,y).call(this);p.name.text=t,p.comment.text=s,p.name.color=a||"#000000",this.vboxTopSupports.addChild(p),n(this,r).push(p),n(this,r).forEach((c,x)=>c.y=x)}renderSupport(t){const{name:s,color:a}=t.dataSource;t.text=s,t.color=a||$ui.common.defaultFontColor}close(){n(this,r).forEach(t=>{t.removeSelf(),t.destroy()}),d(this,r,null)}};h=new WeakMap,l=new WeakSet,y=function(){var s;const t=n(s=i,h).call(s,"boxTopSupport");return t.name=t.getChildByName("name"),t.comment=t.getChildByName("comment"),$_.deepMapSet(t,$ui.common.topSupportItem),t},r=new WeakMap,u(i,h,Laya.plugin.extractComponents(i.uiView,["boxTopSupport"]));let f=i;export{f as default};
|
||||
3
public/assets/trajectory-0C0osExv.js
Normal file
3
public/assets/trajectory-0C0osExv.js
Normal file
@@ -0,0 +1,3 @@
|
||||
class i extends ui.view.DefaultTheme.TrajectoryUI{constructor(){super();let t=[0,0];this.panelTrajectory.on(Laya.Event.MOUSE_DOWN,this,e=>t=[e.stageX,e.stageY]),this.panelTrajectory.on(Laya.Event.MOUSE_UP,this,e=>{const s=e.stageX-t[0],a=e.stageY-t[1];Math.sqrt(Math.abs(s)+Math.abs(a))>10||this.onNext()}),this.btnSummary.on(Laya.Event.CLICK,this,this.onSummary),this.panelTrajectory.vScrollBar.elasticDistance=150,this.scbSpeed.on(Laya.Event.CHANGE,this,()=>this.speed=this.scbSpeed.value),this.scbSpeed.on(Laya.Event.MOUSE_UP,this,()=>this.onNext())}#a;#e;static load(){return["images/atlas/images/progress.atlas","images/atlas/images/slider.atlas"]}static#o=Laya.plugin.extractComponents(i.uiView,["boxTrajectoryItem"]);#n(){const t=i.#o("boxTrajectoryItem");t.labContent=t.getChildByName("labContent"),t.labAge=t.getChildByName("hboxAge").getChildByName("labAge");const e=$ui.common.trajectoryItem;return $_.deepMapSet(t,e.box),t.grade=s=>{$_.deepMapSet(t,e.grade[s||0])},t.getChildByName("hboxAge")._childs.forEach(s=>s.color=e.ageColor),t.labContent.color=e.contentColor,t}#s;#t;#i;#r;init({propertyAllocate:t,talents:e,enableExtend:s}){this.#r=s,this.boxParticle.visible=!1,this.boxSpeed.visible=!0,this.btnSummary.visible=!1,this.#t=[],this.#s=!1,this.#i=e,core.start(t),this.updateProperty(),this.onNext()}close(){this.scbSpeed.value=0,this.speed=0,this.#t.forEach(t=>{t.removeSelf(),t.destroy()}),this.#t=null}updateProperty(){const t=core.PropertyTypes,e=core.propertys;this.labCharm.text=e[t.CHR],this.labIntelligence.text=e[t.INT],this.labStrength.text=e[t.STR],this.labMoney.text=e[t.MNY],this.labSpirit.text=e[t.SPR]}onNext(){if(this.#s)return;const{age:t,content:e,isEnd:s}=core.next();this.#s=s,s&&(this.boxSpeed.visible=!1,this.btnSummary.visible=!0,Laya.timer.frameOnce(1,this,()=>{this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight)})),this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight),this.renderTrajectory(t,e),t>=100&&(this.boxParticle.visible=!0),this.updateProperty()}renderTrajectory(t,e){const s=this.#n();s.labAge.text=""+t,s.labContent.text=e.map(({type:a,description:r,grade:h,name:n,postEvent:o})=>{switch(a){case"TLT":return`天赋【${n}】发动:${r}`;case"EVT":return r+(o?`
|
||||
${o}`:"")}}).join(`
|
||||
`),s.grade(e[e.length-1].grade),this.vboxTrajectory.addChild(s),this.#t.push(s),s.y=this.vboxTrajectory.height}onSummary(){const t=this.#i;$ui.switchView(UI.pages.SUMMARY,{talents:t,enableExtend:this.#r})}get speed(){return this.#a}set speed(t){this.#a=t,this.prgSpeed.value=t/this.scbSpeed.max,clearInterval(this.#e),this.#e=null,t&&(this.#e=setInterval(()=>this.onNext(),3e3*(1-this.prgSpeed.value)+300))}}export{i as default};
|
||||
@@ -1,3 +0,0 @@
|
||||
var U=s=>{throw TypeError(s)};var g=(s,i,t)=>i.has(s)||U("Cannot "+t);var h=(s,i,t)=>(g(s,i,"read from private field"),t?t.call(s):i.get(s)),l=(s,i,t)=>i.has(s)?U("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),o=(s,i,t,e)=>(g(s,i,"write to private field"),e?e.call(s,t):i.set(s,t),t),f=(s,i,t)=>(g(s,i,"access private method"),t);var m,p,T,E,L,b,c,S,x;const v=class v extends ui.view.CyberTheme.CyberTrajectoryUI{constructor(){super();l(this,E);l(this,m);l(this,p);l(this,b);l(this,c);l(this,S);l(this,x);let t=[0,0];this.panelTrajectory.on(Laya.Event.MOUSE_DOWN,this,n=>t=[n.stageX,n.stageY]),this.panelTrajectory.on(Laya.Event.MOUSE_UP,this,n=>{const r=n.stageX-t[0],j=n.stageY-t[1];Math.sqrt(Math.abs(r)+Math.abs(j))>10||this.onNext()}),this.btnSummary.on(Laya.Event.CLICK,this,this.onSummary),this.panelTrajectory.vScrollBar.elasticDistance=150;let e=null,a=null;const y=n=>{let r=this.panelTrajectory.vScrollBar.value+n;r<0&&(r=0),r>this.panelTrajectory.vScrollBar.max&&(r=this.panelTrajectory.vScrollBar.max),this.panelTrajectory.scrollTo(0,r)},u=(n,r)=>{n.off(Laya.Event.CLICK,this,y),n.on(Laya.Event.CLICK,this,y,[100*r]),a=setTimeout(()=>{n.off(Laya.Event.CLICK,this,y),e=setInterval(()=>y(10*r),10)},100)},d=()=>{e&&(clearInterval(e),e=null),a&&(clearTimeout(a),a=null)};this.btnUp.on(Laya.Event.MOUSE_DOWN,this,u,[this.btnUp,-1]),this.btnDown.on(Laya.Event.MOUSE_DOWN,this,u,[this.btnDown,1]),this.btnUp.on(Laya.Event.MOUSE_UP,this,d),this.btnUp.on(Laya.Event.MOUSE_OUT,this,d),this.btnDown.on(Laya.Event.MOUSE_UP,this,d),this.btnDown.on(Laya.Event.MOUSE_OUT,this,d),this.scbSpeed.on(Laya.Event.CHANGE,this,()=>this.speed=this.scbSpeed.value),this.scbSpeed.on(Laya.Event.MOUSE_UP,this,()=>this.onNext())}init({propertyAllocate:t,talents:e,enableExtend:a}){o(this,x,a),this.boxParticle.visible=!1,this.boxSpeed.visible=!0,this.btnSummary.visible=!1,o(this,c,[]),o(this,b,!1),o(this,S,e),core.start(t),this.updateProperty(),this.onNext()}close(){this.scbSpeed.value=0,this.speed=0,h(this,c).forEach(t=>{t.removeSelf(),t.destroy()}),o(this,c,null)}updateProperty(){const t=core.PropertyTypes,e=core.propertys;this.labCharm.text=e[t.CHR],this.labIntelligence.text=e[t.INT],this.labStrength.text=e[t.STR],this.labMoney.text=e[t.MNY],this.labSpirit.text=e[t.SPR]}onNext(){if(h(this,b))return;const{age:t,content:e,isEnd:a}=core.next();o(this,b,a),a&&(this.boxSpeed.visible=!1,this.btnSummary.visible=!0,Laya.timer.frameOnce(1,this,()=>{this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight)})),this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight),this.renderTrajectory(t,e),t>=100&&(this.boxParticle.visible=!0),this.updateProperty()}renderTrajectory(t,e){const a=f(this,E,L).call(this);a.labAge.text=""+t,a.labContent.text=e.map(({type:y,description:u,grade:d,name:n,postEvent:r})=>{switch(y){case"TLT":return`天赋【${n}】发动:${u}`;case"EVT":return u+(r?`
|
||||
${r}`:"")}}).join(`
|
||||
`),$_.deepMapSet(a.boxGrade,$ui.common.gradeBlk[e[e.length-1].grade||0]),this.vboxTrajectory.addChild(a),h(this,c).push(a),a.y=this.vboxTrajectory.height}onSummary(){const t=h(this,S);$ui.switchView(UI.pages.SUMMARY,{talents:t,enableExtend:h(this,x)})}get speed(){return h(this,m)}set speed(t){o(this,m,t),this.prgSpeed.value=t/this.scbSpeed.max,clearInterval(h(this,p)),o(this,p,null),t&&o(this,p,setInterval(()=>this.onNext(),3e3*(1-this.prgSpeed.value)+300))}};m=new WeakMap,p=new WeakMap,T=new WeakMap,E=new WeakSet,L=function(){var e;const t=h(e=v,T).call(e,"boxTrajectoryItem");return t.labContent=t.getChildByName("labContent"),t.labAge=t.getChildByName("hboxAge").getChildByName("labAge"),t.boxGrade=t.getChildByName("boxGrade"),t},b=new WeakMap,c=new WeakMap,S=new WeakMap,x=new WeakMap,l(v,T,Laya.plugin.extractComponents(v.uiView,["boxTrajectoryItem"]));let C=v;export{C as default};
|
||||
@@ -1,3 +0,0 @@
|
||||
var v=s=>{throw TypeError(s)};var x=(s,i,t)=>i.has(s)||v("Cannot "+t);var o=(s,i,t)=>(x(s,i,"read from private field"),t?t.call(s):i.get(s)),n=(s,i,t)=>i.has(s)?v("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(s):i.set(s,t),r=(s,i,t,e)=>(x(s,i,"write to private field"),e?e.call(s,t):i.set(s,t),t),C=(s,i,t)=>(x(s,i,"access private method"),t);var y,c,u,m,j,p,l,b,g;const d=class d extends ui.view.DefaultTheme.TrajectoryUI{constructor(){super();n(this,m);n(this,y);n(this,c);n(this,p);n(this,l);n(this,b);n(this,g);let t=[0,0];this.panelTrajectory.on(Laya.Event.MOUSE_DOWN,this,e=>t=[e.stageX,e.stageY]),this.panelTrajectory.on(Laya.Event.MOUSE_UP,this,e=>{const a=e.stageX-t[0],h=e.stageY-t[1];Math.sqrt(Math.abs(a)+Math.abs(h))>10||this.onNext()}),this.btnSummary.on(Laya.Event.CLICK,this,this.onSummary),this.panelTrajectory.vScrollBar.elasticDistance=150,this.scbSpeed.on(Laya.Event.CHANGE,this,()=>this.speed=this.scbSpeed.value),this.scbSpeed.on(Laya.Event.MOUSE_UP,this,()=>this.onNext())}static load(){return["images/atlas/images/progress.atlas","images/atlas/images/slider.atlas"]}init({propertyAllocate:t,talents:e,enableExtend:a}){r(this,g,a),this.boxParticle.visible=!1,this.boxSpeed.visible=!0,this.btnSummary.visible=!1,r(this,l,[]),r(this,p,!1),r(this,b,e),core.start(t),this.updateProperty(),this.onNext()}close(){this.scbSpeed.value=0,this.speed=0,o(this,l).forEach(t=>{t.removeSelf(),t.destroy()}),r(this,l,null)}updateProperty(){const t=core.PropertyTypes,e=core.propertys;this.labCharm.text=e[t.CHR],this.labIntelligence.text=e[t.INT],this.labStrength.text=e[t.STR],this.labMoney.text=e[t.MNY],this.labSpirit.text=e[t.SPR]}onNext(){if(o(this,p))return;const{age:t,content:e,isEnd:a}=core.next();r(this,p,a),a&&(this.boxSpeed.visible=!1,this.btnSummary.visible=!0,Laya.timer.frameOnce(1,this,()=>{this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight)})),this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight),this.renderTrajectory(t,e),t>=100&&(this.boxParticle.visible=!0),this.updateProperty()}renderTrajectory(t,e){const a=C(this,m,j).call(this);a.labAge.text=""+t,a.labContent.text=e.map(({type:h,description:S,grade:N,name:E,postEvent:T})=>{switch(h){case"TLT":return`天赋【${E}】发动:${S}`;case"EVT":return S+(T?`
|
||||
${T}`:"")}}).join(`
|
||||
`),a.grade(e[e.length-1].grade),this.vboxTrajectory.addChild(a),o(this,l).push(a),a.y=this.vboxTrajectory.height}onSummary(){const t=o(this,b);$ui.switchView(UI.pages.SUMMARY,{talents:t,enableExtend:o(this,g)})}get speed(){return o(this,y)}set speed(t){r(this,y,t),this.prgSpeed.value=t/this.scbSpeed.max,clearInterval(o(this,c)),r(this,c,null),t&&r(this,c,setInterval(()=>this.onNext(),3e3*(1-this.prgSpeed.value)+300))}};y=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakSet,j=function(){var a;const t=o(a=d,u).call(a,"boxTrajectoryItem");t.labContent=t.getChildByName("labContent"),t.labAge=t.getChildByName("hboxAge").getChildByName("labAge");const e=$ui.common.trajectoryItem;return $_.deepMapSet(t,e.box),t.grade=h=>{$_.deepMapSet(t,e.grade[h||0])},t.getChildByName("hboxAge")._childs.forEach(h=>h.color=e.ageColor),t.labContent.color=e.contentColor,t},p=new WeakMap,l=new WeakMap,b=new WeakMap,g=new WeakMap,n(d,u,Laya.plugin.extractComponents(d.uiView,["boxTrajectoryItem"]));let f=d;export{f as default};
|
||||
3
public/assets/trajectory-CzhsMncf.js
Normal file
3
public/assets/trajectory-CzhsMncf.js
Normal file
@@ -0,0 +1,3 @@
|
||||
class h extends ui.view.CyberTheme.CyberTrajectoryUI{constructor(){super();let t=[0,0];this.panelTrajectory.on(Laya.Event.MOUSE_DOWN,this,a=>t=[a.stageX,a.stageY]),this.panelTrajectory.on(Laya.Event.MOUSE_UP,this,a=>{const i=a.stageX-t[0],l=a.stageY-t[1];Math.sqrt(Math.abs(i)+Math.abs(l))>10||this.onNext()}),this.btnSummary.on(Laya.Event.CLICK,this,this.onSummary),this.panelTrajectory.vScrollBar.elasticDistance=150;let e=null,s=null;const r=a=>{let i=this.panelTrajectory.vScrollBar.value+a;i<0&&(i=0),i>this.panelTrajectory.vScrollBar.max&&(i=this.panelTrajectory.vScrollBar.max),this.panelTrajectory.scrollTo(0,i)},n=(a,i)=>{a.off(Laya.Event.CLICK,this,r),a.on(Laya.Event.CLICK,this,r,[100*i]),s=setTimeout(()=>{a.off(Laya.Event.CLICK,this,r),e=setInterval(()=>r(10*i),10)},100)},o=()=>{e&&(clearInterval(e),e=null),s&&(clearTimeout(s),s=null)};this.btnUp.on(Laya.Event.MOUSE_DOWN,this,n,[this.btnUp,-1]),this.btnDown.on(Laya.Event.MOUSE_DOWN,this,n,[this.btnDown,1]),this.btnUp.on(Laya.Event.MOUSE_UP,this,o),this.btnUp.on(Laya.Event.MOUSE_OUT,this,o),this.btnDown.on(Laya.Event.MOUSE_UP,this,o),this.btnDown.on(Laya.Event.MOUSE_OUT,this,o),this.scbSpeed.on(Laya.Event.CHANGE,this,()=>this.speed=this.scbSpeed.value),this.scbSpeed.on(Laya.Event.MOUSE_UP,this,()=>this.onNext())}#a;#e;static#n=Laya.plugin.extractComponents(h.uiView,["boxTrajectoryItem"]);#o(){const t=h.#n("boxTrajectoryItem");return t.labContent=t.getChildByName("labContent"),t.labAge=t.getChildByName("hboxAge").getChildByName("labAge"),t.boxGrade=t.getChildByName("boxGrade"),t}#s;#t;#i;#r;init({propertyAllocate:t,talents:e,enableExtend:s}){this.#r=s,this.boxParticle.visible=!1,this.boxSpeed.visible=!0,this.btnSummary.visible=!1,this.#t=[],this.#s=!1,this.#i=e,core.start(t),this.updateProperty(),this.onNext()}close(){this.scbSpeed.value=0,this.speed=0,this.#t.forEach(t=>{t.removeSelf(),t.destroy()}),this.#t=null}updateProperty(){const t=core.PropertyTypes,e=core.propertys;this.labCharm.text=e[t.CHR],this.labIntelligence.text=e[t.INT],this.labStrength.text=e[t.STR],this.labMoney.text=e[t.MNY],this.labSpirit.text=e[t.SPR]}onNext(){if(this.#s)return;const{age:t,content:e,isEnd:s}=core.next();this.#s=s,s&&(this.boxSpeed.visible=!1,this.btnSummary.visible=!0,Laya.timer.frameOnce(1,this,()=>{this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight)})),this.panelTrajectory.scrollTo(0,this.panelTrajectory.contentHeight),this.renderTrajectory(t,e),t>=100&&(this.boxParticle.visible=!0),this.updateProperty()}renderTrajectory(t,e){const s=this.#o();s.labAge.text=""+t,s.labContent.text=e.map(({type:r,description:n,grade:o,name:a,postEvent:i})=>{switch(r){case"TLT":return`天赋【${a}】发动:${n}`;case"EVT":return n+(i?`
|
||||
${i}`:"")}}).join(`
|
||||
`),$_.deepMapSet(s.boxGrade,$ui.common.gradeBlk[e[e.length-1].grade||0]),this.vboxTrajectory.addChild(s),this.#t.push(s),s.y=this.vboxTrajectory.height}onSummary(){const t=this.#i;$ui.switchView(UI.pages.SUMMARY,{talents:t,enableExtend:this.#r})}get speed(){return this.#a}set speed(t){this.#a=t,this.prgSpeed.value=t/this.scbSpeed.max,clearInterval(this.#e),this.#e=null,t&&(this.#e=setInterval(()=>this.onNext(),3e3*(1-this.prgSpeed.value)+300))}}export{h 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
@@ -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-BOxtKFg5.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index-BLsR_SyO.js"></script>
|
||||
</head>
|
||||
<body style="background:black"></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user