diff --git a/laya/assets/images/progress/progress_s$bar.png b/laya/assets/images/progress/progress_s$bar.png new file mode 100644 index 0000000..f49b77d Binary files /dev/null and b/laya/assets/images/progress/progress_s$bar.png differ diff --git a/laya/assets/images/progress/progress_s.png b/laya/assets/images/progress/progress_s.png new file mode 100644 index 0000000..296027b Binary files /dev/null and b/laya/assets/images/progress/progress_s.png differ diff --git a/laya/assets/images/slider/hslider_s$bar.png b/laya/assets/images/slider/hslider_s$bar.png new file mode 100644 index 0000000..1175f78 Binary files /dev/null and b/laya/assets/images/slider/hslider_s$bar.png differ diff --git a/laya/assets/images/slider/hslider_s$down.png b/laya/assets/images/slider/hslider_s$down.png new file mode 100644 index 0000000..7212ede Binary files /dev/null and b/laya/assets/images/slider/hslider_s$down.png differ diff --git a/laya/assets/images/slider/hslider_s$up.png b/laya/assets/images/slider/hslider_s$up.png new file mode 100644 index 0000000..51225b7 Binary files /dev/null and b/laya/assets/images/slider/hslider_s$up.png differ diff --git a/laya/assets/images/slider/hslider_s.png b/laya/assets/images/slider/hslider_s.png new file mode 100644 index 0000000..37d9844 Binary files /dev/null and b/laya/assets/images/slider/hslider_s.png differ diff --git a/laya/pages/view/CyberTheme/CyberTrajectory.ui b/laya/pages/view/CyberTheme/CyberTrajectory.ui index ee10ec4..0ec05eb 100644 --- a/laya/pages/view/CyberTheme/CyberTrajectory.ui +++ b/laya/pages/view/CyberTheme/CyberTrajectory.ui @@ -1,8 +1,8 @@ { "x":0, "type":"View", - "selectedBox":102, - "selecteID":19, + "selectedBox":14, + "selecteID":104, "props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberTrajectory.png","runtime":"ViewBase","height":2436}, "nodeParent":-1, "label":"View", @@ -569,6 +569,71 @@ "child":[ ], "$HIDDEN":false + }, + { + "x":30, + "type":"Box", + "props":{"y":-155,"width":900,"var":"boxSpeed","name":"boxSpeed","height":150,"centerX":0,"anchorY":0.5,"anchorX":0.5}, + "nodeParent":14, + "label":"Box(boxSpeed)", + "isOpen":true, + "isDirectory":true, + "isAniNode":true, + "hasChild":true, + "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, + "label":"ProgressBar(prgSpeed)", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":105, + "child":[ + ] + }, + { + "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, + "label":"HScrollBar(scbSpeed)", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":106, + "child":[ + ] + }, + { + "x":45, + "type":"Label", + "props":{"text":"UI_Manual","fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70}, + "nodeParent":104, + "label":"Label", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":107, + "child":[ + ] + }, + { + "x":45, + "type":"Label", + "props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70}, + "nodeParent":104, + "label":"Label", + "isDirectory":false, + "isAniNode":true, + "hasChild":false, + "compId":108, + "child":[ + ] + }] }], "$LOCKED":true, "$HIDDEN":false diff --git a/public/images/atlas/.rec b/public/images/atlas/.rec index e844058..438b425 100644 --- a/public/images/atlas/.rec +++ b/public/images/atlas/.rec @@ -40,11 +40,17 @@ P E2BF0C93 progress_1@3x$bar.png P B86E1D0F progress_1@3x.png P E7F15BA7 progress_2$bar.png P 641A22BF progress_2.png +P AF80A9AF progress_s$bar.png +P 41417E8D progress_s.png D images/resource P F3659301 bottombreath.png P 496D6FB9 circle.png P B5087365 circleflash.png D images/slider +P 9682C590 hslider_s$bar.png +P F6238BD4 hslider_s$down.png +P F4198287 hslider_s$up.png +P 2A785866 hslider_s.png R 8B95E6D3 vslider_1@3x$bar.png P 6581FBA8 vslider_1@3x$down.png P 6581FBA8 vslider_1@3x$up.png diff --git a/public/images/atlas/images/progress.atlas b/public/images/atlas/images/progress.atlas index 8c6f45c..6ab65cd 100644 --- a/public/images/atlas/images/progress.atlas +++ b/public/images/atlas/images/progress.atlas @@ -1 +1 @@ -{"frames":{"progress_1@3x$bar.png":{"frame":{"h":36,"idx":0,"w":203,"x":0,"y":201},"sourceSize":{"h":36,"w":203},"spriteSourceSize":{"x":0,"y":0}},"progress_1@3x.png":{"frame":{"h":36,"idx":0,"w":203,"x":204,"y":201},"sourceSize":{"h":36,"w":203},"spriteSourceSize":{"x":0,"y":0}},"progress_2$bar.png":{"frame":{"h":200,"idx":0,"w":200,"x":0,"y":0},"sourceSize":{"h":200,"w":200},"spriteSourceSize":{"x":0,"y":0}},"progress_2.png":{"frame":{"h":200,"idx":0,"w":200,"x":201,"y":0},"sourceSize":{"h":200,"w":200},"spriteSourceSize":{"x":0,"y":0}}},"meta":{"image":"progress.png","prefix":"images/progress/"}} \ No newline at end of file +{"frames":{"progress_1@3x$bar.png":{"frame":{"h":36,"idx":0,"w":203,"x":0,"y":262},"sourceSize":{"h":36,"w":203},"spriteSourceSize":{"x":0,"y":0}},"progress_1@3x.png":{"frame":{"h":36,"idx":0,"w":203,"x":204,"y":262},"sourceSize":{"h":36,"w":203},"spriteSourceSize":{"x":0,"y":0}},"progress_2$bar.png":{"frame":{"h":200,"idx":0,"w":200,"x":0,"y":0},"sourceSize":{"h":200,"w":200},"spriteSourceSize":{"x":0,"y":0}},"progress_2.png":{"frame":{"h":200,"idx":0,"w":200,"x":201,"y":0},"sourceSize":{"h":200,"w":200},"spriteSourceSize":{"x":0,"y":0}},"progress_s$bar.png":{"frame":{"h":60,"idx":0,"w":226,"x":0,"y":201},"sourceSize":{"h":60,"w":226},"spriteSourceSize":{"x":0,"y":0}},"progress_s.png":{"frame":{"h":60,"idx":0,"w":226,"x":227,"y":201},"sourceSize":{"h":60,"w":226},"spriteSourceSize":{"x":0,"y":0}}},"meta":{"image":"progress.png","prefix":"images/progress/"}} \ No newline at end of file diff --git a/public/images/atlas/images/progress.png b/public/images/atlas/images/progress.png index 80dbbfb..c4c72b0 100644 Binary files a/public/images/atlas/images/progress.png and b/public/images/atlas/images/progress.png differ diff --git a/public/images/atlas/images/slider.atlas b/public/images/atlas/images/slider.atlas index 7443fe0..09ea1a9 100644 --- a/public/images/atlas/images/slider.atlas +++ b/public/images/atlas/images/slider.atlas @@ -1 +1 @@ -{"frames":{"vslider_1@3x$down.png":{"frame":{"h":1,"idx":0,"w":1,"x":0,"y":0},"sourceSize":{"h":1,"w":1},"spriteSourceSize":{"x":0,"y":0}},"vslider_1@3x$up.png":{"frame":{"h":1,"idx":0,"w":1,"x":0,"y":2},"sourceSize":{"h":1,"w":1},"spriteSourceSize":{"x":0,"y":0}}},"meta":{"image":"slider.png","prefix":"images/slider/"}} \ No newline at end of file +{"frames":{"hslider_s$bar.png":{"frame":{"h":180,"idx":0,"w":47,"x":0,"y":61},"sourceSize":{"h":180,"w":47},"spriteSourceSize":{"x":0,"y":0}},"hslider_s$down.png":{"frame":{"h":1,"idx":0,"w":1,"x":0,"y":242},"sourceSize":{"h":1,"w":1},"spriteSourceSize":{"x":0,"y":0}},"hslider_s$up.png":{"frame":{"h":1,"idx":0,"w":1,"x":0,"y":244},"sourceSize":{"h":1,"w":1},"spriteSourceSize":{"x":0,"y":0}},"hslider_s.png":{"frame":{"h":60,"idx":0,"w":226,"x":0,"y":0},"sourceSize":{"h":60,"w":226},"spriteSourceSize":{"x":0,"y":0}},"vslider_1@3x$down.png":{"frame":{"h":1,"idx":0,"w":1,"x":0,"y":246},"sourceSize":{"h":1,"w":1},"spriteSourceSize":{"x":0,"y":0}},"vslider_1@3x$up.png":{"frame":{"h":1,"idx":0,"w":1,"x":0,"y":248},"sourceSize":{"h":1,"w":1},"spriteSourceSize":{"x":0,"y":0}}},"meta":{"image":"slider.png","prefix":"images/slider/"}} \ No newline at end of file diff --git a/public/images/atlas/images/slider.png b/public/images/atlas/images/slider.png index 91a009d..0136fc8 100644 Binary files a/public/images/atlas/images/slider.png and b/public/images/atlas/images/slider.png differ diff --git a/src/i18n/en-us.js b/src/i18n/en-us.js index a618895..75d0abc 100644 --- a/src/i18n/en-us.js +++ b/src/i18n/en-us.js @@ -43,6 +43,9 @@ export default ({ UI_Random_Allocate: 'Random Allocate', UI_Make_New_Life: 'Make New Life', + UI_Manual: 'Manual', + UI_Auto: 'Auto', + UI_Title_Summary: 'Life Summary', UI_Talent_Extend: 'Talent, You can choose one to extend', UI_Remake_Again: 'Remake Again', @@ -50,48 +53,48 @@ export default ({ 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_Achievement_Count: 'Achievement', + UI_Remake_Times: 'Remake Times', + UI_Event_Collection_Rate: 'Event Collection', + UI_Talent_Collection_Rate: 'Talent Collection', - '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_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_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_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_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_Strength_Judge_Level_7: '凝气', + UI_Strength_Judge_Level_8: '筑基', + UI_Strength_Judge_Level_9: '金丹', + UI_Strength_Judge_Level_10: '元婴', + UI_Strength_Judge_Level_11: '仙体', }); \ No newline at end of file diff --git a/src/i18n/zh-cn.js b/src/i18n/zh-cn.js index 1979ec7..cb82aea 100644 --- a/src/i18n/zh-cn.js +++ b/src/i18n/zh-cn.js @@ -42,6 +42,9 @@ export default ({ UI_Random_Allocate: '随机分配', UI_Make_New_Life: '开始新人生', + UI_Manual: '手动', + UI_Auto: '自动', + UI_Title_Summary: '人生总结', UI_Talent_Extend: '天赋:你可以选择一个,下辈子还能抽到', UI_Remake_Again: '再次重开', @@ -49,63 +52,63 @@ export default ({ UI_Final_Age: '享年', UI_Total_Judge: '总评', - 'UI_Achievement_Count': '获得成就', - 'UI_Remake_Times': '重开次数', - 'UI_Event_Collection_Rate': '事件收集率', - 'UI_Talent_Collection_Rate': '天赋收集率', - 'UI_Statistics': '统计', + UI_Achievement_Count: '获得成就', + UI_Remake_Times: '重开次数', + UI_Event_Collection_Rate: '事件收集率', + UI_Talent_Collection_Rate: '天赋收集率', + UI_Statistics: '统计', - '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_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_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_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_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_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_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_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: '抽到橙色概率六倍', }); \ No newline at end of file diff --git a/src/ui/layaUI.max.all.js b/src/ui/layaUI.max.all.js index 94dc1e4..62d2c56 100644 --- a/src/ui/layaUI.max.all.js +++ b/src/ui/layaUI.max.all.js @@ -222,6 +222,9 @@ var CyberTrajectoryUI=(function(_super){ this.labStrength=null; this.labSpirit=null; this.btnSummary=null; + this.boxSpeed=null; + this.prgSpeed=null; + this.scbSpeed=null; this.panelTrajectory=null; this.vboxTrajectory=null; this.btnUp=null; @@ -241,7 +244,7 @@ var CyberTrajectoryUI=(function(_super){ } - CyberTrajectoryUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Sprite","props":{"y":0,"x":0},"child":[{"type":"Rect","props":{"width":1125,"lineWidth":1,"height":2436,"fillColor":"#04131f"}}]},{"type":"Box","props":{"top":126,"right":20,"left":20,"height":275},"child":[{"type":"Image","props":{"top":-13,"skin":"images/border/border_2@3x.png","right":-13,"left":-13,"bottom":-13,"sizeGrid":"75,155,75,155"}},{"type":"Box","props":{"width":192,"left":36,"height":192,"centerY":0}},{"type":"VBox","props":{"space":13,"right":45,"left":242,"centerY":0,"align":"left"},"child":[{"type":"HBox","props":{"y":1,"space":13,"align":"middle"},"child":[{"type":"Box","props":{"x":1,"width":260,"name":"boxCharm","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_chr@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Charm","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labCharm","text":"10","name":"labCharm","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]},{"type":"Box","props":{"y":0,"x":2,"width":260,"name":"boxMoney","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_mny@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Money","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labMoney","text":"10","name":"labMoney","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":3,"width":260,"name":"boxIntelligence","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_int@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Intelligence","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labIntelligence","text":"10","name":"labIntelligence","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]}]},{"type":"HBox","props":{"y":2,"space":13,"align":"middle"},"child":[{"type":"Box","props":{"y":0,"x":0,"width":260,"name":"boxStrength","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_str@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Strength","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labStrength","text":"10","name":"labStrength","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]},{"type":"Box","props":{"width":260,"name":"boxSpirit","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_spr@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Spirit","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labSpirit","text":"10","name":"labSpirit","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]}]}]}]},{"type":"Box","props":{"width":1,"height":1,"centerX":0,"bottom":-1},"child":[{"type":"Button","props":{"y":-155,"width":500,"var":"btnSummary","skin":"images/button/button_main@3x.png","name":"btnSummary","label":"人生总结","height":180,"centerX":0,"stateNum":1,"anchorX":0.5,"anchorY":0.5,"sizeGrid":"45,200,45,200","labelFont":"方正像素12","labelColors":"#00fffc,#00fffc,#00fffc","labelSize":50,"runtime":"ScaleButton"}}]},{"type":"Box","props":{"top":440,"right":20,"left":20,"bottom":250},"child":[{"type":"Image","props":{"top":0,"skin":"images/border/border_1@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"130,130,130,130"}},{"type":"Panel","props":{"var":"panelTrajectory","vScrollBarSkin":"images/slider/vslider_1@3x.png","top":80,"right":20,"name":"panelTrajectory","left":0,"bottom":80},"child":[{"type":"VBox","props":{"var":"vboxTrajectory","top":0,"right":40,"name":"vboxTrajectory","left":20},"child":[{"type":"Box","props":{"right":0,"name":"boxTrajectoryItem","left":0},"child":[{"type":"HBox","props":{"y":0,"x":200,"name":"hboxAge","anchorX":1,"align":"middle"},"child":[{"type":"Label","props":{"x":0,"text":"3000","name":"labAge","fontSize":50,"font":"方正像素12","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":1,"text":"岁","fontSize":50,"font":"方正像素12","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":2,"text":":","fontSize":50,"font":"方正像素12","color":"#cfea5c","anchorX":0}}]},{"type":"Label","props":{"wordWrap":true,"text":"你的父母开始辅导你数学和英语,智力+1","right":0,"name":"labContent","left":220,"leading":44,"fontSize":50,"font":"方正像素12","color":"#ffffff"}}]}]}]},{"type":"Box","props":{"y":20,"x":20,"var":"btnUp","top":20,"right":20,"name":"btnUp","left":20,"height":50},"child":[{"type":"Image","props":{"top":0,"skin":"images/border/up@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"4,4,4,4"}},{"type":"Box","props":{"width":60,"height":60,"centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Image","props":{"skin":"images/icons/icon_up@3x.png","centerY":0,"centerX":0}}]}]},{"type":"Box","props":{"y":1676,"x":20,"var":"btnDown","right":20,"name":"btnDown","left":20,"height":50,"bottom":20},"child":[{"type":"Image","props":{"top":0,"skin":"images/border/up@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"4,4,4,4"}},{"type":"Box","props":{"width":60,"rotation":180,"height":60,"centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Image","props":{"skin":"images/icons/icon_up@3x.png","centerY":0,"centerX":0}}]}]}]}]}; + CyberTrajectoryUI.uiView={"type":"View","props":{"width":1125,"runtime":"ViewBase","height":2436},"child":[{"type":"Sprite","props":{"y":0,"x":0},"child":[{"type":"Rect","props":{"width":1125,"lineWidth":1,"height":2436,"fillColor":"#04131f"}}]},{"type":"Box","props":{"top":126,"right":20,"left":20,"height":275},"child":[{"type":"Image","props":{"top":-13,"skin":"images/border/border_2@3x.png","right":-13,"left":-13,"bottom":-13,"sizeGrid":"75,155,75,155"}},{"type":"Box","props":{"width":192,"left":36,"height":192,"centerY":0}},{"type":"VBox","props":{"space":13,"right":45,"left":242,"centerY":0,"align":"left"},"child":[{"type":"HBox","props":{"y":1,"space":13,"align":"middle"},"child":[{"type":"Box","props":{"x":1,"width":260,"name":"boxCharm","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_chr@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Charm","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labCharm","text":"10","name":"labCharm","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]},{"type":"Box","props":{"y":0,"x":2,"width":260,"name":"boxMoney","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_mny@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Money","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labMoney","text":"10","name":"labMoney","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]},{"type":"Box","props":{"x":3,"width":260,"name":"boxIntelligence","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_int@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Intelligence","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labIntelligence","text":"10","name":"labIntelligence","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]}]},{"type":"HBox","props":{"y":2,"space":13,"align":"middle"},"child":[{"type":"Box","props":{"y":0,"x":0,"width":260,"name":"boxStrength","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_str@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Strength","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labStrength","text":"10","name":"labStrength","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]},{"type":"Box","props":{"width":260,"name":"boxSpirit","height":82},"child":[{"type":"Image","props":{"y":-10,"x":-5,"top":0,"skin":"images/border/property@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"15,15,15,15"}},{"type":"Box","props":{"width":82,"left":5,"height":82},"child":[{"type":"Image","props":{"skin":"images/icons/icon_spr@3x.png","centerY":0,"centerX":0}}]},{"type":"Label","props":{"text":"UI_Property_Spirit","fontSize":40,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}},{"type":"Box","props":{"y":0,"width":82,"right":5,"height":82},"child":[{"type":"Label","props":{"var":"labSpirit","text":"10","name":"labSpirit","fontSize":55,"font":"方正像素12","color":"#55fffe","centerY":0,"centerX":0,"anchorY":5,"anchorX":0.5}}]}]}]}]}]},{"type":"Box","props":{"width":1,"height":1,"centerX":0,"bottom":-1},"child":[{"type":"Button","props":{"y":-155,"width":500,"var":"btnSummary","skin":"images/button/button_main@3x.png","name":"btnSummary","label":"人生总结","height":180,"centerX":0,"stateNum":1,"anchorX":0.5,"anchorY":0.5,"sizeGrid":"45,200,45,200","labelFont":"方正像素12","labelColors":"#00fffc,#00fffc,#00fffc","labelSize":50,"runtime":"ScaleButton"}},{"type":"Box","props":{"y":-155,"width":900,"var":"boxSpeed","name":"boxSpeed","height":150,"centerX":0,"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,"font":"方正像素12","color":"#55fffe","bottom":70}},{"type":"Label","props":{"text":"UI_Auto","right":0,"fontSize":50,"font":"方正像素12","color":"#55fffe","bottom":70}}]}]},{"type":"Box","props":{"top":440,"right":20,"left":20,"bottom":250},"child":[{"type":"Image","props":{"top":0,"skin":"images/border/border_1@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"130,130,130,130"}},{"type":"Panel","props":{"var":"panelTrajectory","vScrollBarSkin":"images/slider/vslider_1@3x.png","top":80,"right":20,"name":"panelTrajectory","left":0,"bottom":80},"child":[{"type":"VBox","props":{"var":"vboxTrajectory","top":0,"right":40,"name":"vboxTrajectory","left":20},"child":[{"type":"Box","props":{"right":0,"name":"boxTrajectoryItem","left":0},"child":[{"type":"HBox","props":{"y":0,"x":200,"name":"hboxAge","anchorX":1,"align":"middle"},"child":[{"type":"Label","props":{"x":0,"text":"3000","name":"labAge","fontSize":50,"font":"方正像素12","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":1,"text":"岁","fontSize":50,"font":"方正像素12","color":"#cfea5c","anchorX":0}},{"type":"Label","props":{"x":2,"text":":","fontSize":50,"font":"方正像素12","color":"#cfea5c","anchorX":0}}]},{"type":"Label","props":{"wordWrap":true,"text":"你的父母开始辅导你数学和英语,智力+1","right":0,"name":"labContent","left":220,"leading":44,"fontSize":50,"font":"方正像素12","color":"#ffffff"}}]}]}]},{"type":"Box","props":{"y":20,"x":20,"var":"btnUp","top":20,"right":20,"name":"btnUp","left":20,"height":50},"child":[{"type":"Image","props":{"top":0,"skin":"images/border/up@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"4,4,4,4"}},{"type":"Box","props":{"width":60,"height":60,"centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Image","props":{"skin":"images/icons/icon_up@3x.png","centerY":0,"centerX":0}}]}]},{"type":"Box","props":{"y":1676,"x":20,"var":"btnDown","right":20,"name":"btnDown","left":20,"height":50,"bottom":20},"child":[{"type":"Image","props":{"top":0,"skin":"images/border/up@3x.png","right":0,"left":0,"bottom":0,"sizeGrid":"4,4,4,4"}},{"type":"Box","props":{"width":60,"rotation":180,"height":60,"centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},"child":[{"type":"Image","props":{"skin":"images/icons/icon_up@3x.png","centerY":0,"centerX":0}}]}]}]}]}; return CyberTrajectoryUI; })(View); var LoadingUI=(function(_super){ diff --git a/src/ui/themes/cyber/cyberTrajectory.js b/src/ui/themes/cyber/cyberTrajectory.js index e790956..c8b3e4f 100644 --- a/src/ui/themes/cyber/cyberTrajectory.js +++ b/src/ui/themes/cyber/cyberTrajectory.js @@ -48,9 +48,13 @@ export default class CyberTrajectory extends CyberTrajectoryUI { this.btnUp.on(Laya.Event.MOUSE_OUT, this, clear); this.btnDown.on(Laya.Event.MOUSE_UP, this, clear); this.btnDown.on(Laya.Event.MOUSE_OUT, this, clear); - + this.scbSpeed.on(Laya.Event.CHANGE, this, () => this.speed = this.scbSpeed.value); + this.scbSpeed.on(Laya.Event.MOUSE_UP, this, () => this.onNext()); } + #speed; + #auto; + static load() { return ['images/slider/vslider_1@3x$bar.png']; } @@ -67,6 +71,7 @@ export default class CyberTrajectory extends CyberTrajectoryUI { #talents; init({propertyAllocate, talents}) { + this.boxSpeed.visible = true; this.btnSummary.visible = false; this.#trajectoryItems = []; this.#isEnd = false; @@ -76,6 +81,8 @@ export default class CyberTrajectory extends CyberTrajectoryUI { } close() { + this.scbSpeed.value = 0; + this.speed = 0; this.#trajectoryItems.forEach(item => { item.removeSelf(); item.destroy(); @@ -101,6 +108,7 @@ export default class CyberTrajectory extends CyberTrajectoryUI { this.#isEnd = isEnd; if(isEnd) { + this.boxSpeed.visible = false; this.btnSummary.visible = true; } @@ -130,4 +138,19 @@ export default class CyberTrajectory extends CyberTrajectoryUI { UIManager.getInstance().switchView(UIManager.getInstance().themes.SUMMARY, {talents}); } + get speed() { + return this.#speed; + } + + set speed(speed) { + this.#speed = speed; + this.prgSpeed.value = speed / this.scbSpeed.max; + clearInterval(this.#auto); + this.#auto = null; + if(!speed) return; + this.#auto = setInterval( + () => this.onNext(), + 3000 * (1 - this.prgSpeed.value) + 300 + ); + } } \ No newline at end of file diff --git a/src/ui/uiManager.js b/src/ui/uiManager.js index 44cd58c..136e809 100644 --- a/src/ui/uiManager.js +++ b/src/ui/uiManager.js @@ -45,6 +45,7 @@ class UIManager { // close current view this.clearAllDialog(); + await this.#currentView?.__close?.(view); await this.#currentView?.close?.(view); this.#viewLayer.removeChildren(); @@ -54,7 +55,7 @@ class UIManager { this.#currentView = view; this.#viewLayer.addChild(view); - view.close = actions?.close; + view.__close = actions?.close; await actions?.open?.(view); await view.show?.(); }