add trajectory auto mode
BIN
laya/assets/images/progress/progress_s$bar.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
laya/assets/images/progress/progress_s.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
laya/assets/images/slider/hslider_s$bar.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
laya/assets/images/slider/hslider_s$down.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
laya/assets/images/slider/hslider_s$up.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
laya/assets/images/slider/hslider_s.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/"}}
|
||||
{"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/"}}
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -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/"}}
|
||||
{"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/"}}
|
||||
|
Before Width: | Height: | Size: 97 B After Width: | Height: | Size: 5.0 KiB |
@@ -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: '仙体',
|
||||
});
|
||||
@@ -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: '抽到橙色概率六倍',
|
||||
});
|
||||
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -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?.();
|
||||
}
|
||||
|
||||