diff --git a/laya/pages/view/CyberTheme/CyberThanks.ui b/laya/pages/view/CyberTheme/CyberThanks.ui deleted file mode 100644 index 035ebc1..0000000 --- a/laya/pages/view/CyberTheme/CyberThanks.ui +++ /dev/null @@ -1,37 +0,0 @@ -{ - "x":0, - "type":"View", - "selectedBox":1, - "selecteID":1, - "props":{"width":1125,"sceneColor":"#000000","runtime":"ViewBase","height":2436}, - "nodeParent":-1, - "label":"View", - "isOpen":true, - "isDirectory":true, - "isAniNode":true, - "hasChild":true, - "compId":1, - "child":[ - { - "x":15, - "type":"Button", - "props":{"y":200,"var":"btnBack","skin":"images/button/button_back@3x.png","name":"btnBack","left":30}, - "nodeParent":1, - "label":"Button(btnBack)", - "isDirectory":false, - "isAniNode":true, - "hasChild":false, - "compId":2, - "child":[ - ] - }], - "animations":[ - { - "nodes":[ - ], - "name":"ani1", - "id":1, - "frameRate":24, - "action":0 - }] -} \ No newline at end of file diff --git a/laya/pages/view/DefaultTheme/Thanks.ui b/laya/pages/view/DefaultTheme/Thanks.ui index 1df926d..0c5a59d 100644 --- a/laya/pages/view/DefaultTheme/Thanks.ui +++ b/laya/pages/view/DefaultTheme/Thanks.ui @@ -2,8 +2,8 @@ "x":0, "type":"View", "selectedBox":1, - "selecteID":3, - "props":{"width":1125,"sceneColor":"#000000","runtime":"ViewBase","height":2436}, + "selecteID":161, + "props":{"width":1125,"sceneColor":"#666666","runtime":"ViewBase","height":2436}, "nodeParent":-1, "label":"View", "isOpen":true, @@ -15,24 +15,164 @@ { "x":15, "type":"Box", - "props":{"width":260,"var":"btnBack","top":50,"runtime":"ColorfulBox","right":50,"name":"btnBack","height":90,"anchorY":0.5,"anchorX":0.5}, + "props":{"y":95,"x":945,"width":260,"var":"btnBack","top":50,"runtime":"ColorfulBox","right":50,"name":"btnBack","height":90,"anchorY":0.5,"anchorX":0.5}, "nodeParent":1, "label":"Box(btnBack)", "isOpen":false, "isDirectory":true, "isAniNode":true, "hasChild":true, - "compId":3, + "compId":153, "child":[ { "type":"Label", "props":{"y":1028,"x":332,"text":"UI_Back","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}, - "nodeParent":3, + "nodeParent":153, "label":"Label(label)", "isDirectory":false, "isAniNode":true, "hasChild":false, - "compId":4, + "compId":154, + "child":[ + ] + }] + }, + { + "x":15, + "type":"Panel", + "props":{"width":1100,"var":"panelTopSupports","vScrollBarSkin":" ","top":170,"name":"panelTopSupports","height":400,"centerX":0}, + "nodeParent":1, + "label":"Panel(panelTopSupports)", + "isOpen":false, + "isDirectory":true, + "isAniNode":true, + "hasChild":true, + "compId":18, + "child":[ + { + "type":"VBox", + "props":{"y":15,"var":"vboxTopSupports","space":30,"right":-6,"name":"vboxTopSupports","left":-6}, + "nodeParent":18, + "label":"VBox(vboxTopSupports)", + "isOpen":false, + "isDirectory":true, + "isAniNode":true, + "hasChild":true, + "compId":17, + "child":[ + { + "type":"Box", + "props":{"runtime":"ColorfulBox","right":0,"name":"boxTopSupport","left":0}, + "nodeParent":17, + "label":"Box(boxTopSupport)", + "isOpen":true, + "isDirectory":true, + "isAniNode":true, + "hasChild":true, + "compId":88, + "child":[ + { + "type":"Label", + "props":{"y":25,"wordWrap":true,"width":250,"text":"Sombody","name":"name","left":50,"leading":25,"fontSize":50,"font":"SimHei","color":"#000000","align":"center"}, + "nodeParent":88, + "label":"Label(name)", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":155, + "child":[ + ] + }, + { + "type":"Label", + "props":{"y":25,"wordWrap":true,"text":"This is he say","right":20,"name":"comment","left":350,"leading":25,"fontSize":50,"font":"SimHei","color":"#000000","align":"center"}, + "nodeParent":88, + "label":"Label(comment)", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":95, + "child":[ + ] + }] + }] + }], + "$HIDDEN":false + }, + { + "x":15, + "type":"List", + "props":{"width":1100,"var":"listSupports","vScrollBarSkin":" ","top":600,"spaceY":50,"spaceX":50,"name":"listSupports","centerX":0,"bottom":200}, + "nodeParent":1, + "label":"List(listSupports)", + "isOpen":true, + "isDirectory":true, + "isAniNode":true, + "hasChild":true, + "compId":161, + "child":[ + { + "x":30, + "type":"Label", + "props":{"y":30,"x":25,"width":500,"text":"label","renderType":"render","fontSize":50,"font":"SimHei","color":"#ffffff","align":"center"}, + "nodeParent":161, + "label":"Label", + "isDirectory":false, + "isAniNode":false, + "hasChild":false, + "compId":162, + "child":[ + ] + }] + }, + { + "x":15, + "type":"Box", + "props":{"width":400,"var":"btnDDF","runtime":"ColorfulBox","name":"btnDDF","height":100,"centerX":300,"bottom":50,"anchorY":0.5,"anchorX":0.5}, + "nodeParent":1, + "label":"Box(btnDDF)", + "isOpen":true, + "isDirectory":true, + "isAniNode":true, + "hasChild":true, + "compId":163, + "child":[ + { + "x":30, + "type":"Label", + "props":{"y":1028,"x":332,"text":"UI_Support_Programmer","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}, + "nodeParent":163, + "label":"Label(label)", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":164, + "child":[ + ] + }] + }, + { + "x":15, + "type":"Box", + "props":{"width":400,"var":"btnAFD","runtime":"ColorfulBox","name":"btnAFD","height":100,"centerX":-300,"bottom":50,"anchorY":0.5,"anchorX":0.5}, + "nodeParent":1, + "label":"Box(btnAFD)", + "isOpen":true, + "isDirectory":true, + "isAniNode":true, + "hasChild":true, + "compId":165, + "child":[ + { + "x":30, + "type":"Label", + "props":{"y":1028,"x":332,"text":"UI_Support_Designer","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}, + "nodeParent":165, + "label":"Label(label)", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":166, "child":[ ] }] diff --git a/laya/pages/view/DefaultTheme/Trajectory.ui b/laya/pages/view/DefaultTheme/Trajectory.ui index 9dc40af..f49993f 100644 --- a/laya/pages/view/DefaultTheme/Trajectory.ui +++ b/laya/pages/view/DefaultTheme/Trajectory.ui @@ -1,8 +1,8 @@ { "x":0, "type":"View", - "selectedBox":18, - "selecteID":17, + "selectedBox":1, + "selecteID":102, "props":{"width":1125,"sceneColor":"#000000","runtime":"ViewBase","height":2436}, "nodeParent":-1, "label":"View", @@ -15,7 +15,7 @@ { "x":15, "type":"Box", - "props":{"top":80,"right":20,"left":20,"height":180}, + "props":{"top":80,"right":20,"left":20,"height":120}, "nodeParent":1, "label":"Box", "isOpen":false, @@ -37,7 +37,7 @@ "child":[ { "type":"Box", - "props":{"x":0,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0}, + "props":{"x":0,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0}, "nodeParent":71, "label":"Box(propertyBox)", "isOpen":true, @@ -48,7 +48,7 @@ "child":[ { "type":"Label", - "props":{"y":45,"text":"UI_Property_Charm","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"y":30,"text":"UI_Property_Charm","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":34, "label":"Label(label)", "isDirectory":false, @@ -60,7 +60,7 @@ }, { "type":"Box", - "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0}, + "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0}, "nodeParent":34, "label":"Box(propertyValue)", "isOpen":true, @@ -71,7 +71,7 @@ "child":[ { "type":"Label", - "props":{"y":45,"var":"labCharm","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"var":"labCharm","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":41, "label":"Label(labCharm)", "isDirectory":false, @@ -86,7 +86,7 @@ }, { "type":"Box", - "props":{"x":1,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0}, + "props":{"x":1,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0}, "nodeParent":71, "label":"Box(propertyBox)", "isOpen":true, @@ -97,7 +97,7 @@ "child":[ { "type":"Label", - "props":{"y":45,"text":"UI_Property_Intelligence","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"y":30,"text":"UI_Property_Intelligence","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":50, "label":"Label(label)", "isDirectory":false, @@ -109,7 +109,7 @@ }, { "type":"Box", - "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0}, + "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0}, "nodeParent":50, "label":"Box(propertyValue)", "isOpen":true, @@ -120,7 +120,7 @@ "child":[ { "type":"Label", - "props":{"y":41,"var":"labIntelligence","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"var":"labIntelligence","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":55, "label":"Label(labIntelligence)", "isDirectory":false, @@ -135,7 +135,7 @@ }, { "type":"Box", - "props":{"x":2,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0}, + "props":{"x":2,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0}, "nodeParent":71, "label":"Box(propertyBox)", "isOpen":true, @@ -146,7 +146,7 @@ "child":[ { "type":"Label", - "props":{"y":45,"text":"UI_Property_Strength","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"y":30,"text":"UI_Property_Strength","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":74, "label":"Label(label)", "isDirectory":false, @@ -158,7 +158,7 @@ }, { "type":"Box", - "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0}, + "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0}, "nodeParent":74, "label":"Box(propertyValue)", "isOpen":true, @@ -169,7 +169,7 @@ "child":[ { "type":"Label", - "props":{"y":41,"var":"labStrength","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"var":"labStrength","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":79, "label":"Label(labStrength)", "isDirectory":false, @@ -183,7 +183,7 @@ }, { "type":"Box", - "props":{"x":3,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0}, + "props":{"x":3,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0}, "nodeParent":71, "label":"Box(propertyBox)", "isOpen":true, @@ -194,7 +194,7 @@ "child":[ { "type":"Label", - "props":{"y":45,"text":"UI_Property_Money","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"y":30,"text":"UI_Property_Money","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":43, "label":"Label(label)", "isDirectory":false, @@ -206,7 +206,7 @@ }, { "type":"Box", - "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0}, + "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0}, "nodeParent":43, "label":"Box(propertyValue)", "isOpen":true, @@ -217,7 +217,7 @@ "child":[ { "type":"Label", - "props":{"y":41,"var":"labMoney","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"var":"labMoney","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":48, "label":"Label(labMoney)", "isDirectory":false, @@ -231,7 +231,7 @@ }, { "type":"Box", - "props":{"x":4,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0}, + "props":{"x":4,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0}, "nodeParent":71, "label":"Box(propertyBox)", "isOpen":true, @@ -242,7 +242,7 @@ "child":[ { "type":"Label", - "props":{"y":45,"text":"UI_Property_Spirit","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"y":30,"text":"UI_Property_Spirit","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":81, "label":"Label(label)", "isDirectory":false, @@ -254,7 +254,7 @@ }, { "type":"Box", - "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0}, + "props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0}, "nodeParent":81, "label":"Box(propertyValue)", "isOpen":true, @@ -265,7 +265,7 @@ "child":[ { "type":"Label", - "props":{"y":41,"var":"labSpirit","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, + "props":{"var":"labSpirit","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}, "nodeParent":86, "label":"Label(labSpirit)", "isDirectory":false, @@ -284,7 +284,7 @@ { "x":15, "type":"Box", - "props":{"x":20,"var":"boxTrajectory","top":300,"runtime":"ColorfulBox","right":20,"name":"boxTrajectory","left":20,"bottom":250}, + "props":{"x":20,"var":"boxTrajectory","top":240,"runtime":"ColorfulBox","right":20,"name":"boxTrajectory","left":20,"bottom":250}, "nodeParent":1, "label":"Box(boxTrajectory)", "isOpen":true, @@ -402,13 +402,14 @@ "props":{"right":0,"left":0,"height":1,"bottom":-1}, "nodeParent":1, "label":"Box", - "isOpen":false, + "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":14, "child":[ { + "x":30, "type":"Box", "props":{"width":600,"var":"btnSummary","runtime":"ColorfulBox","name":"btnSummary","height":150,"centerX":0,"bottom":80}, "nodeParent":14, @@ -420,6 +421,7 @@ "compId":151, "child":[ { + "x":45, "type":"Label", "props":{"text":"UI_Goto_Summary","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}, "nodeParent":151, @@ -433,6 +435,7 @@ }] }, { + "x":30, "type":"Box", "props":{"y":-155,"var":"boxSpeed","runtime":"ColorFilterItem","right":100,"name":"boxSpeed","left":100,"height":150,"anchorY":0.5,"anchorX":0.5}, "nodeParent":14, @@ -444,6 +447,7 @@ "compId":104, "child":[ { + "x":45, "type":"ProgressBar", "props":{"var":"prgSpeed","skin":"images/progress/progress_s.png","right":0,"name":"prgSpeed","left":0,"bottom":0}, "nodeParent":104, @@ -456,6 +460,7 @@ ] }, { + "x":45, "type":"HScrollBar", "props":{"var":"scbSpeed","skin":"images/slider/hslider_s.png","right":0,"name":"scbSpeed","min":0,"max":1000,"left":0,"height":60,"bottom":0}, "nodeParent":104, @@ -468,6 +473,7 @@ ] }, { + "x":45, "type":"Label", "props":{"text":"UI_Manual","fontSize":50,"color":"#ffffff","bottom":70}, "nodeParent":104, @@ -480,6 +486,7 @@ ] }, { + "x":45, "type":"Label", "props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"SimHei","color":"#ffffff","bottom":70}, "nodeParent":104, diff --git a/src/app.js b/src/app.js index 19c3929..9ea7105 100644 --- a/src/app.js +++ b/src/app.js @@ -20,6 +20,44 @@ class App{ }; #initLaya() { + /** + *...特殊的字符,如泰文,必须重新实现这个类 + */ + //class laya.webgl.text.CharSegment + var CharSegment=(function(){ + function CharSegment(){ + this._sourceStr=null; + } + Laya.class(CharSegment,'laya.webgl.text.CharSegment'); + var __proto=CharSegment.prototype; + Laya.imps(__proto,{"laya.webgl.text.ICharSegment":true}) + __proto.textToSpit=function(str){ + this._sourceStr=str; + var texLen = str.length; + var idx = -1; + this._words = []; + while (++idx < texLen) { + var character = str.charAt(idx); + var code = str.charCodeAt(idx); + if (code >= 0xD800 && code <= 0xDBFF) { + this._words.push(character + str.charAt(++idx)); + } else { + this._words.push(character); + } + } + } + __proto.getChar=function(i){ + return this._words; + } + __proto.getCharCode=function(i){ + return this._words[i].codePointAt(0); + } + __proto.length=function(){ + return this._words.length; + } + return CharSegment; + })() + // Laya.init(1125, 2436, Laya.WebGL); Laya.Config.isAntialias = true; Laya.init(...this.#fitScreen, Laya.WebGL); @@ -91,7 +129,10 @@ class App{ await this.#setLanguage(language); await $ui.setLoading(UI.pages.LOADING); await $ui.switchView(UI.pages.LOADING); - await core.initial(dataSet=>Laya.promises.loader.load(`data/${this.#language}/${dataSet}.json`, null, Laya.Loader.JSON)); + await core.initial( + dataSet=>Laya.promises.loader.load(`data/${this.#language}/${dataSet}.json`, null, Laya.Loader.JSON), + dataSet=>Laya.promises.loader.load(`data/${dataSet}.json`, null, Laya.Loader.JSON), + ); await $ui.switchView(UI.pages.MAIN); } } diff --git a/src/i18n/en-us.js b/src/i18n/en-us.js index f8f75e0..e8e0547 100644 --- a/src/i18n/en-us.js +++ b/src/i18n/en-us.js @@ -116,6 +116,9 @@ export default ({ 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', + F_RemakeTimes: 'Remake {0} Times', F_AchievementCount: 'Achievement {0}', F_TalentSelection: '{name} ({description})', diff --git a/src/i18n/zh-cn.js b/src/i18n/zh-cn.js index d7bc95d..3878d58 100644 --- a/src/i18n/zh-cn.js +++ b/src/i18n/zh-cn.js @@ -116,6 +116,9 @@ export default ({ UI_Achievement_Count_Judge_Level_4: '抽到橙色概率五倍', UI_Achievement_Count_Judge_Level_5: '抽到橙色概率六倍', + UI_Support_Programmer: '打赏程序(顿顿饭)', + UI_Support_Designer: '打赏策划(爱发电)', + F_RemakeTimes: '已重开{0}次', F_AchievementCount: '成就达成{0}个', F_TalentSelection: '{name}({description})', diff --git a/src/index.js b/src/index.js index 184bb6b..7715611 100644 --- a/src/index.js +++ b/src/index.js @@ -6,6 +6,8 @@ globalThis.goto = async tag => { switch(tag) { case 'github': url = 'https://github.com/VickScarlet/lifeRestart'; break; case 'discord': url = 'https://discord.gg/U3qrf49NMQ'; break; + case 'sponsor_afd': url = 'https://afdian.net/@LifeRestart'; break; + case 'sponsor_ddf': url = 'https://dun.mianbaoduo.com/@vickscarlet'; break; } try { window.open(url, '_blank'); diff --git a/src/modules/life.js b/src/modules/life.js index fc6c9f3..02b2dbf 100644 --- a/src/modules/life.js +++ b/src/modules/life.js @@ -21,14 +21,17 @@ class Life { #talentSelectLimit; #propertyAllocateLimit; #defaultPropertys; + #specialThanks; - async initial(loadJSON) { - const [age, talents, events, achievements] = await Promise.all([ - loadJSON('age'), - loadJSON('talents'), - loadJSON('events'), - loadJSON('achievement'), + async initial(i18nLoad, commonLoad) { + const [age, talents, events, achievements, specialThanks] = await Promise.all([ + i18nLoad('age'), + i18nLoad('talents'), + i18nLoad('events'), + i18nLoad('achievement'), + commonLoad('specialthanks'), ]); + this.#specialThanks = specialThanks; const total = { [this.PropertyTypes.TACEV]: this.#achievement.initial({achievements}), @@ -246,6 +249,7 @@ class Life { this.#property ) } + get specialThanks() { return this.#specialThanks; } } export default Life; \ No newline at end of file diff --git a/src/ui/layaUI.max.all.js b/src/ui/layaUI.max.all.js index d7ebef6..50bc323 100644 --- a/src/ui/layaUI.max.all.js +++ b/src/ui/layaUI.max.all.js @@ -210,28 +210,6 @@ var CyberTalentUI=(function(_super){ CyberTalentUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Box","props":{"var":"pageDrawCard","top":0,"right":0,"name":"pageDrawCard","left":0,"bottom":0},"child":[{"type":"Box","props":{"y":1117,"x":562,"width":2,"height":2,"centerY":-100,"centerX":0},"child":[{"type":"Animation","props":{"y":1,"x":1,"width":100,"source":"view/CyberTheme/animation/lightRotation.ani","height":100,"autoPlay":true}},{"type":"Image","props":{"y":585,"skin":"images/border/card@3x.png","scaleY":0.9,"scaleX":0.9,"rotation":15,"centerY":-50,"centerX":0,"anchorY":1.2,"anchorX":0.5,"alpha":0.8}},{"type":"Image","props":{"y":634,"skin":"images/border/card@3x.png","scaleY":0.9,"scaleX":0.9,"rotation":-15,"centerY":-50,"centerX":0,"anchorY":1.2,"anchorX":0.5,"alpha":0.8}},{"type":"Image","props":{"y":634,"skin":"images/border/card@3x.png","centerY":-50,"centerX":0,"anchorY":1.2,"anchorX":0.5,"alpha":0.8}},{"type":"Image","props":{"skin":"images/accessories/cardicon@3x.png","centerY":-30,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]},{"type":"Button","props":{"y":1930,"x":563,"width":657,"var":"btnDrawCard","skin":"images/button/button_main@3x.png","name":"btnDrawCard","labelSize":60,"label":"UI_Talent_Draw","height":192,"centerX":0,"stateNum":1,"anchorX":0.5,"anchorY":0.5,"sizeGrid":"45,200,45,200","labelFont":"方正像素12","labelColors":"#00fffc,#00fffc,#00fffc","runtime":"ScaleButton"},"child":[{"type":"Box","props":{},"child":[{"type":"Animation","props":{"y":93,"x":330,"width":0,"source":"view/CyberTheme/animation/circleFlash.ani","scaleX":5,"height":0,"blendMode":"lighter","autoPlay":true}},{"type":"Box","props":{"renderType":"mask"},"child":[{"type":"Rect","props":{"y":37,"x":25,"width":7,"lineWidth":1,"height":116,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":37,"x":625,"width":7,"lineWidth":1,"height":116,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":21,"x":44,"width":569,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":150,"x":171,"width":316,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":163,"x":44,"width":121,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":163,"x":493,"width":120,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":148,"x":29,"width":25,"rotation":40,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":150,"x":487,"width":19,"rotation":55,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":166,"x":160,"width":19,"rotation":-55,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":21,"x":613,"width":25,"rotation":40,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":26,"x":48,"width":25,"rotation":140,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":153,"x":632,"width":25,"rotation":140,"lineWidth":1,"height":6,"fillColor":"#ff0000"}}]}]},{"type":"Box","props":{},"child":[{"type":"Box","props":{"renderType":"mask"},"child":[{"type":"Poly","props":{"y":41,"x":35,"points":"0,0,8,-6,8,113,0,107","lineWidth":1,"lineColor":"#ff0000","fillColor":"#00ffff"}},{"type":"Poly","props":{"y":41,"x":621,"points":"0,0,-8,-6,-8,113,0,107","lineWidth":1,"lineColor":"#ff0000","fillColor":"#00ffff"}},{"type":"Poly","props":{"y":160,"x":177,"points":"0,0,305,0,311,10,-6,10","lineWidth":1,"lineColor":"#ff0000","fillColor":"#00ffff"}}]},{"type":"Animation","props":{"y":172,"x":330,"source":"view/CyberTheme/animation/bottomBreath.ani","scaleX":4,"blendMode":"lighter","autoPlay":true}}]}]}]},{"type":"Box","props":{"y":0,"x":0,"var":"pageResult","top":0,"right":0,"name":"pageResult","left":0,"bottom":0},"child":[{"type":"List","props":{"width":1085,"var":"listTalents","vScrollBarSkin":" ","top":310,"name":"listTalents","centerX":0,"bottom":370},"child":[{"type":"Box","props":{"width":537,"renderType":"render","height":352},"child":[{"type":"Image","props":{"top":0,"skin":"images/border/talent_item@3x.png","right":0,"name":"unselected","left":0,"bottom":0}},{"type":"Image","props":{"top":0,"skin":"images/border/talent_item_selected@3x.png","right":0,"name":"selected","left":0,"bottom":3,"sizeGrid":"106,150,74,150"}},{"type":"HBox","props":{"top":104,"space":15,"name":"hboxTitle","left":66,"height":58},"child":[{"type":"Box","props":{"y":0,"x":0,"width":15,"name":"grades","height":58},"child":[{"type":"Box","props":{"width":15,"name":"grade1","height":58},"child":[{"type":"Sprite","props":{},"child":[{"type":"Rect","props":{"width":15,"lineWidth":1,"height":58,"fillColor":"#55fffe"}}]}]},{"type":"Box","props":{"width":15,"name":"grade2","height":58},"child":[{"type":"Sprite","props":{},"child":[{"type":"Rect","props":{"width":15,"lineWidth":1,"height":58,"fillColor":"#b17cff"}}]}]},{"type":"Box","props":{"width":15,"name":"grade3","height":58},"child":[{"type":"Sprite","props":{},"child":[{"type":"Rect","props":{"width":15,"lineWidth":1,"height":58,"fillColor":"#ffce45"}}]}]}]},{"type":"Label","props":{"x":1,"text":"Title","name":"labTitle","fontSize":58,"font":"方正像素12","color":"#ffffff"}}]},{"type":"Label","props":{"y":205,"wordWrap":true,"text":"description","right":66,"name":"labDescription","left":66,"leading":8,"fontSize":44,"font":"方正像素12","color":"#9dacaf"}}]}]},{"type":"Box","props":{"right":0,"left":0,"height":1,"bottom":0},"child":[{"type":"Button","props":{"width":1040,"var":"btnNext","skin":"images/button/button_main@3x.png","name":"btnNext","labelSize":60,"label":"UI_Next","height":192,"centerY":-180,"centerX":0,"stateNum":1,"anchorX":0.5,"anchorY":0.5,"sizeGrid":"45,200,45,200","labelFont":"方正像素12","labelColors":"#00fffc,#00fffc,#00fffc","runtime":"ScaleButton"},"child":[{"type":"Box","props":{},"child":[{"type":"Animation","props":{"y":96,"x":520,"width":0,"source":"view/CyberTheme/animation/circleFlash.ani","scaleX":7,"height":0,"blendMode":"lighter","autoPlay":true}},{"type":"Box","props":{"renderType":"mask"},"child":[{"type":"Rect","props":{"y":37,"x":25,"width":7,"lineWidth":1,"height":116,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":37,"x":1010,"width":7,"lineWidth":1,"height":116,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":21,"x":44,"width":954,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":150,"x":171,"width":700,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":163,"x":44,"width":121,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":163,"x":877,"width":121,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":148,"x":29,"width":25,"rotation":40,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":150,"x":871,"width":19,"rotation":55,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":166,"x":160,"width":19,"rotation":-55,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":21,"x":998,"width":25,"rotation":40,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":26,"x":48,"width":25,"rotation":140,"lineWidth":1,"height":6,"fillColor":"#ff0000"}},{"type":"Rect","props":{"y":153,"x":1017,"width":25,"rotation":140,"lineWidth":1,"height":6,"fillColor":"#ff0000"}}]}]},{"type":"Box","props":{},"child":[{"type":"Box","props":{"renderType":"mask"},"child":[{"type":"Poly","props":{"y":41,"x":35,"points":"0,0,8,-6,8,113,0,107","lineWidth":1,"lineColor":"#ff0000","fillColor":"#00ffff"}},{"type":"Poly","props":{"y":41,"x":1004,"points":"0,0,-8,-6,-8,113,0,107","lineWidth":1,"lineColor":"#ff0000","fillColor":"#00ffff"}},{"type":"Poly","props":{"y":160,"x":177,"points":"0,0,687,0,693,10,-6,10","lineWidth":1,"lineColor":"#ff0000","fillColor":"#00ffff"}}]},{"type":"Animation","props":{"y":172,"x":520,"source":"view/CyberTheme/animation/bottomBreath.ani","scaleX":6,"blendMode":"lighter","autoPlay":true}}]}]}]}]},{"type":"Box","props":{"top":40,"right":0,"name":"title","left":0},"child":[{"type":"Image","props":{"skin":"images/accessories/titlebar@3x.png","right":0,"left":0,"sizeGrid":"0,348,116,348"}},{"type":"HBox","props":{"y":160,"x":563,"space":30,"height":70,"centerX":0,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Image","props":{"y":10,"x":1,"skin":"images/accessories/title_left@3x.png","name":"left"}},{"type":"Label","props":{"y":0,"x":2,"text":"UI_Title_Talent","fontSize":60,"font":"方正像素12","color":"#ffffff"}},{"type":"Image","props":{"y":10,"x":3,"skin":"images/accessories/title_right@3x.png","name":"right"}}]}]}]}; return CyberTalentUI; })(View); -var CyberThanksUI=(function(_super){ - function CyberThanksUI(){ - - this.btnBack=null; - - CyberThanksUI.__super.call(this); - } - - CLASS$(CyberThanksUI,'ui.view.CyberTheme.CyberThanksUI',_super); - var __proto__=CyberThanksUI.prototype; - __proto__.createChildren=function(){ - View.regComponent("ViewBase",ViewBase); - View.regComponent("ScaleButton",ScaleButton); - - laya.ui.Component.prototype.createChildren.call(this); - this.createView(CyberThanksUI.uiView); - - } - - CyberThanksUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Button","props":{"y":200,"var":"btnBack","skin":"images/button/button_back@3x.png","name":"btnBack","left":30,"stateNum":1,"label":" ","anchorX":0,"anchorY":0.5,"runtime":"ScaleButton"}}]}; - return CyberThanksUI; - })(View); var CyberTrajectoryUI=(function(_super){ function CyberTrajectoryUI(){ @@ -460,6 +438,11 @@ var ThanksUI=(function(_super){ function ThanksUI(){ this.btnBack=null; + this.panelTopSupports=null; + this.vboxTopSupports=null; + this.listSupports=null; + this.btnDDF=null; + this.btnAFD=null; ThanksUI.__super.call(this); } @@ -475,7 +458,7 @@ var ThanksUI=(function(_super){ } - ThanksUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Box","props":{"width":260,"var":"btnBack","top":50,"runtime":"ColorfulBox","right":50,"name":"btnBack","height":90,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Label","props":{"y":1028,"x":332,"text":"UI_Back","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}}]}]}; + ThanksUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Box","props":{"y":95,"x":945,"width":260,"var":"btnBack","top":50,"runtime":"ColorfulBox","right":50,"name":"btnBack","height":90,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Label","props":{"y":1028,"x":332,"text":"UI_Back","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}}]},{"type":"Panel","props":{"width":1100,"var":"panelTopSupports","vScrollBarSkin":" ","top":170,"name":"panelTopSupports","height":400,"centerX":0},"child":[{"type":"VBox","props":{"y":15,"var":"vboxTopSupports","space":30,"right":-6,"name":"vboxTopSupports","left":-6},"child":[{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"boxTopSupport","left":0},"child":[{"type":"Label","props":{"y":25,"wordWrap":true,"width":250,"text":"Sombody","name":"name","left":50,"leading":25,"fontSize":50,"font":"SimHei","color":"#000000","align":"center"}},{"type":"Label","props":{"y":25,"wordWrap":true,"text":"This is he say","right":20,"name":"comment","left":350,"leading":25,"fontSize":50,"font":"SimHei","color":"#000000","align":"center"}}]}]}]},{"type":"List","props":{"width":1100,"var":"listSupports","vScrollBarSkin":" ","top":600,"spaceY":50,"spaceX":50,"name":"listSupports","centerX":0,"bottom":200},"child":[{"type":"Label","props":{"y":30,"x":25,"width":500,"text":"label","renderType":"render","fontSize":50,"font":"SimHei","color":"#ffffff","align":"center"}}]},{"type":"Box","props":{"width":400,"var":"btnDDF","runtime":"ColorfulBox","name":"btnDDF","height":100,"centerX":300,"bottom":50,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Label","props":{"y":1028,"x":332,"text":"UI_Support_Programmer","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}}]},{"type":"Box","props":{"width":400,"var":"btnAFD","runtime":"ColorfulBox","name":"btnAFD","height":100,"centerX":-300,"bottom":50,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Label","props":{"y":1028,"x":332,"text":"UI_Support_Designer","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}}]}]}; return ThanksUI; })(View); var TrajectoryUI=(function(_super){ @@ -509,7 +492,7 @@ var TrajectoryUI=(function(_super){ } - TrajectoryUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Box","props":{"top":80,"right":20,"left":20,"height":180},"child":[{"type":"HBox","props":{"space":15,"centerY":0,"centerX":0,"align":"middle"},"child":[{"type":"Box","props":{"x":0,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0},"child":[{"type":"Label","props":{"y":45,"text":"UI_Property_Charm","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0},"child":[{"type":"Label","props":{"y":45,"var":"labCharm","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":1,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0},"child":[{"type":"Label","props":{"y":45,"text":"UI_Property_Intelligence","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0},"child":[{"type":"Label","props":{"y":41,"var":"labIntelligence","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":2,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0},"child":[{"type":"Label","props":{"y":45,"text":"UI_Property_Strength","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0},"child":[{"type":"Label","props":{"y":41,"var":"labStrength","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":3,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0},"child":[{"type":"Label","props":{"y":45,"text":"UI_Property_Money","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0},"child":[{"type":"Label","props":{"y":41,"var":"labMoney","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":4,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":180,"centerY":0},"child":[{"type":"Label","props":{"y":45,"text":"UI_Property_Spirit","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":90,"bottom":0},"child":[{"type":"Label","props":{"y":41,"var":"labSpirit","text":"10","name":"label","fontSize":60,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]}]}]},{"type":"Box","props":{"x":20,"var":"boxTrajectory","top":300,"runtime":"ColorfulBox","right":20,"name":"boxTrajectory","left":20,"bottom":250},"child":[{"type":"Panel","props":{"var":"panelTrajectory","vScrollBarSkin":" ","top":0,"right":0,"name":"panelTrajectory","left":0,"bottom":0},"child":[{"type":"VBox","props":{"y":15,"var":"vboxTrajectory","space":20,"right":-6,"name":"vboxTrajectory","left":-6},"child":[{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"boxTrajectoryItem","left":0},"child":[{"type":"HBox","props":{"y":25,"x":200,"name":"hboxAge","anchorX":1,"align":"middle"},"child":[{"type":"Label","props":{"x":0,"text":"3000","name":"labAge","fontSize":50,"font":"SimHei","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":1,"text":"岁","fontSize":50,"font":"SimHei","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":2,"text":":","fontSize":50,"font":"SimHei","color":"#cfea5c","anchorX":0}}]},{"type":"Label","props":{"y":25,"wordWrap":true,"text":"你的父母开始辅导你数学和英语,智力+1","right":0,"name":"labContent","left":220,"leading":25,"fontSize":50,"font":"SimHei","color":"#ffffff"}}]}]}]}]},{"type":"Box","props":{"right":0,"left":0,"height":1,"bottom":-1},"child":[{"type":"Box","props":{"width":600,"var":"btnSummary","runtime":"ColorfulBox","name":"btnSummary","height":150,"centerX":0,"bottom":80},"child":[{"type":"Label","props":{"text":"UI_Goto_Summary","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}}]},{"type":"Box","props":{"y":-155,"var":"boxSpeed","runtime":"ColorFilterItem","right":100,"name":"boxSpeed","left":100,"height":150,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"ProgressBar","props":{"var":"prgSpeed","skin":"images/progress/progress_s.png","right":0,"name":"prgSpeed","left":0,"bottom":0}},{"type":"HScrollBar","props":{"var":"scbSpeed","skin":"images/slider/hslider_s.png","right":0,"name":"scbSpeed","min":0,"max":1000,"left":0,"height":60,"bottom":0}},{"type":"Label","props":{"text":"UI_Manual","fontSize":50,"color":"#ffffff","bottom":70}},{"type":"Label","props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"SimHei","color":"#ffffff","bottom":70}}]}]}]}; + TrajectoryUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Box","props":{"top":80,"right":20,"left":20,"height":120},"child":[{"type":"HBox","props":{"space":15,"centerY":0,"centerX":0,"align":"middle"},"child":[{"type":"Box","props":{"x":0,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0},"child":[{"type":"Label","props":{"y":30,"text":"UI_Property_Charm","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0},"child":[{"type":"Label","props":{"var":"labCharm","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":1,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0},"child":[{"type":"Label","props":{"y":30,"text":"UI_Property_Intelligence","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0},"child":[{"type":"Label","props":{"var":"labIntelligence","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":2,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0},"child":[{"type":"Label","props":{"y":30,"text":"UI_Property_Strength","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0},"child":[{"type":"Label","props":{"var":"labStrength","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":3,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0},"child":[{"type":"Label","props":{"y":30,"text":"UI_Property_Money","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0},"child":[{"type":"Label","props":{"var":"labMoney","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":4,"width":200,"runtime":"ColorfulBox","name":"propertyBox","height":120,"centerY":0},"child":[{"type":"Label","props":{"y":30,"text":"UI_Property_Spirit","name":"label","fontSize":45,"font":"SimHei","color":"#ffffff","centerX":0,"anchorY":0.5,"anchorX":0.5}},{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"propertyValue","left":0,"height":60,"bottom":0},"child":[{"type":"Label","props":{"var":"labSpirit","text":"10","name":"label","fontSize":55,"font":"SimHei","color":"#55fffe","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5}}]}]}]}]},{"type":"Box","props":{"x":20,"var":"boxTrajectory","top":240,"runtime":"ColorfulBox","right":20,"name":"boxTrajectory","left":20,"bottom":250},"child":[{"type":"Panel","props":{"var":"panelTrajectory","vScrollBarSkin":" ","top":0,"right":0,"name":"panelTrajectory","left":0,"bottom":0},"child":[{"type":"VBox","props":{"y":15,"var":"vboxTrajectory","space":20,"right":-6,"name":"vboxTrajectory","left":-6},"child":[{"type":"Box","props":{"runtime":"ColorfulBox","right":0,"name":"boxTrajectoryItem","left":0},"child":[{"type":"HBox","props":{"y":25,"x":200,"name":"hboxAge","anchorX":1,"align":"middle"},"child":[{"type":"Label","props":{"x":0,"text":"3000","name":"labAge","fontSize":50,"font":"SimHei","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":1,"text":"岁","fontSize":50,"font":"SimHei","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":2,"text":":","fontSize":50,"font":"SimHei","color":"#cfea5c","anchorX":0}}]},{"type":"Label","props":{"y":25,"wordWrap":true,"text":"你的父母开始辅导你数学和英语,智力+1","right":0,"name":"labContent","left":220,"leading":25,"fontSize":50,"font":"SimHei","color":"#ffffff"}}]}]}]}]},{"type":"Box","props":{"right":0,"left":0,"height":1,"bottom":-1},"child":[{"type":"Box","props":{"width":600,"var":"btnSummary","runtime":"ColorfulBox","name":"btnSummary","height":150,"centerX":0,"bottom":80},"child":[{"type":"Label","props":{"text":"UI_Goto_Summary","name":"label","fontSize":60,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0}}]},{"type":"Box","props":{"y":-155,"var":"boxSpeed","runtime":"ColorFilterItem","right":100,"name":"boxSpeed","left":100,"height":150,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"ProgressBar","props":{"var":"prgSpeed","skin":"images/progress/progress_s.png","right":0,"name":"prgSpeed","left":0,"bottom":0}},{"type":"HScrollBar","props":{"var":"scbSpeed","skin":"images/slider/hslider_s.png","right":0,"name":"scbSpeed","min":0,"max":1000,"left":0,"height":60,"bottom":0}},{"type":"Label","props":{"text":"UI_Manual","fontSize":50,"color":"#ffffff","bottom":70}},{"type":"Label","props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"SimHei","color":"#ffffff","bottom":70}}]}]}]}; return TrajectoryUI; })(View); var LoadingUI=(function(_super){ diff --git a/src/ui/themes/cyber/thanks.js b/src/ui/themes/cyber/thanks.js deleted file mode 100644 index 9b43da2..0000000 --- a/src/ui/themes/cyber/thanks.js +++ /dev/null @@ -1,6 +0,0 @@ -export default class CyberThanks extends CyberThanksUI { - constructor() { - super(); - this.btnBack.on(Laya.Event.CLICK, this, ()=>$ui.switchView(UI.pages.MAIN)); - } -} \ No newline at end of file diff --git a/src/ui/themes/default/thanks.js b/src/ui/themes/default/thanks.js index 8625848..9bd546b 100644 --- a/src/ui/themes/default/thanks.js +++ b/src/ui/themes/default/thanks.js @@ -2,5 +2,58 @@ export default class Thanks extends 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, false); + 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 #createComponent = plugin.extractComponents(Thanks.uiView, ['boxTopSupport']); + #createTopSupportItem() { + const item = Thanks.#createComponent('boxTopSupport'); + item.name = item.getChildByName('name'); + item.comment = item.getChildByName('comment'); + $_.deepMapSet(item, $ui.common.topSupportItem); + return item; + } + + #topSupports; + + init() { + const supports = []; + this.#topSupports = []; + core.specialThanks + .sort(()=>0.5-Math.random()) + .forEach(({group, name, comment, color})=> + group == 2 + ? supports.push({name, color}) + : this.renderTopSupport(name, comment, color) + ); + this.listSupports.array = supports; + } + + renderTopSupport(name, comment, color) { + const item = this.#createTopSupportItem(); + item.name.text = name; + item.comment.text = comment; + item.name.color = color || '#000000'; + this.vboxTopSupports.addChild(item); + this.#topSupports.push(item); + this.#topSupports.forEach((item, index) => item.y = index); + } + + renderSupport(label) { + const {name, color} = label.dataSource; + label.text = name; + label.color = color || $ui.common.defaultFontColor; + } + + close() { + this.#topSupports.forEach(item => { + item.removeSelf(); + item.destroy(); + }); + this.#topSupports = null; } } \ No newline at end of file diff --git a/src/ui/themes/views.js b/src/ui/themes/views.js index 6f97ed9..5fe1eb7 100644 --- a/src/ui/themes/views.js +++ b/src/ui/themes/views.js @@ -22,7 +22,7 @@ const cyber = { [pages.TRAJECTORY]: "cyber/trajectory", [pages.SUMMARY]: "cyber/summary", [pages.ACHIEVEMENT]: "cyber/achievement", - [pages.THANKS]: "cyber/thanks", + [pages.THANKS]: "default/thanks", }, popups: { [popups.ACHIEVEMENT]: "cyber/popup/achievementPopup", @@ -30,6 +30,13 @@ const cyber = { configs: { bgColor: '#04131f', common: { + topSupportItem: { + defaultColor: '#ffa500', + defaultStroke: '#ffa500', + hoverColor: '#ffc500', + hoverStroke: '#ffa500', + }, + defaultFontColor: '#cccccc', grade: [ '#cccccc', '#55fffe', @@ -43,6 +50,40 @@ const cyber = { '#ffce45ff', ], }, + pages: { + [pages.THANKS]: { + vars: { + btnBack: { + defaultColor: '#5865f2', + defaultStroke: '#eeeeee', + defaultLabel: '#eeeeee', + hoverColor: '#1160b0', + hoverStroke: '#eeeeee', + hoverLabel: '#eeeeee', + lineWidth: 0, + radius: 4, + }, + btnAFD: { + defaultColor: '#8764de', + defaultStroke: '#8764de', + defaultLabel: '#ffffff', + hoverColor: '#9774ee', + hoverStroke: '#9774ee', + hoverLabel: '#ffffff', + radius: 4, + }, + btnDDF: { + defaultColor: '#cc6699', + defaultStroke: '#cc6699', + defaultLabel: '#ffffff', + hoverColor: '#dc76a9', + hoverStroke: '#dc76a9', + hoverLabel: '#ffffff', + radius: 4, + }, + }, + } + } } } @@ -68,15 +109,19 @@ const dark = { box: { defaultColor: '#4a5361', defaultStroke: '#4a5361', - defaultLabel: '#eeeeee', hoverColor: '#4a5361', hoverStroke: '#4a5361', - hoverLabel: '#eeeeee', filters: ()=>[new Laya.GlowFilter("#eeeeee", 8, 0, 0)], }, ageColor: '#ffffee', contentColor: '#eeeeee', }, + topSupportItem: { + defaultColor: '#ffa500', + defaultStroke: '#ffa500', + hoverColor: '#ffc500', + hoverStroke: '#ffa500', + }, grade: [ '#cccccc', '#55fffe', @@ -381,6 +426,24 @@ const dark = { [pages.THANKS]: { vars: { btnBack: 'btn_small', + btnAFD: { + defaultColor: '#8764de', + defaultStroke: '#8764de', + defaultLabel: '#ffffff', + hoverColor: '#9774ee', + hoverStroke: '#9774ee', + hoverLabel: '#ffffff', + radius: 4, + }, + btnDDF: { + defaultColor: '#cc6699', + defaultStroke: '#cc6699', + defaultLabel: '#ffffff', + hoverColor: '#dc76a9', + hoverStroke: '#dc76a9', + hoverLabel: '#ffffff', + radius: 4, + }, }, } }, @@ -419,19 +482,17 @@ const light = { defaultFontColor: '#000000', trajectoryItem: { box: { - defaultColor: '#ffffff', - defaultStroke: '#ffffff', - defaultLabel: '#000000', - hoverColor: '#ffffff', - hoverStroke: '#ffffff', - hoverLabel: '#000000', - lineWidth: 0, - radius: 0, filters: ()=>[new Laya.GlowFilter("#b1b1b1", 8, 0, 0)], }, ageColor: '#000000', contentColor: '#000000', }, + topSupportItem: { + defaultColor: '#ffa500', + defaultStroke: '#ffa500', + hoverColor: '#ffc500', + hoverStroke: '#ffa500', + }, grade: [ '#000000', '#55fffe', @@ -734,6 +795,24 @@ const light = { [pages.THANKS]: { vars: { btnBack: 'btn_small', + btnAFD: { + defaultColor: '#8764de', + defaultStroke: '#8764de', + defaultLabel: '#ffffff', + hoverColor: '#9774ee', + hoverStroke: '#9774ee', + hoverLabel: '#ffffff', + radius: 4, + }, + btnDDF: { + defaultColor: '#cc6699', + defaultStroke: '#cc6699', + defaultLabel: '#ffffff', + hoverColor: '#dc76a9', + hoverStroke: '#dc76a9', + hoverLabel: '#ffffff', + radius: 4, + } }, } },