Deploying to gh-pages from @ VickScarlet/lifeRestart@8f46e286dd 🚀

This commit is contained in:
VickScarlet
2025-04-05 09:40:46 +00:00
parent e3d1b38c73
commit 6c1e71a964
152 changed files with 161173 additions and 0 deletions

View File

@@ -0,0 +1 @@
class c extends ui.view.DefaultTheme.AchievementUI{constructor(){super(),this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN)),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}init(){const{statistics:e,achievements:a,PropertyTypes:t}=core;this.listAchievements.array=a,this.labRemakeTimes.text=$_.format($lang.F_RemakeTimes,e[t.TMS].value),this.labRemakeTimesJudge.text=e[t.TMS].judge,$_.deepMapSet(this.boxRemakeTimes,$ui.common.achievement[e[t.TMS].grade]),this.labAchievementCount.text=$_.format($lang.F_AchievementCount,e[t.CACHV].value),this.labAchievementCountJudge.text=e[t.CACHV].judge,$_.deepMapSet(this.boxAchievementCount,$ui.common.achievement[e[t.CACHV].grade]),this.labEventRate.text=parseInt(e[t.REVT].value*100)+"%",this.prgEventRate.scaleX=e[t.REVT].value,$_.deepMapSet(this.boxEventRate,$ui.common.achievement[e[t.REVT].grade]),this.labTalentRate.text=parseInt(e[t.RTLT].value*100)+"%",this.prgTalentRate.scaleX=e[t.RTLT].value,$_.deepMapSet(this.boxTalentRate,$ui.common.achievement[e[t.RTLT].grade])}onRenderAchievement(e){const a=e.dataSource,t=e.getChildByName("name"),i=e.getChildByName("description"),n=e.getChildByName("boxMask");$_.deepMapSet(e,$ui.common.achievement[a.grade]),t.color=i.color=$ui.common.defaultFontColor,a.isAchieved?(t.text=a.name,i.text=a.description,n.visible=!1):(t.text=a.hide?"???":a.name,i.text=a.hide?"???":a.description,n.visible=!0)}}export{c as default};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
class s extends ui.view.CyberTheme.CyberAchievementPopupUI{constructor(){super()}async popup({achievement:a},t){Laya.Tween.clearAll(this),Laya.Tween.clearAll(this.boxBg),this.alpha=.8,this.labName.text=a.name,this.labName.color=$ui.common.grade[a.grade],this.x=-this.width,this.boxBg.x=this.boxBg.width,await Promise.all([Laya.promises.Tween.to(this,{x:0},300,Laya.Ease.strongOut),Laya.promises.Tween.to(this.boxBg,{x:0},300,Laya.Ease.strongOut,50)]),await Laya.promises.Tween.to(this,{alpha:0},3e3,Laya.Ease.strongIn)}}export{s as default};

View File

@@ -0,0 +1 @@
class s extends ui.view.DefaultTheme.AchievementPopupUI{constructor(){super()}async popup({achievement:a},t){Laya.Tween.clearAll(this),Laya.Tween.clearAll(this.boxBg),this.alpha=.8,this.labName.text=a.name,this.labName.color=$ui.common.grade[a.grade],this.x=-this.width,this.boxBg.x=this.boxBg.width,await Promise.all([Laya.promises.Tween.to(this,{x:0},300,Laya.Ease.strongOut),Laya.promises.Tween.to(this.boxBg,{x:0},300,Laya.Ease.strongOut,50)]),await Laya.promises.Tween.to(this,{alpha:0},3e3,Laya.Ease.strongIn)}}export{s as default};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1,7 @@
const e={UI_Next:"Next",UI_Back:"Back",UI_Skip:"Skip",UI_Done:"Done",UI_Cancel:"Cancel",UI_Confirm:"Confirm",UI_Retry:"Retry",UI_Yes:"Yes",UI_No:"No",UI_OK:"OK",UI_Close:"Close",UI_Open:"Open",UI_Search:"Search",UI_Loading:"Now Loading",UI_Error:"Error",UI_Colon:":",UI_Times:"Times",UI_Count:"",UI_Property_Charm:"CHR",UI_Property_Intelligence:"INT",UI_Property_Strength:"STR",UI_Property_Money:"MNY",UI_Property_Spirit:"SPR",UI_Title_Remake:"Remake Simulate",UI_Title_Subsequent:"The rubbish life doesn't want to stay for a second",UI_Remake:"↻Remake Now",UI_Thanks:"Thx",UI_Achievement:"Achv",UI_Cyber_Theme_Art_Design:"UI Design by 晰晰",UI_Banner:`作者的新作《纸上谈亲》已上线小程序
微信/抖音搜索“纸上谈亲”即可游玩~`,UI_Title_Talent:"Talent Draw",UI_Talent_Draw:"!10 Pulls!",UI_Talent_Select_Uncomplete:"Choose 3 Talents, Please.",UI_Title_Property:"Property Allocate",UI_Left_Property_Point:"Left Property Point",UI_Selected_Talent:"Selected Talent",UI_Random_Allocate:"Random Allocate",UI_Make_New_Life:"Make New Life",UI_Manual:"Manual",UI_Auto:"Auto",UI_Goto_Summary:"Goto Summary",UI_Title_Summary:"Life Summary",UI_Talent_Extend:"Talent, You can choose one to extend",UI_Remake_Again:"Remake Again",UI_Final_Age:"Age",UI_Total_Judge:"Judge",UI_Achievement_Count:"Achievement",UI_Remake_Times:"Remake Times",UI_Event_Collection_Rate:"Event Collection",UI_Talent_Collection_Rate:"Talent Collection",UI_Statistics:"Statistics",UI_Rank:"Rank",UI_Achievement_Achieve:"Achievement",UI_Judge_Level_0:"Hell",UI_Judge_Level_1:"Worse",UI_Judge_Level_2:"Bad",UI_Judge_Level_3:"Normal",UI_Judge_Level_4:"Good",UI_Judge_Level_5:"Great",UI_Judge_Level_6:"Excellent",UI_Judge_Level_7:"Perfect",UI_Spirit_Judge_Level_0:"Hell",UI_Spirit_Judge_Level_1:"Tortured",UI_Spirit_Judge_Level_2:"Unlucky",UI_Spirit_Judge_Level_3:"Normal",UI_Spirit_Judge_Level_4:"Happy",UI_Spirit_Judge_Level_5:"Blissful ",UI_Spirit_Judge_Level_6:"Paradise",UI_AGE_Judge_Level_0:"Stillborn",UI_AGE_Judge_Level_1:"Early",UI_AGE_Judge_Level_2:"Young",UI_AGE_Judge_Level_3:"Heyday",UI_AGE_Judge_Level_4:"Middle",UI_AGE_Judge_Level_5:"Sexagenarian",UI_AGE_Judge_Level_6:"Septuagenarian",UI_AGE_Judge_Level_7:"Octogenarian",UI_AGE_Judge_Level_8:"Nonagenarian",UI_AGE_Judge_Level_9:"不老",UI_AGE_Judge_Level_10:"修仙",UI_AGE_Judge_Level_11:"仙寿",UI_Intelligence_Judge_Level_7:"识海",UI_Intelligence_Judge_Level_8:"元神",UI_Intelligence_Judge_Level_9:"仙魂",UI_Strength_Judge_Level_7:"凝气",UI_Strength_Judge_Level_8:"筑基",UI_Strength_Judge_Level_9:"金丹",UI_Strength_Judge_Level_10:"元婴",UI_Strength_Judge_Level_11:"仙体",UI_Remake_Times_Judge_Level_0:"Purple rate constant",UI_Remake_Times_Judge_Level_1:"Purple rate double",UI_Remake_Times_Judge_Level_2:"Purple rate triple",UI_Remake_Times_Judge_Level_3:"Purple rate Quadruple",UI_Remake_Times_Judge_Level_4:"Purple rate Quintuple",UI_Remake_Times_Judge_Level_5:"Purple rate Sextuple",UI_Achievement_Count_Judge_Level_0:"Orange rate constant",UI_Achievement_Count_Judge_Level_1:"Orange rate double",UI_Achievement_Count_Judge_Level_2:"Orange rate triple",UI_Achievement_Count_Judge_Level_3:"Orange rate Quadruple",UI_Achievement_Count_Judge_Level_4:"Orange rate Quintuple",UI_Achievement_Count_Judge_Level_5:"Orange rate Sextuple",UI_Support_Programmer:"Programmer",UI_Support_Designer:"Designer",UI_Save:"Save",UI_Load:"Load",UI_Read:"Copy",UI_Write:"Paste",UI_CopySuccess:"Copy to clipboard success",UI_CopyFailed:"Copy to clipboard Failed",UI_PasteSuccessDecodeSuccess:"Load Success!",UI_PasteSuccessDecodeFailed:"Paste success, but load Failed!",UI_PasteFailedDecodeSuccess:"Paste Failed, use input load success!",UI_PasteFailedDecodeFailed:"Paste Failed, use input load Failed!",UI_LoadSuccess:"Load Success!",UI_LoadFailed:"Load Failed!",UI_Title_Celebrity:"Past life was...",UI_CustomMode:"Custom",UI_CustomModeDescription:`10 Talent
Custom property`,UI_CelebrityMode:"Celebrity",UI_CelebrityModeDescription:`Past life is celebrity
Rebirth to modern`,UI_AllNot:"↻All Not",UI_UniqueWaTaShi:"Unique of mine",UI_UniqueWaTaShiContent:`
Unique character card different from other 60 million player
All property, All talent, All random
All has only one chance`,UI_GenerateNow:"Generate Now",M_NoRank:"There is no rank",M_PleaseSelectOne:"Please Select One",M_UnGenerate:"Unique Character no generate",M_DisableExtendTalent:"Celebrity mode can't extends talent",F_RemakeTimes:"Remake {0} Times",F_AchievementCount:"Achievement {0}",F_TalentSelection:"{name} ({description})",F_TalentConflict:"Conflict with talent ({0})",F_TalentSelectLimit:"Talent select limit {0}",F_TalentSelectNotComplect:"Please select {0} talent",F_PropertyPointLeft:"You have left {0} property point",F_TalentReplace:"Talent replace [{source.name}] -> [{target.name}]",F_PropertyStr:"CHR{CHR} INT{INT} STR{STR} MNY{MNY}"};export{e as default};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
class e extends ui.view.LoadingUI{constructor(){super()}static load(){return["images/atlas/images/resource.atlas"]}show(){}onProgress(a){}}export{e as default};

View File

@@ -0,0 +1 @@
class s extends ui.view.DefaultTheme.MainUI{constructor(){super(),this.btnRemake.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MODE)),this.btnAchievement.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.ACHIEVEMENT)),this.btnThanks.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.THANKS)),this.btnGithub.on(Laya.Event.CLICK,this,goto,["github"]),this.btnDiscord.on(Laya.Event.CLICK,this,goto,["discord"]),this.btnThemes.on(Laya.Event.CLICK,this,()=>$ui.showDialog(UI.pages.THEMES)),this.btnSaveLoad.on(Laya.Event.CLICK,this,()=>$ui.showDialog(UI.pages.SAVELOAD))}static load(){return["images/atlas/images/icons.atlas"]}init(){this.banner.visible=this.btnDiscord.visible=this.btnAchievement.visible=this.btnThanks.visible=!!core.times;const t=this.labSubTitle.text;this.labSubTitle.text=" ",this.labSubTitle.text=t}}export{s as default};

View File

@@ -0,0 +1 @@
class i extends ui.view.CyberTheme.CyberMainUI{constructor(){super(),this.btnRemake.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MODE)),this.btnAchievement.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.ACHIEVEMENT)),this.btnThanks.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.THANKS)),this.btnGithub.on(Laya.Event.CLICK,this,goto,["github"]),this.btnDiscord.on(Laya.Event.CLICK,this,goto,["discord"]),this.btnThemes.on(Laya.Event.CLICK,this,()=>$ui.showDialog(UI.pages.THEMES)),this.btnSaveLoad.on(Laya.Event.CLICK,this,()=>$ui.showDialog(UI.pages.SAVELOAD)),this.on(Laya.Event.RESIZE,this,()=>{const s=Math.max(this.width/this.imgBg.width,this.height/this.imgBg.height);this.imgBg.scale(s,s)})}static load(){return["fonts/方正像素12.ttf","images/atlas/images/accessories.atlas","images/atlas/images/border.atlas","images/atlas/images/button.atlas","images/atlas/images/icons.atlas","images/atlas/images/progress.atlas","images/atlas/images/slider.atlas"]}init(){this.banner.visible=this.btnDiscord.visible=this.btnAchievement.visible=this.btnThanks.visible=!!core.times}}export{i as default};

View File

@@ -0,0 +1 @@
class t extends ui.view.MessagePopupUI{constructor(){super(),this.left=this.right=0,this.boxBg.defaultColor="#000000",this.boxBg.hoverColor="#000000",this.boxBg.radius=20}async popup({message:s},a){this.message.text=s,this.message.commitMeasure(),this.height=this.message.height+this.boxBg.radius*2+this.message.fontSize,Laya.Tween.clearAll(this),this.alpha=0,this.y=-2*this.height,await Laya.promises.Tween.to(this,{y:0,alpha:1},300,Laya.Ease.backOut),await Laya.promises.Tween.to(this,{alpha:0},300,Laya.Ease.strongIn,3e3)}}export{t as default};

View File

@@ -0,0 +1 @@
class t extends ui.view.CyberTheme.ModeUI{constructor(){super(),this.btnCustom.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.TALENT)),this.btnCelebrity.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.CELEBRITY))}}export{t as default};

View File

@@ -0,0 +1 @@
class t extends ui.view.DefaultTheme.ModeUI{constructor(){super(),this.btnCustom.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.TALENT)),this.btnCelebrity.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.CELEBRITY))}}export{t as default};

View File

@@ -0,0 +1 @@
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

View File

@@ -0,0 +1,37 @@
class c extends ui.view.SaveLoadUI{constructor(){super(),this.btnClose.on(Laya.Event.CLICK,this,async()=>{await this.close(),$ui.switchView(UI.pages.MAIN)}),this.btnRead.on(Laya.Event.CLICK,this,async()=>{const t=await $$copy(this.input.text=this.data);$$event("message",[t?"UI_CopySuccess":"UI_CopyFailed"])}),this.btnWrite.on(Laya.Event.CLICK,this,async()=>{const t=await $$read();t==!1?this.data=[this.input.text,"UI_PasteFailedDecodeSuccess","UI_PasteFailedDecodeFailed"]:(this.input.text=t,this.data=[t,"UI_PasteSuccessDecodeSuccess","UI_PasteSuccessDecodeFailed"])}),this.btnSave.on(Laya.Event.CLICK,this,()=>{let t=new Blob([this.data],{type:"application/json"});t=(t.slice||t.webkitSlice||t.mozSlice).call(t,0,t.size,"application/octet-stream");const e=document.createElementNS("http://www.w3.org/1999/xhtml","a");e.href=URL.createObjectURL(t),e.download=`Remake_save_${new Date().toISOString().replace(":",".")}.json`,document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(e.href)}),this.btnLoad.on(Laya.Event.CLICK,this,()=>{const t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("name","file"),t.setAttribute("accept","application/json"),t.setAttribute("style","display: none;"),document.body.appendChild(t),t.click(),t.onchange=a=>{const e=a.target.files[0];if(!e)return;const i=new FileReader;i.onload=()=>this.data=[i.result],i.readAsText(e),document.body.removeChild(e)}}),this.input.on(Laya.Event.MOUSE_DOWN,this,()=>{this.input.setSelection(0,this.input.text.length)}),this.btnBackup.on(Laya.Event.CLICK,this,()=>{const t=document.createElement("div");document.body.appendChild(t),t.style=`
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.95`;const a=document.createElement("div");a.style=`
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #fff;
opacity: 0.95`,document.body.appendChild(t),t.appendChild(a);const e=document.createElement("textarea");e.style=`position: absolute; width: ${window.innerWidth}px; height: ${window.innerHeight}px;`,e.value=JSON.stringify(JSON.parse(this.data),null,4),t.appendChild(e);const i=document.createElement("div");i.style=`
position: absolute;
top: 0;
right: 0;
width: 100px;
height: 100px;
background: red;
font-size:100px;
padding: 0;
line-height: 100px;
color: white;
opacity: 0.7`,i.innerHTML="×",t.appendChild(i),i.onclick=()=>t.remove();const o=document.createElement("div");o.style=`
position: absolute;
bottom: 0;
right: 0;
width: 100px;
height: 100px;
background: limegreen;
font-size: 35px;
padding: 0;
line-height: 50px;
color: white;
opacity: 0.7`,o.innerHTML="LOAD<br>读取",t.appendChild(o),o.onclick=()=>this.data=[e.value,"成功/success","失败/failed",!0]})}static load(){return["images/atlas/images/radio.atlas"]}init(){this.input.text=this.data}get data(){const t={};return Object.keys(localStorage).filter(a=>a.substr(0,4)!="goog").forEach(a=>t[a]=localStorage[a]),JSON.stringify(t)}set data([t,a="UI_LoadSuccess",e="UI_LoadFailed",i]){try{const o=JSON.parse(t);for(const n in o)localStorage.setItem(n,o[n]);i?alert(a):$$event("message",[a]),$ui.theme=$ui.theme,this.btnClose.event(Laya.Event.CLICK)}catch(o){console.error(o),i?alert(`${e}
${o}`):$$event("message",[e])}}}export{c as default};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
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};

View File

@@ -0,0 +1 @@
class a extends ui.view.ThemesUI{constructor(){super(),this.btnClose.on(Laya.Event.CLICK,this,()=>this.close()),this.btnOK.on(Laya.Event.CLICK,this,async()=>{const t=this.selected;if(!t==$ui.theme)return this.close();$ui.theme=t,await this.close(),$ui.switchView(UI.pages.MAIN)})}static load(){return["images/atlas/images/radio.atlas"]}init(){this.selected=localStorage.getItem("theme")}get selected(){switch(this.radioTheme.selectedIndex){case 0:return"cyber";case 1:return"dark";case 2:return"light";default:return"default"}}set selected(t){let e;switch(t){case"cyber":e=0;break;case"dark":e=1;break;case"light":e=2;break;default:e=-1;break}this.radioTheme.selectedIndex=e}}export{a as default};

View File

@@ -0,0 +1,3 @@
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};

View File

@@ -0,0 +1,3 @@
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};

View File

@@ -0,0 +1,7 @@
const e={UI_Next:"下一步",UI_Back:"返回",UI_Skip:"跳过",UI_Done:"完成",UI_Cancel:"取消",UI_Confirm:"确认",UI_Retry:"重试",UI_Yes:"是",UI_No:"否",UI_OK:"确定",UI_Close:"关闭",UI_Open:"打开",UI_Search:"搜索",UI_Loading:"加载中...",UI_Error:"错误",UI_BackupBtn:"上面没有效果就试试这个吧",UI_Colon:"",UI_Times:"次",UI_Count:"个",UI_Property_Charm:"颜值",UI_Property_Intelligence:"智力",UI_Property_Strength:"体质",UI_Property_Money:"家境",UI_Property_Spirit:"快乐",UI_Title_Remake:"人生重开模拟器",UI_Title_Subsequent:"这垃圾人生一秒也不想待了",UI_Remake:"↻立即重开",UI_Thanks:"感谢",UI_Achievement:"成就",UI_Cyber_Theme_Art_Design:"UI 设计 by 晰晰",UI_Banner:`作者的新作《纸上谈亲》已上线小程序
微信/抖音搜索“纸上谈亲”即可游玩~`,UI_Title_Talent:"天赋抽卡",UI_Talent_Draw:"10连抽",UI_Talent_Select_Uncomplete:"请选取 3 个天赋",UI_Title_Property:"调整初始属性",UI_Left_Property_Point:"剩余属性点",UI_Selected_Talent:"已选天赋",UI_Random_Allocate:"随机分配",UI_Make_New_Life:"开始新人生",UI_Manual:"手动",UI_Auto:"自动",UI_Goto_Summary:"人生总结",UI_Title_Summary:"人生总结",UI_Talent_Extend:"天赋:你可以选择一个,下辈子还能抽到",UI_Remake_Again:"再次重开",UI_Final_Age:"享年",UI_Total_Judge:"总评",UI_Achievement_Count:"获得成就",UI_Remake_Times:"重开次数",UI_Event_Collection_Rate:"事件收集率",UI_Talent_Collection_Rate:"天赋收集率",UI_Statistics:"统计",UI_Rank:"排行榜",UI_Achievement_Achieve:"获得成就",UI_Judge_Level_0:"地狱",UI_Judge_Level_1:"折磨",UI_Judge_Level_2:"不佳",UI_Judge_Level_3:"普通",UI_Judge_Level_4:"优秀",UI_Judge_Level_5:"罕见",UI_Judge_Level_6:"逆天",UI_Judge_Level_7:"传说",UI_Spirit_Judge_Level_0:"地狱",UI_Spirit_Judge_Level_1:"折磨",UI_Spirit_Judge_Level_2:"不幸",UI_Spirit_Judge_Level_3:"普通",UI_Spirit_Judge_Level_4:"幸福",UI_Spirit_Judge_Level_5:"极乐",UI_Spirit_Judge_Level_6:"天命",UI_AGE_Judge_Level_0:"胎死腹中",UI_AGE_Judge_Level_1:"早夭",UI_AGE_Judge_Level_2:"少年",UI_AGE_Judge_Level_3:"盛年",UI_AGE_Judge_Level_4:"中年",UI_AGE_Judge_Level_5:"花甲",UI_AGE_Judge_Level_6:"古稀",UI_AGE_Judge_Level_7:"杖朝",UI_AGE_Judge_Level_8:"南山",UI_AGE_Judge_Level_9:"不老",UI_AGE_Judge_Level_10:"修仙",UI_AGE_Judge_Level_11:"仙寿",UI_Intelligence_Judge_Level_7:"识海",UI_Intelligence_Judge_Level_8:"元神",UI_Intelligence_Judge_Level_9:"仙魂",UI_Strength_Judge_Level_7:"凝气",UI_Strength_Judge_Level_8:"筑基",UI_Strength_Judge_Level_9:"金丹",UI_Strength_Judge_Level_10:"元婴",UI_Strength_Judge_Level_11:"仙体",UI_Remake_Times_Judge_Level_0:"抽到紫色概率不变",UI_Remake_Times_Judge_Level_1:"抽到紫色概率翻倍",UI_Remake_Times_Judge_Level_2:"抽到紫色概率三倍",UI_Remake_Times_Judge_Level_3:"抽到紫色概率四倍",UI_Remake_Times_Judge_Level_4:"抽到紫色概率五倍",UI_Remake_Times_Judge_Level_5:"抽到紫色概率六倍",UI_Achievement_Count_Judge_Level_0:"抽到橙色概率不变",UI_Achievement_Count_Judge_Level_1:"抽到橙色概率翻倍",UI_Achievement_Count_Judge_Level_2:"抽到橙色概率三倍",UI_Achievement_Count_Judge_Level_3:"抽到橙色概率四倍",UI_Achievement_Count_Judge_Level_4:"抽到橙色概率五倍",UI_Achievement_Count_Judge_Level_5:"抽到橙色概率六倍",UI_Support_Programmer:"打赏程序(顿顿饭)",UI_Support_Designer:"打赏策划(爱发电)",UI_Save:"存档",UI_Load:"读档",UI_Read:"复制",UI_Write:"粘贴",UI_LoadSuccess:"读档成功!",UI_LoadFailed:"读档失败!",UI_CopySuccess:"成功复制存档到剪贴板",UI_CopyFailed:"复制存档到剪贴板失败,请手动复制存档内容",UI_PasteSuccessDecodeSuccess:"读档成功!",UI_PasteSuccessDecodeFailed:"粘贴剪贴板存档内容成功,但剪贴板内容读档失败",UI_PasteFailedDecodeSuccess:"粘贴剪贴板存档内容失败,使用输入的内容读档成功",UI_PasteFailedDecodeFailed:"粘贴剪贴板存档内容失败,使用输入的内容读档失败",UI_Title_Celebrity:"你的前世是...",UI_CustomMode:"经典模式",UI_CustomModeDescription:`10连抽天赋
自由分配属性`,UI_CelebrityMode:"名人模式",UI_CelebrityModeDescription:`前世是古代名人
重开到了现代`,UI_AllNot:"↻都不是",UI_UniqueWaTaShi:"独一无二的我",UI_UniqueWaTaShiContent:`
6000万玩家中独一无二的角色卡
所有属性 所有天赋 随机生成
每人只能生成一次`,UI_GenerateNow:"立即生成",M_NoRank:"别卷了,没有排行榜",M_PleaseSelectOne:"请选择一个名人",M_UnGenerate:"独一无二的我还没有生成",M_DisableExtendTalent:"名人模式不能继承天赋",F_RemakeTimes:"已重开{0}次",F_AchievementCount:"成就达成{0}个",F_TalentSelection:"{name}{description}",F_TalentConflict:"与已选的「{0}」天赋冲突",F_TalentSelectLimit:"只能选 {0} 个天赋",F_TalentSelectNotComplect:"要选满{0}个天赋",F_PropertyPointLeft:"你还有 {0} 属性点没有分配完",F_TalentReplace:"天赋替换【{source.name}】->【{target.name}】",F_PropertyStr:"颜值{CHR} 智力{INT} 体质{STR} 家境{MNY}"};export{e as default};