mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-13 15:52:44 +08:00
daily update
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
{
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":1,
|
||||
"selecteID":61,
|
||||
"selectedBox":3,
|
||||
"selecteID":7,
|
||||
"props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberAchievement.png","runtime":"ViewBase","height":2436},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
@ -92,7 +92,7 @@
|
||||
{
|
||||
"x":45,
|
||||
"type":"Label",
|
||||
"props":{"text":"排行榜","fontSize":50,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":40,"anchorY":0.5,"anchorX":0.5},
|
||||
"props":{"text":"UI_Rank","fontSize":50,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":40,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":3,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
|
@ -2,7 +2,7 @@
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":1,
|
||||
"selecteID":210,
|
||||
"selecteID":8,
|
||||
"props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberSummary.png","runtime":"ViewBase","height":2436},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
@ -94,9 +94,9 @@
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"y":10,"x":10,"top":340,"right":40,"name":"propertyAllocate","left":40,"height":870},
|
||||
"props":{"y":340,"x":40,"top":340,"right":40,"name":"summary","left":40,"height":870},
|
||||
"nodeParent":1,
|
||||
"label":"Box(propertyAllocate)",
|
||||
"label":"Box(summary)",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
|
@ -2,7 +2,7 @@
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":14,
|
||||
"selecteID":104,
|
||||
"selecteID":13,
|
||||
"props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberTrajectory.png","runtime":"ViewBase","height":2436},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
@ -559,7 +559,7 @@
|
||||
{
|
||||
"x":30,
|
||||
"type":"Button",
|
||||
"props":{"y":-155,"width":500,"var":"btnSummary","skin":"images/button/button_main@3x.png","name":"btnSummary","label":"人生总结","centerX":0},
|
||||
"props":{"y":-155,"width":500,"var":"btnSummary","skin":"images/button/button_main@3x.png","name":"btnSummary","label":"UI_Goto_Summary","centerX":0},
|
||||
"nodeParent":14,
|
||||
"label":"Button(btnSummary)",
|
||||
"isOpen":true,
|
||||
|
@ -2,8 +2,8 @@
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":1,
|
||||
"selecteID":61,
|
||||
"props":{"width":1125,"sceneColor":"#000000","sceneBg":"laya/views/view/CyberTheme/CyberAchievement.png","runtime":"ViewBase","height":2436},
|
||||
"selecteID":9,
|
||||
"props":{"width":1125,"sceneColor":"#000000","runtime":"ViewBase","height":2436},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
"isOpen":true,
|
||||
@ -14,91 +14,242 @@
|
||||
"child":[
|
||||
{
|
||||
"x":15,
|
||||
"type":"Button",
|
||||
"props":{"y":200,"var":"btnBack","skin":"images/button/button_back@3x.png","name":"btnBack","left":30},
|
||||
"type":"Label",
|
||||
"props":{"y":80,"text":"UI_Statistics","name":"title","fontSize":80,"font":"SimHei","color":"#ffffff","centerX":0},
|
||||
"nodeParent":1,
|
||||
"label":"Button(btnBack)",
|
||||
"label":"Label(title)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":2,
|
||||
"compId":86,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"width":1,"top":0,"right":0,"height":1},
|
||||
"props":{"width":260,"var":"btnBack","top":50,"runtime":"ColorfulBox","right":50,"name":"btnBack","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":1,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"label":"Box(btnBack)",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":68,
|
||||
"compId":69,
|
||||
"child":[
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":1028,"x":332,"text":"UI_Back","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0},
|
||||
"nodeParent":69,
|
||||
"label":"Label(label)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":70,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"x":33,"width":1060,"top":230,"height":540,"centerX":0},
|
||||
"nodeParent":1,
|
||||
"label":"Box",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":25,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Box",
|
||||
"props":{"y":200,"x":-170,"width":260,"var":"btnRank","runtime":"ScaleButton","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":68,
|
||||
"label":"Box(btnRank)",
|
||||
"props":{"width":500,"var":"boxRemakeTimes","top":0,"runtime":"ColorfulBox","name":"boxRemakeTimes","left":0,"height":240},
|
||||
"nodeParent":25,
|
||||
"label":"Box(boxRemakeTimes)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":3,
|
||||
"compId":28,
|
||||
"child":[
|
||||
{
|
||||
"x":45,
|
||||
"type":"Image",
|
||||
"props":{"top":0,"skin":"images/button/button_small@3x.png","right":0,"left":0,"bottom":0},
|
||||
"nodeParent":3,
|
||||
"label":"Image",
|
||||
"type":"Label",
|
||||
"props":{"var":"labRemakeTimes","text":"label","right":0,"name":"font_default","left":0,"fontSize":60,"font":"SimHei","color":"#ffffff","centerY":-60,"bold":true,"align":"center"},
|
||||
"nodeParent":28,
|
||||
"label":"Label(labRemakeTimes)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":4,
|
||||
"compId":32,
|
||||
"child":[
|
||||
],
|
||||
"$HIDDEN":false
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":45,
|
||||
"type":"Label",
|
||||
"props":{"var":"labRemakeTimesJudge","text":"label","right":0,"name":"font_default","left":0,"fontSize":45,"font":"SimHei","color":"#ffffff","centerY":60,"bold":false,"align":"center"},
|
||||
"nodeParent":28,
|
||||
"label":"Label(labRemakeTimesJudge)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":33,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"width":500,"var":"boxAchievementCount","top":0,"runtime":"ColorfulBox","right":0,"name":"boxAchievementCount","height":240},
|
||||
"nodeParent":25,
|
||||
"label":"Box(boxAchievementCount)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":29,
|
||||
"child":[
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labAchievementCount","text":"label","right":0,"name":"font_default","left":0,"fontSize":60,"font":"SimHei","color":"#ffffff","centerY":-60,"bold":true,"align":"center"},
|
||||
"nodeParent":29,
|
||||
"label":"Label(labAchievementCount)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":38,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labAchievementCountJudge","text":"label","right":0,"name":"font_default","left":0,"fontSize":45,"font":"SimHei","color":"#ffffff","centerY":60,"bold":false,"align":"center"},
|
||||
"nodeParent":29,
|
||||
"label":"Label(labAchievementCountJudge)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":39,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"width":500,"var":"boxEventRate","runtime":"ColorfulBox","name":"boxEventRate","left":0,"height":240,"bottom":0},
|
||||
"nodeParent":25,
|
||||
"label":"Box(boxEventRate)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":71,
|
||||
"child":[
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"width":90,"left":8,"height":90},
|
||||
"nodeParent":3,
|
||||
"label":"Box",
|
||||
"props":{"y":0,"x":0,"width":500,"var":"prgEventRate","height":240,"blendMode":"lighter","alpha":0.1},
|
||||
"nodeParent":71,
|
||||
"label":"Box(prgEventRate)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":5,
|
||||
"compId":82,
|
||||
"child":[
|
||||
{
|
||||
"x":60,
|
||||
"type":"Image",
|
||||
"props":{"skin":"images/icons/icon_rank@3x.png","centerY":0,"centerX":0},
|
||||
"nodeParent":5,
|
||||
"label":"Image",
|
||||
"type":"Rect",
|
||||
"props":{"width":500,"lineWidth":1,"height":240,"fillColor":"#ffffff"},
|
||||
"nodeParent":82,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":6,
|
||||
"compId":83,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"x":45,
|
||||
"type":"Label",
|
||||
"props":{"text":"排行榜","fontSize":50,"font":"方正像素12","color":"#ffffff","centerY":0,"centerX":40,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":3,
|
||||
"label":"Label",
|
||||
"props":{"text":"UI_Event_Collection_Rate","right":0,"name":"font_default","left":0,"fontSize":60,"font":"SimHei","color":"#ffffff","centerY":-60,"bold":true,"align":"center"},
|
||||
"nodeParent":71,
|
||||
"label":"Label(font_default)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":7,
|
||||
"compId":72,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labEventRate","text":"label","right":0,"name":"font_default","left":0,"fontSize":45,"font":"SimHei","color":"#ffffff","centerY":60,"bold":false,"align":"center"},
|
||||
"nodeParent":71,
|
||||
"label":"Label(labEventRate)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":73,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"width":500,"var":"boxTalentRate","runtime":"ColorfulBox","right":0,"name":"boxTalentRate","height":240,"bottom":0},
|
||||
"nodeParent":25,
|
||||
"label":"Box(boxTalentRate)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":74,
|
||||
"child":[
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"y":0,"x":0,"width":500,"var":"prgTalentRate","height":240,"blendMode":"lighter","alpha":0.1},
|
||||
"nodeParent":74,
|
||||
"label":"Box(prgTalentRate)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":84,
|
||||
"child":[
|
||||
{
|
||||
"type":"Rect",
|
||||
"props":{"width":500,"lineWidth":1,"height":240,"fillColor":"#ffffff"},
|
||||
"nodeParent":84,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":85,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"text":"UI_Talent_Collection_Rate","right":0,"name":"font_default","left":0,"fontSize":60,"font":"SimHei","color":"#ffffff","centerY":-60,"bold":true,"align":"center"},
|
||||
"nodeParent":74,
|
||||
"label":"Label(font_default)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":75,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labTalentRate","text":"label","right":0,"name":"font_default","left":0,"fontSize":45,"font":"SimHei","color":"#ffffff","centerY":60,"bold":false,"align":"center"},
|
||||
"nodeParent":74,
|
||||
"label":"Label(labTalentRate)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":76,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
@ -107,467 +258,131 @@
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"y":310,"x":0,"top":310,"right":0,"left":0,"height":120},
|
||||
"props":{"width":1060,"top":800,"runtime":"ColorfulBox","name":"hr","height":10,"centerX":0},
|
||||
"nodeParent":1,
|
||||
"label":"Box",
|
||||
"label":"Box(hr)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":91,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Label",
|
||||
"props":{"top":870,"text":"UI_Achievement","name":"title","fontSize":80,"font":"SimHei","color":"#ffffff","centerX":0},
|
||||
"nodeParent":1,
|
||||
"label":"Label(title)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":92,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"x":945,"width":260,"var":"btnRank","top":870,"runtime":"ColorfulBox","right":50,"name":"btnRank","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":1,
|
||||
"label":"Box(btnRank)",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":16,
|
||||
"compId":3,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Label",
|
||||
"props":{"y":110,"x":140,"var":"btnStatistics","text":"UI_Statistics","name":"btnStatistics","fontSize":100,"font":"方正像素12","color":"#ffffff","anchorY":1,"anchorX":0.5},
|
||||
"nodeParent":16,
|
||||
"label":"Label(btnStatistics)",
|
||||
"props":{"text":"UI_Rank","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":3,
|
||||
"label":"Label(label)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":18,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":110,"x":360,"var":"btnAchievement","text":"UI_Achievement","name":"btnAchievement","fontSize":60,"font":"方正像素12","color":"#ffffff","anchorY":1,"anchorX":0.5},
|
||||
"nodeParent":16,
|
||||
"label":"Label(btnAchievement)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":21,
|
||||
"compId":7,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"x":0,"width":2250,"var":"boxPage","top":450,"name":"boxPage","bottom":80},
|
||||
"type":"List",
|
||||
"props":{"width":1080,"var":"listAchievements","vScrollBarSkin":" ","top":1000,"spaceY":60,"spaceX":60,"repeatX":2,"name":"listAchievements","centerX":0,"bottom":35},
|
||||
"nodeParent":1,
|
||||
"label":"Box(boxPage)",
|
||||
"label":"List(listAchievements)",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":8,
|
||||
"compId":9,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Box",
|
||||
"props":{"width":1125,"var":"boxA","top":0,"name":"boxA","left":0,"bottom":0},
|
||||
"nodeParent":8,
|
||||
"label":"Box(boxA)",
|
||||
"props":{"y":10,"x":10,"width":500,"runtime":"ColorfulBox","renderType":"render","height":320},
|
||||
"nodeParent":9,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"isAniNode":false,
|
||||
"hasChild":true,
|
||||
"compId":66,
|
||||
"compId":77,
|
||||
"child":[
|
||||
{
|
||||
"x":45,
|
||||
"type":"Label",
|
||||
"props":{"text":"label","right":0,"name":"name","left":0,"fontSize":60,"font":"SimHei","color":"#ffffff","centerY":-80,"bold":true,"align":"center"},
|
||||
"nodeParent":77,
|
||||
"label":"Label(name)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":false,
|
||||
"hasChild":false,
|
||||
"compId":78,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":45,
|
||||
"type":"Label",
|
||||
"props":{"text":"label","right":0,"name":"description","left":0,"fontSize":45,"font":"SimHei","color":"#ffffff","centerY":80,"bold":false,"anchorY":0,"anchorX":0,"align":"center"},
|
||||
"nodeParent":77,
|
||||
"label":"Label(description)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":false,
|
||||
"hasChild":false,
|
||||
"compId":79,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":45,
|
||||
"type":"Box",
|
||||
"props":{"width":1125,"top":0,"height":1125,"centerX":0},
|
||||
"nodeParent":66,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"props":{"width":500,"name":"boxMask","height":320,"alpha":0.5},
|
||||
"nodeParent":77,
|
||||
"label":"Box(boxMask)",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"isAniNode":false,
|
||||
"hasChild":true,
|
||||
"compId":25,
|
||||
"compId":80,
|
||||
"child":[
|
||||
{
|
||||
"type":"Image",
|
||||
"props":{"top":40,"skin":"images/border/border_2@3x.png","right":30,"left":30,"bottom":30},
|
||||
"nodeParent":25,
|
||||
"label":"Image",
|
||||
"type":"Rect",
|
||||
"props":{"width":500,"lineWidth":1,"height":320,"fillColor":"#000000"},
|
||||
"nodeParent":80,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":26,
|
||||
"child":[
|
||||
],
|
||||
"$HIDDEN":false
|
||||
},
|
||||
{
|
||||
"type":"Sprite",
|
||||
"props":{"y":150,"x":100,"width":920,"height":380},
|
||||
"nodeParent":25,
|
||||
"label":"Sprite",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":52,
|
||||
"child":[
|
||||
{
|
||||
"type":"Rect",
|
||||
"props":{"y":-1,"x":460,"width":4,"lineWidth":1,"lineColor":"#1a5459","height":320,"fillColor":"#1a5459"},
|
||||
"nodeParent":52,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":50,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Rect",
|
||||
"props":{"y":370,"x":0,"width":920,"lineWidth":1,"lineColor":"#1a5459","height":5,"fillColor":"#1a5459"},
|
||||
"nodeParent":52,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":51,
|
||||
"child":[
|
||||
]
|
||||
}],
|
||||
"$HIDDEN":false
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"width":400,"top":150,"left":100,"height":320},
|
||||
"nodeParent":25,
|
||||
"label":"Box",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":28,
|
||||
"child":[
|
||||
{
|
||||
"type":"HBox",
|
||||
"props":{"y":130,"x":0},
|
||||
"nodeParent":28,
|
||||
"label":"HBox",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":54,
|
||||
"child":[
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labRemakeTimes","text":"1","name":"labRemakeTimes","fontSize":70,"font":"方正像素12","color":"#55fffe","bold":true,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":54,
|
||||
"label":"Label(labRemakeTimes)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":31,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"text":"UI_Times","fontSize":70,"font":"方正像素12","color":"#55fffe","bold":true,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":54,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":53,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":210,"x":0,"text":"UI_Remake_Times","fontSize":62,"font":"方正像素12","color":"#ffffff","bold":false,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":28,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":32,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":240,"var":"labRemakeTimesJudge","text":"抽到紫色几率不变","name":"labRemakeTimesJudge","fontSize":42,"font":"方正像素12","color":"#93aaae","bold":false,"anchorY":0,"anchorX":0},
|
||||
"nodeParent":28,
|
||||
"label":"Label(labRemakeTimesJudge)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":33,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"width":400,"top":150,"right":100,"height":320},
|
||||
"nodeParent":25,
|
||||
"label":"Box",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":29,
|
||||
"child":[
|
||||
{
|
||||
"type":"HBox",
|
||||
"props":{"y":130},
|
||||
"nodeParent":29,
|
||||
"label":"HBox",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":55,
|
||||
"child":[
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labAchievementCount","text":"1","name":"labAchievementCount","fontSize":70,"font":"方正像素12","color":"#55fffe","bold":true,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":55,
|
||||
"label":"Label(labAchievementCount)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":56,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"text":"UI_Count","fontSize":70,"font":"方正像素12","color":"#55fffe","bold":true,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":55,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":57,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":210,"x":0,"text":"UI_Achievement_Count","fontSize":62,"font":"方正像素12","color":"#ffffff","bold":false,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":29,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":38,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":240,"x":0,"var":"labAchievementCountJudge","text":"抽到橙色几率不变","name":"labAchievementCountJudge","fontSize":42,"font":"方正像素12","color":"#93aaae","bold":false,"anchorY":0,"anchorX":0},
|
||||
"nodeParent":29,
|
||||
"label":"Label(labAchievementCountJudge)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":39,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"right":100,"left":100,"height":450,"bottom":100},
|
||||
"nodeParent":25,
|
||||
"label":"Box",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":30,
|
||||
"child":[
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"top":25,"right":0,"left":0,"height":180},
|
||||
"nodeParent":30,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":41,
|
||||
"child":[
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":85,"x":0,"text":"UI_Event_Collection_Rate","fontSize":62,"font":"方正像素12","color":"#ffffff","bold":false,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":41,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":42,
|
||||
"child":[
|
||||
],
|
||||
"$HIDDEN":false
|
||||
},
|
||||
{
|
||||
"type":"ProgressBar",
|
||||
"props":{"y":135,"var":"prgEventRate","value":1,"skin":"images/progress/progress_1@3x.png","right":240,"name":"prgEventRate","left":0,"anchorY":0.5,"anchorX":0},
|
||||
"nodeParent":41,
|
||||
"label":"ProgressBar(prgEventRate)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":43,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labEventRate","text":"100%","right":0,"name":"labEventRate","fontSize":110,"font":"方正像素12","color":"#55fffe","centerY":0,"bold":false,"anchorY":0.5,"anchorX":1},
|
||||
"nodeParent":41,
|
||||
"label":"Label(labEventRate)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":44,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"right":0,"left":0,"height":180,"bottom":30},
|
||||
"nodeParent":30,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":45,
|
||||
"child":[
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"y":85,"x":0,"text":"UI_Talent_Collection_Rate","fontSize":62,"font":"方正像素12","color":"#ffffff","bold":false,"anchorY":1,"anchorX":0},
|
||||
"nodeParent":45,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":46,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"ProgressBar",
|
||||
"props":{"y":135,"var":"prgTalentRate","value":0.73,"skin":"images/progress/progress_1@3x.png","right":240,"name":"prgTalentRate","left":0,"anchorY":0.5,"anchorX":0},
|
||||
"nodeParent":45,
|
||||
"label":"ProgressBar(prgTalentRate)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":47,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"var":"labTalentRate","text":"73%","right":0,"name":"labTalentRate","fontSize":110,"font":"方正像素12","color":"#55fffe","centerY":0,"bold":false,"anchorY":0.5,"anchorX":1},
|
||||
"nodeParent":45,
|
||||
"label":"Label(labTalentRate)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":48,
|
||||
"child":[
|
||||
]
|
||||
}],
|
||||
"$HIDDEN":false
|
||||
}]
|
||||
}]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"width":1125,"var":"boxB","top":0,"right":0,"name":"boxB","bottom":0},
|
||||
"nodeParent":8,
|
||||
"label":"Box(boxB)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":67,
|
||||
"child":[
|
||||
{
|
||||
"type":"List",
|
||||
"props":{"y":35,"width":1080,"var":"listAchievements","vScrollBarSkin":"images/slider/vslider_1@3x.png","top":35,"name":"listAchievements","centerX":0,"bottom":35},
|
||||
"nodeParent":67,
|
||||
"label":"List(listAchievements)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":9,
|
||||
"child":[
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"y":0,"x":0,"width":530,"runtime":"ColorFilterItem","renderType":"render","height":460},
|
||||
"nodeParent":9,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":false,
|
||||
"hasChild":true,
|
||||
"compId":10,
|
||||
"hasChild":false,
|
||||
"compId":81,
|
||||
"child":[
|
||||
{
|
||||
"type":"Image",
|
||||
"props":{"top":20,"skin":"images/border/achievement@3x.png","right":20,"name":"uncomplete","left":20,"bottom":20},
|
||||
"nodeParent":10,
|
||||
"label":"Image(uncomplete)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":false,
|
||||
"hasChild":false,
|
||||
"compId":11,
|
||||
"child":[
|
||||
],
|
||||
"$HIDDEN":false
|
||||
},
|
||||
{
|
||||
"type":"Image",
|
||||
"props":{"top":0,"skin":"images/border/achievement_complete@3x.png","right":0,"name":"completed","left":0,"bottom":0},
|
||||
"nodeParent":10,
|
||||
"label":"Image(completed)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":false,
|
||||
"hasChild":false,
|
||||
"compId":12,
|
||||
"child":[
|
||||
],
|
||||
"$HIDDEN":false
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"text":"霹雳霹雳","name":"name","fontSize":80,"font":"方正像素12","color":"#ffffff","centerY":-30,"centerX":0},
|
||||
"nodeParent":10,
|
||||
"label":"Label(name)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":false,
|
||||
"hasChild":false,
|
||||
"compId":13,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Label",
|
||||
"props":{"wordWrap":true,"text":"被第九重雷劫劈死","right":40,"name":"description","left":40,"height":95,"fontSize":42,"font":"方正像素12","color":"#9ca5a9","bottom":25,"align":"center"},
|
||||
"nodeParent":10,
|
||||
"label":"Label(description)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":false,
|
||||
"hasChild":false,
|
||||
"compId":14,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
]
|
||||
}]
|
||||
}]
|
||||
}],
|
||||
"$HIDDEN":false
|
||||
}]
|
||||
}],
|
||||
"animations":[
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":1,
|
||||
"selecteID":10,
|
||||
"selecteID":2,
|
||||
"props":{"y":50,"width":570,"sceneColor":"#000000","mouseThrough":true,"mouseEnabled":false,"height":150,"alpha":0.75},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
@ -12,46 +12,22 @@
|
||||
"hasChild":true,
|
||||
"compId":1,
|
||||
"child":[
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{},
|
||||
"nodeParent":1,
|
||||
"label":"Box",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":2,
|
||||
"child":[
|
||||
{
|
||||
"type":"Rect",
|
||||
"props":{"width":570,"lineWidth":1,"height":150,"fillColor":"#55fffe"},
|
||||
"nodeParent":2,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":4,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"x":0,"var":"boxBg","name":"boxBg"},
|
||||
"nodeParent":1,
|
||||
"label":"Box(boxBg)",
|
||||
"isOpen":false,
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":5,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Rect",
|
||||
"props":{"width":560,"lineWidth":1,"height":150,"fillColor":"#272727"},
|
||||
"props":{"width":560,"lineWidth":1,"height":150,"fillColor":"#292a28"},
|
||||
"nodeParent":5,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
@ -60,46 +36,46 @@
|
||||
"compId":6,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":30,
|
||||
"type":"Rect",
|
||||
"props":{"y":0,"x":560,"width":10,"lineWidth":1,"height":150,"fillColor":"#84ff55"},
|
||||
"nodeParent":5,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":14,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"width":560,"height":150},
|
||||
"type":"Label",
|
||||
"props":{"y":10,"text":"UI_Achievement_Achieve","left":40,"fontSize":40,"font":"SimHei","color":"#84ff55","bold":true},
|
||||
"nodeParent":1,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"label":"Label",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":8,
|
||||
"hasChild":false,
|
||||
"compId":12,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Image",
|
||||
"props":{"x":70,"skin":"images/icons/icon_achievement@3x.png","centerY":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":8,
|
||||
"label":"Image",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":7,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":30,
|
||||
"type":"Label",
|
||||
"props":{"x":150,"var":"labName","text":"所有人都是我","name":"labName","fontSize":60,"font":"方正像素12","color":"#cccccc","centerY":0},
|
||||
"nodeParent":8,
|
||||
"label":"Label(labName)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":9,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Label",
|
||||
"props":{"var":"labName","text":"Achievement","name":"labName","left":40,"fontSize":60,"font":"SimHei","color":"#cccccc","centerY":30},
|
||||
"nodeParent":1,
|
||||
"label":"Label(labName)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":13,
|
||||
"child":[
|
||||
]
|
||||
}],
|
||||
"animations":[
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":85,
|
||||
"selecteID":86,
|
||||
"selectedBox":1,
|
||||
"selecteID":83,
|
||||
"props":{"y":1218,"x":562,"width":1125,"sceneColor":"#000000","runtime":"ViewBase","height":2436,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
@ -67,17 +67,16 @@
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"y":200,"x":200,"width":225,"var":"btnThanks","runtime":"ColorfulBox","name":"btnSmall","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"props":{"width":260,"var":"btnThanks","top":50,"runtime":"ColorfulBox","right":50,"name":"btnSmall","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":1,
|
||||
"label":"Box(btnThanks)",
|
||||
"isOpen":true,
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":15,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Label",
|
||||
"props":{"text":"UI_Thanks","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":15,
|
||||
@ -93,95 +92,128 @@
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"y":0,"x":1100,"width":1,"top":0,"runtime":"ColorfulBox","right":0,"height":1},
|
||||
"props":{"width":260,"var":"btnAchievement","top":180,"runtime":"ColorfulBox","right":50,"name":"btnSmall","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":1,
|
||||
"label":"Box",
|
||||
"label":"Box(btnAchievement)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":84,
|
||||
"compId":21,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Label",
|
||||
"props":{"text":"UI_Achievement","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":21,
|
||||
"label":"Label(label)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":25,
|
||||
"child":[
|
||||
]
|
||||
}],
|
||||
"$HIDDEN":false
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"y":0,"x":0,"width":160,"var":"btnGithub","runtime":"ScaleButton","rotation":-45,"name":"btnGithub","height":160,"anchorY":0,"anchorX":0.5},
|
||||
"nodeParent":1,
|
||||
"label":"Box(btnGithub)",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":82,
|
||||
"child":[
|
||||
{
|
||||
"type":"Rect",
|
||||
"props":{"y":0,"x":-70,"width":300,"lineWidth":1,"height":140,"fillColor":"#000000"},
|
||||
"nodeParent":82,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":88,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Image",
|
||||
"props":{"top":0,"skin":"images/icons/icon_github.png","rotation":0,"right":0,"left":0,"bottom":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":82,
|
||||
"label":"Image",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":78,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Rect",
|
||||
"props":{"y":0,"x":-70,"width":300,"renderType":"hit","lineWidth":1,"height":140,"fillColor":"#000000"},
|
||||
"nodeParent":82,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":89,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"type":"Box",
|
||||
"props":{"y":200,"x":-200,"width":225,"var":"btnAchievement","runtime":"ColorfulBox","name":"btnSmall","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":84,
|
||||
"label":"Box(btnAchievement)",
|
||||
"isOpen":true,
|
||||
"props":{"y":0,"x":-70,"renderType":"mask"},
|
||||
"nodeParent":82,
|
||||
"label":"Box",
|
||||
"isOpen":null,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":21,
|
||||
"compId":91,
|
||||
"child":[
|
||||
{
|
||||
"x":45,
|
||||
"type":"Label",
|
||||
"props":{"text":"UI_Achievement","name":"label","fontSize":50,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":21,
|
||||
"label":"Label(label)",
|
||||
"type":"Rect",
|
||||
"props":{"width":300,"lineWidth":1,"height":140,"fillColor":"#000000"},
|
||||
"nodeParent":91,
|
||||
"label":"Rect",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":25,
|
||||
"compId":90,
|
||||
"child":[
|
||||
]
|
||||
}],
|
||||
"$HIDDEN":false
|
||||
}]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
"type":"Box",
|
||||
"props":{"width":1,"left":0,"height":1,"bottom":0},
|
||||
"props":{"width":160,"left":50,"height":160,"bottom":50},
|
||||
"nodeParent":1,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":87,
|
||||
"compId":92,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Box",
|
||||
"props":{"y":-175,"x":100,"width":160,"var":"btnGithub","runtime":"ScaleButton","name":"btnGithub","height":160,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":87,
|
||||
"label":"Box(btnGithub)",
|
||||
"isOpen":true,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":82,
|
||||
"child":[
|
||||
{
|
||||
"x":45,
|
||||
"type":"Image",
|
||||
"props":{"top":0,"skin":"images/icons/icon_github.png","right":0,"left":0,"bottom":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":82,
|
||||
"label":"Image",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":78,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"x":30,
|
||||
"type":"Box",
|
||||
"props":{"y":-355,"x":100,"width":160,"var":"btnDiscord","runtime":"ScaleButton","name":"btnDiscord","height":160,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":87,
|
||||
"props":{"width":160,"var":"btnDiscord","runtime":"ScaleButton","name":"btnDiscord","height":160,"centerY":0,"centerX":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":92,
|
||||
"label":"Box(btnDiscord)",
|
||||
"isOpen":true,
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":83,
|
||||
"child":[
|
||||
{
|
||||
"x":45,
|
||||
"type":"Image",
|
||||
"props":{"top":0,"skin":"images/icons/icon_discord.png","right":0,"left":0,"bottom":0,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":83,
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
||||
{
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":1,
|
||||
"selecteID":17,
|
||||
"selectedBox":21,
|
||||
"selecteID":114,
|
||||
"props":{"width":1125,"sceneColor":"#000000","runtime":"ViewBase","height":2436},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
@ -15,7 +15,7 @@
|
||||
{
|
||||
"x":15,
|
||||
"type":"Label",
|
||||
"props":{"y":130,"text":"UI_Title_Talent","name":"title","fontSize":80,"font":"SimHei","color":"#ffffff","centerX":0},
|
||||
"props":{"y":80,"var":"title","text":"UI_Title_Talent","name":"title","fontSize":80,"font":"SimHei","color":"#ffffff","centerX":0},
|
||||
"nodeParent":1,
|
||||
"label":"Label(title)",
|
||||
"isDirectory":false,
|
||||
@ -31,14 +31,13 @@
|
||||
"props":{"var":"pageDrawCard","top":0,"right":0,"name":"pageDrawCard","left":0,"bottom":0},
|
||||
"nodeParent":1,
|
||||
"label":"Box(pageDrawCard)",
|
||||
"isOpen":true,
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":true,
|
||||
"compId":19,
|
||||
"child":[
|
||||
{
|
||||
"x":30,
|
||||
"type":"Box",
|
||||
"props":{"width":600,"var":"btnDrawCard","runtime":"ColorfulBox","name":"btnDrawCard","height":150,"centerY":0,"centerX":0},
|
||||
"nodeParent":19,
|
||||
@ -50,7 +49,6 @@
|
||||
"compId":110,
|
||||
"child":[
|
||||
{
|
||||
"x":45,
|
||||
"type":"Label",
|
||||
"props":{"text":"UI_Talent_Draw","name":"label","fontSize":70,"font":"SimHei","color":"#ffffff","centerY":0,"centerX":0},
|
||||
"nodeParent":110,
|
||||
@ -64,7 +62,7 @@
|
||||
}]
|
||||
}],
|
||||
"$LOCKED":true,
|
||||
"$HIDDEN":true
|
||||
"$HIDDEN":false
|
||||
},
|
||||
{
|
||||
"x":15,
|
||||
@ -81,7 +79,7 @@
|
||||
{
|
||||
"x":30,
|
||||
"type":"List",
|
||||
"props":{"width":1085,"var":"listTalents","vScrollBarSkin":" ","top":310,"spaceY":20,"repeatX":1,"name":"listTalents","centerX":0,"bottom":370},
|
||||
"props":{"width":1085,"var":"listTalents","vScrollBarSkin":" ","top":230,"spaceY":20,"repeatX":1,"name":"listTalents","centerX":0,"bottom":250},
|
||||
"nodeParent":21,
|
||||
"label":"List(listTalents)",
|
||||
"isOpen":true,
|
||||
@ -93,7 +91,7 @@
|
||||
{
|
||||
"x":45,
|
||||
"type":"Box",
|
||||
"props":{"y":15,"runtime":"ColorfulBox","right":5,"renderType":"render","left":15,"height":80},
|
||||
"props":{"y":15,"runtime":"ColorfulBox","right":15,"renderType":"render","left":15,"height":80},
|
||||
"nodeParent":22,
|
||||
"label":"Box",
|
||||
"isOpen":true,
|
||||
@ -114,6 +112,19 @@
|
||||
"compId":30,
|
||||
"child":[
|
||||
]
|
||||
},
|
||||
{
|
||||
"x":60,
|
||||
"type":"Box",
|
||||
"props":{"top":0,"runtime":"BlankBox","right":0,"name":"blank","left":0,"bottom":0,"alpha":0.3},
|
||||
"nodeParent":23,
|
||||
"label":"Box(blank)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":false,
|
||||
"hasChild":false,
|
||||
"compId":116,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
}],
|
||||
"$LOCKED":true,
|
||||
|
@ -2,7 +2,7 @@
|
||||
"x":0,
|
||||
"type":"View",
|
||||
"selectedBox":1,
|
||||
"selecteID":1,
|
||||
"selecteID":3,
|
||||
"props":{"width":1125,"sceneColor":"#000000","runtime":"ViewBase","height":2436},
|
||||
"nodeParent":-1,
|
||||
"label":"View",
|
||||
@ -14,16 +14,28 @@
|
||||
"child":[
|
||||
{
|
||||
"x":15,
|
||||
"type":"Button",
|
||||
"props":{"y":200,"var":"btnBack","skin":"images/button/button_back@3x.png","name":"btnBack","left":30},
|
||||
"type":"Box",
|
||||
"props":{"width":260,"var":"btnBack","top":50,"runtime":"ColorfulBox","right":50,"name":"btnBack","height":90,"anchorY":0.5,"anchorX":0.5},
|
||||
"nodeParent":1,
|
||||
"label":"Button(btnBack)",
|
||||
"isDirectory":false,
|
||||
"label":"Box(btnBack)",
|
||||
"isOpen":false,
|
||||
"isDirectory":true,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":2,
|
||||
"hasChild":true,
|
||||
"compId":3,
|
||||
"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,
|
||||
"label":"Label(label)",
|
||||
"isDirectory":false,
|
||||
"isAniNode":true,
|
||||
"hasChild":false,
|
||||
"compId":4,
|
||||
"child":[
|
||||
]
|
||||
}]
|
||||
}],
|
||||
"animations":[
|
||||
{
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -11,6 +11,7 @@
|
||||
<meta name="full-screen" content="true"/>
|
||||
<meta name="x5-fullscreen" content="true"/>
|
||||
<meta name="360-fullscreen" content="true"/>
|
||||
<meta name="theme-color" content="#157878"/>
|
||||
<meta name="laya" screenorientation ="landscape"/>
|
||||
<meta http-equiv="expires" content="0"/>
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp"/>
|
||||
|
@ -69,7 +69,9 @@ class App{
|
||||
this.#language = App.languages['zh-cn'];
|
||||
break;
|
||||
}
|
||||
Laya.Text.langPacks = (await import(`./i18n/${this.#language}.js`)).default;
|
||||
globalThis.$lang =
|
||||
Laya.Text.langPacks =
|
||||
(await import(`./i18n/${this.#language}.js`)).default;
|
||||
}
|
||||
|
||||
resigterEvent() {
|
||||
@ -79,7 +81,8 @@ class App{
|
||||
}
|
||||
|
||||
async start({
|
||||
language = App.languages['zh-cn']
|
||||
language = App.languages['zh-cn'],
|
||||
theme = 'default',
|
||||
}) {
|
||||
this.resigterEvent();
|
||||
this.#initLaya();
|
||||
|
@ -67,4 +67,36 @@ function mapSet(target, source) {
|
||||
target[key] = source[key];
|
||||
}
|
||||
|
||||
export { clone, max, min, sum, average, weightRandom, listRandom, getListValuesMap, mapConvert, getConvertedMap, mapSet };
|
||||
function deepMapSet(target, source) {
|
||||
for(const key in source) {
|
||||
if(typeof source[key] === 'object')
|
||||
deepMapSet(target[key], source[key]);
|
||||
else
|
||||
target[key] = source[key];
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
function format(str, ...args) {
|
||||
const replace = set => (match, key) => {
|
||||
const value = set[key];
|
||||
switch(typeof value) {
|
||||
case 'object': return JSON.stringify(value);
|
||||
case 'boolean':
|
||||
case 'number':
|
||||
case 'string': return value;
|
||||
default: return value?.toString?.() || match;
|
||||
}
|
||||
};
|
||||
|
||||
switch(args.length) {
|
||||
case 0: return str;
|
||||
case 1:
|
||||
if (typeof(args[0]) != "object") break;
|
||||
return str.replace(/{(.+?)}/g, replace(args[0]));
|
||||
}
|
||||
return str.replace(/{(\d+)}/g, replace(args));
|
||||
}
|
||||
|
||||
export { clone, max, min, sum, average, weightRandom, listRandom, getListValuesMap, mapConvert, getConvertedMap, mapSet, deepMapSet, format };
|
@ -46,9 +46,11 @@ export default ({
|
||||
UI_Manual: 'Manual',
|
||||
UI_Auto: 'Auto',
|
||||
|
||||
UI_Goto_Summary: 'Goto Summary',
|
||||
UI_Title_Summary: 'Life Summary',
|
||||
UI_Talent_Extend: 'Talent, You can choose one to extend',
|
||||
UI_Remake_Again: 'Remake Again',
|
||||
UI_Rank: 'Rank',
|
||||
|
||||
UI_Final_Age: 'Age',
|
||||
UI_Total_Judge: 'Judge',
|
||||
@ -58,35 +60,37 @@ export default ({
|
||||
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_Achievement_Achieve: 'Achievement',
|
||||
|
||||
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_Judge_Level_0: 'Hell', // 地狱
|
||||
UI_Judge_Level_1: 'Worse', // 折磨
|
||||
UI_Judge_Level_2: 'Bad', // 不佳
|
||||
UI_Judge_Level_3: 'Normal', // 普通
|
||||
UI_Judge_Level_4: 'Good', // 优秀
|
||||
UI_Judge_Level_5: 'Great', // 罕见
|
||||
UI_Judge_Level_6: 'Excellent', // 逆天
|
||||
UI_Judge_Level_7: 'Perfect', // 传说
|
||||
|
||||
UI_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_Spirit_Judge_Level_0: 'Hell', // 地狱
|
||||
UI_Spirit_Judge_Level_1: 'Tortured', // 折磨
|
||||
UI_Spirit_Judge_Level_2: 'Unlucky', // 不幸
|
||||
UI_Spirit_Judge_Level_3: 'Normal', // 普通
|
||||
UI_Spirit_Judge_Level_4: 'Happy', // 幸福
|
||||
UI_Spirit_Judge_Level_5: 'Blissful ', // 极乐
|
||||
UI_Spirit_Judge_Level_6: 'Paradise', // 天命
|
||||
|
||||
UI_AGE_Judge_Level_0: 'Stillborn', // 胎死腹中
|
||||
UI_AGE_Judge_Level_1: 'Early', // 早夭
|
||||
UI_AGE_Judge_Level_2: 'Young', // 少年
|
||||
UI_AGE_Judge_Level_3: 'Heyday', // 盛年
|
||||
UI_AGE_Judge_Level_4: 'Middle', // 中年
|
||||
UI_AGE_Judge_Level_5: 'Sexagenarian', // 花甲
|
||||
UI_AGE_Judge_Level_6: 'Septuagenarian', // 古稀
|
||||
UI_AGE_Judge_Level_7: 'Octogenarian', // 杖朝
|
||||
UI_AGE_Judge_Level_8: 'Nonagenarian', // 南山
|
||||
UI_AGE_Judge_Level_9: '不老', // 不老
|
||||
UI_AGE_Judge_Level_10: '修仙', // 修仙
|
||||
UI_AGE_Judge_Level_11: '仙寿', // 仙寿
|
||||
|
||||
UI_Intelligence_Judge_Level_7: '识海',
|
||||
UI_Intelligence_Judge_Level_8: '元神',
|
||||
@ -97,4 +101,8 @@ export default ({
|
||||
UI_Strength_Judge_Level_9: '金丹',
|
||||
UI_Strength_Judge_Level_10: '元婴',
|
||||
UI_Strength_Judge_Level_11: '仙体',
|
||||
|
||||
F_RemakeTimes: 'Remake {0} Times',
|
||||
F_AchievementCount: 'Achievement {0}',
|
||||
F_TalentSelection: '{name} ({description})',
|
||||
});
|
@ -45,6 +45,7 @@ export default ({
|
||||
UI_Manual: '手动',
|
||||
UI_Auto: '自动',
|
||||
|
||||
UI_Goto_Summary: '人生总结',
|
||||
UI_Title_Summary: '人生总结',
|
||||
UI_Talent_Extend: '天赋:你可以选择一个,下辈子还能抽到',
|
||||
UI_Remake_Again: '再次重开',
|
||||
@ -57,6 +58,9 @@ export default ({
|
||||
UI_Event_Collection_Rate: '事件收集率',
|
||||
UI_Talent_Collection_Rate: '天赋收集率',
|
||||
UI_Statistics: '统计',
|
||||
UI_Rank: '排行榜',
|
||||
|
||||
UI_Achievement_Achieve: '获得成就',
|
||||
|
||||
UI_Judge_Level_0: '地狱',
|
||||
UI_Judge_Level_1: '折磨',
|
||||
@ -111,4 +115,8 @@ export default ({
|
||||
UI_Achievement_Count_Judge_Level_3: '抽到橙色概率四倍',
|
||||
UI_Achievement_Count_Judge_Level_4: '抽到橙色概率五倍',
|
||||
UI_Achievement_Count_Judge_Level_5: '抽到橙色概率六倍',
|
||||
|
||||
F_RemakeTimes: '已重开{0}次',
|
||||
F_AchievementCount: '成就达成{0}个',
|
||||
F_TalentSelection: '{name}({description})',
|
||||
});
|
File diff suppressed because one or more lines are too long
@ -465,4 +465,62 @@ class ColorfulBox extends Laya.Box {
|
||||
label.text = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class BlankBox extends Laya.Box {
|
||||
constructor() {
|
||||
super();
|
||||
this.mask = new Laya.Sprite();
|
||||
this.#blank = new Laya.Sprite();
|
||||
this.addChild(this.#blank);
|
||||
}
|
||||
|
||||
#blank;
|
||||
#timeLine;
|
||||
#pause = true;
|
||||
|
||||
#draw() {
|
||||
this.mask.graphics.clear();
|
||||
this.#blank.graphics.clear();
|
||||
this.mask.graphics.drawRect(0, 0, this.width, this.height, '#000000');
|
||||
this.#blank.graphics.drawRect(0, 0, this.width, this.height, '#000000');
|
||||
if(this.#timeLine) this.#timeLine.destroy();
|
||||
this.#timeLine = new Laya.TimeLine()
|
||||
.to(this.#blank, { x: this.width }, 2000)
|
||||
.to(this.#blank, { x: -this.width }, 0);
|
||||
this.#timeLine.play(0, true);
|
||||
if(this.#pause) this.#timeLine.pause();
|
||||
}
|
||||
get pause() {
|
||||
return this.#pause;
|
||||
}
|
||||
set pause(value) {
|
||||
if(this.#pause == value) return;
|
||||
this.#pause = value;
|
||||
this.#blank.visible = !value;
|
||||
if(value) this.#timeLine.pause();
|
||||
else this.#timeLine.resume();
|
||||
}
|
||||
|
||||
destroy(destroyChild) {
|
||||
this.#timeLine.destroy(true);
|
||||
super.destroy(destroyChild);
|
||||
}
|
||||
|
||||
get width() {
|
||||
return super.width;
|
||||
}
|
||||
set width(value) {
|
||||
super.width = value;
|
||||
this.#blank.x = -this.width;
|
||||
this.#draw();
|
||||
}
|
||||
|
||||
get height() {
|
||||
return super.height;
|
||||
}
|
||||
set height(value) {
|
||||
super.height = value;
|
||||
this.#draw();
|
||||
}
|
||||
}
|
@ -55,10 +55,6 @@ export default class CyberTrajectory extends CyberTrajectoryUI {
|
||||
#speed;
|
||||
#auto;
|
||||
|
||||
static load() {
|
||||
return ['images/slider/vslider_1@3x$bar.png'];
|
||||
}
|
||||
|
||||
static #createComponent = plugin.extractComponents(CyberTrajectory.uiView, ['boxTrajectoryItem']);
|
||||
#createTrajectoryItem() {
|
||||
const item = CyberTrajectory.#createComponent('boxTrajectoryItem');
|
||||
|
@ -2,100 +2,51 @@ export default class Achievement extends AchievementUI {
|
||||
constructor() {
|
||||
super();
|
||||
this.btnBack.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.MAIN));
|
||||
const min = Math.min(this.btnAchievement.fontSize, this.btnStatistics.fontSize);
|
||||
const max = Math.max(this.btnAchievement.fontSize, this.btnStatistics.fontSize);
|
||||
this.#state = {min, max};
|
||||
this.btnStatistics.on(Laya.Event.CLICK, this, ()=>this.switch('statistics'));
|
||||
this.btnAchievement.on(Laya.Event.CLICK, this, ()=>this.switch('achievement'));
|
||||
|
||||
this.listAchievements.renderHandler = new Laya.Handler(this, this.onRenderAchievement);
|
||||
this.listAchievements.scrollBar.elasticDistance = 150;
|
||||
this.on(Laya.Event.RESIZE, this, () => {
|
||||
this.boxPage.width = 2 * this.width;
|
||||
this.boxA.width = this.boxB.width = this.width;
|
||||
if(this.boxPage.x < 0) {
|
||||
this.boxPage.x = - this.width;
|
||||
}
|
||||
|
||||
const renderWidth = this.listAchievements?._itemRender?.props?.width;
|
||||
if(renderWidth) {
|
||||
const col = Math.max(Math.floor((this.width - 65) / renderWidth), 1);
|
||||
this.listAchievements.width = col * renderWidth + (col - 1) * (this.listAchievements.spaceY || 0) + 30;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
#state;
|
||||
#tweens;
|
||||
|
||||
init() {
|
||||
this.switch('statistics', 0);
|
||||
|
||||
const {statistics, achievements, PropertyTypes: pt} = core;
|
||||
|
||||
this.listAchievements.array = achievements;
|
||||
|
||||
this.labRemakeTimes.text = statistics[pt.TMS].value;
|
||||
this.labRemakeTimes.text = $_.format($lang.F_RemakeTimes, statistics[pt.TMS].value);
|
||||
this.labRemakeTimesJudge.text = statistics[pt.TMS].judge;
|
||||
this.labAchievementCountJudge.color = $ui.common.grade[statistics[pt.TMS].grade];
|
||||
$_.deepMapSet(this.boxRemakeTimes, $ui.common.achievement[statistics[pt.TMS].grade]);
|
||||
|
||||
this.labAchievementCount.text = statistics[pt.CACHV].value;
|
||||
this.labAchievementCount.text = $_.format($lang.F_AchievementCount, statistics[pt.CACHV].value);
|
||||
this.labAchievementCountJudge.text = statistics[pt.CACHV].judge;
|
||||
this.labAchievementCountJudge.color = $ui.common.grade[statistics[pt.CACHV].grade];
|
||||
$_.deepMapSet(this.boxAchievementCount, $ui.common.achievement[statistics[pt.CACHV].grade]);
|
||||
|
||||
this.labEventRate.text = parseInt(statistics[pt.REVT].value*100)+'%';
|
||||
this.prgEventRate.value = statistics[pt.REVT].value;
|
||||
this.prgEventRate.scaleX = statistics[pt.REVT].value;
|
||||
$_.deepMapSet(this.boxEventRate, $ui.common.achievement[statistics[pt.REVT].grade]);
|
||||
|
||||
this.labTalentRate.text = parseInt(statistics[pt.RTLT].value*100)+'%';
|
||||
this.prgTalentRate.value = statistics[pt.RTLT].value;
|
||||
this.prgTalentRate.scaleX = statistics[pt.RTLT].value;
|
||||
$_.deepMapSet(this.boxTalentRate, $ui.common.achievement[statistics[pt.RTLT].grade]);
|
||||
}
|
||||
|
||||
switch(page, time=300) {
|
||||
if(this.#tweens) {
|
||||
this.#tweens.forEach(tween => Laya.Tween.clear(tween));
|
||||
}
|
||||
this.#tweens = [];
|
||||
|
||||
switch (page) {
|
||||
case 'statistics':
|
||||
time = - this.boxPage.x / this.width * time;
|
||||
this.#tweens.push(
|
||||
Laya.Tween.to(this.boxPage, {x: 0}, time, Laya.Ease.backOut, Laya.Handler.create(this, () => this.#tweens = null)),
|
||||
Laya.Tween.to(this.btnStatistics, {fontSize: this.#state.max, anchorX: 0.5, anchorY: 1}, time, Laya.Ease.backOut),
|
||||
Laya.Tween.to(this.btnAchievement, {fontSize: this.#state.min, anchorX: 0.5, anchorY: 1}, time, Laya.Ease.backOut),
|
||||
);
|
||||
break;
|
||||
case 'achievement':
|
||||
time = (this.width + this.boxPage.x) / this.width * time;
|
||||
this.#tweens.push(
|
||||
Laya.Tween.to(this.boxPage, {x: - this.width}, time, Laya.Ease.backOut, Laya.Handler.create(this, () => this.#tweens = null)),
|
||||
Laya.Tween.to(this.btnStatistics, {fontSize: this.#state.min, anchorX: 0.5, anchorY: 1}, time, Laya.Ease.backOut),
|
||||
Laya.Tween.to(this.btnAchievement, {fontSize: this.#state.max, anchorX: 0.5, anchorY: 1}, time, Laya.Ease.backOut),
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
onRenderAchievement(box, index) {
|
||||
onRenderAchievement(box) {
|
||||
const dataSource = box.dataSource;
|
||||
|
||||
const name = box.getChildByName('name');
|
||||
const description = box.getChildByName('description');
|
||||
const completed = box.getChildByName('completed');
|
||||
const uncomplete = box.getChildByName('uncomplete');
|
||||
const boxMask = box.getChildByName('boxMask');
|
||||
|
||||
$_.deepMapSet(box, $ui.common.achievement[dataSource.grade]);
|
||||
name.color = description.color = $ui.common.defaultFontColor;
|
||||
|
||||
if(dataSource.isAchieved) {
|
||||
name.text = dataSource.name;
|
||||
description.text = dataSource.description;
|
||||
completed.visible = true;
|
||||
uncomplete.visible = false;
|
||||
boxMask.visible = false;
|
||||
} else {
|
||||
name.text = dataSource.hide? '???': dataSource.name;
|
||||
description.text = dataSource.hide? '???': dataSource.description;
|
||||
completed.visible = false;
|
||||
uncomplete.visible = true;
|
||||
boxMask.visible = true;
|
||||
}
|
||||
|
||||
box.colorFilter = $ui.gradeFilter(dataSource.grade);
|
||||
}
|
||||
}
|
@ -97,42 +97,6 @@ export default class Property extends PropertyUI {
|
||||
this.btnStrengthReduce.disabled = this.btnStrengthReduce.gray = false;
|
||||
this.btnMoneyIncrease.disabled = this.btnMoneyIncrease.gray = false;
|
||||
this.btnMoneyReduce.disabled = this.btnMoneyReduce.gray = false;
|
||||
|
||||
if (this.total >= this.#propertyPoints) {
|
||||
this.btnCharmIncrease.disabled = this.btnCharmIncrease.gray = true;
|
||||
this.btnIntelligenceIncrease.disabled = this.btnIntelligenceIncrease.gray = true;
|
||||
this.btnStrengthIncrease.disabled = this.btnStrengthIncrease.gray = true;
|
||||
this.btnMoneyIncrease.disabled = this.btnMoneyIncrease.gray = true;
|
||||
} else if (this.total <= 0) {
|
||||
this.btnCharmReduce.disabled = this.btnCharmReduce.gray = true;
|
||||
this.btnIntelligenceReduce.disabled = this.btnIntelligenceReduce.gray = true;
|
||||
this.btnStrengthReduce.disabled = this.btnStrengthReduce.gray = true;
|
||||
this.btnMoneyReduce.disabled = this.btnMoneyReduce.gray = true;
|
||||
}
|
||||
|
||||
if (charm <= this.#propertyAllocateLimit[0]) {
|
||||
this.btnCharmReduce.disabled = this.btnCharmReduce.gray = true;
|
||||
} else if (charm >= this.#propertyAllocateLimit[1]) {
|
||||
this.btnCharmIncrease.disabled = this.btnCharmIncrease.gray = true;
|
||||
}
|
||||
|
||||
if (intelligence <= this.#propertyAllocateLimit[0]) {
|
||||
this.btnIntelligenceReduce.disabled = this.btnIntelligenceReduce.gray = true;
|
||||
} else if (intelligence >= this.#propertyAllocateLimit[1]) {
|
||||
this.btnIntelligenceIncrease.disabled = this.btnIntelligenceIncrease.gray = true;
|
||||
}
|
||||
|
||||
if (strength <= this.#propertyAllocateLimit[0]) {
|
||||
this.btnStrengthReduce.disabled = this.btnStrengthReduce.gray = true;
|
||||
} else if (strength >= this.#propertyAllocateLimit[1]) {
|
||||
this.btnStrengthIncrease.disabled = this.btnStrengthIncrease.gray = true;
|
||||
}
|
||||
|
||||
if (money <= this.#propertyAllocateLimit[0]) {
|
||||
this.btnMoneyReduce.disabled = this.btnMoneyReduce.gray = true;
|
||||
} else if (money >= this.#propertyAllocateLimit[1]) {
|
||||
this.btnMoneyIncrease.disabled = this.btnMoneyIncrease.gray = true;
|
||||
}
|
||||
}
|
||||
|
||||
check(left, right, value) {
|
||||
@ -209,35 +173,9 @@ export default class Property extends PropertyUI {
|
||||
renderTalent(box) {
|
||||
const dataSource = box.dataSource;
|
||||
|
||||
const labTitle = box.getChildByName("labTitle");
|
||||
const grade1 = box.getChildByName("grade1");
|
||||
const grade2 = box.getChildByName("grade2");
|
||||
const grade3 = box.getChildByName("grade3");
|
||||
const labDescription = box.getChildByName("labDescription");
|
||||
box.label = $_.format($lang.F_TalentSelection, dataSource);
|
||||
const style = $ui.common.card[dataSource.grade].normal;
|
||||
|
||||
labTitle.text = dataSource.name;
|
||||
labDescription.text = dataSource.description;
|
||||
switch (dataSource.grade) {
|
||||
case 1:
|
||||
grade1.visible = true;
|
||||
grade2.visible = false;
|
||||
grade3.visible = false;
|
||||
break;
|
||||
case 2:
|
||||
grade1.visible = false;
|
||||
grade2.visible = true;
|
||||
grade3.visible = false;
|
||||
break;
|
||||
case 3:
|
||||
grade1.visible = false;
|
||||
grade2.visible = false;
|
||||
grade3.visible = true;
|
||||
break;
|
||||
default:
|
||||
grade1.visible = false;
|
||||
grade2.visible = false;
|
||||
grade3.visible = false;
|
||||
break;
|
||||
}
|
||||
$_.deepMapSet(box, style);
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
export default class Summary extends SummaryUI {
|
||||
constructor() {
|
||||
super();
|
||||
this.listSummary.renderHandler = Laya.Handler.create(this, this.renderSummary, null, false);
|
||||
this.listSelectedTalents.renderHandler = Laya.Handler.create(this, this.renderTalent, null, false);
|
||||
this.btnAgain.on(Laya.Event.CLICK, this, this.onAgain);
|
||||
}
|
||||
@ -15,63 +16,22 @@ export default class Summary extends SummaryUI {
|
||||
|
||||
init({talents}) {
|
||||
const {summary, lastExtendTalent} = core;
|
||||
const gradeFilters = [
|
||||
$ui.common.grade0,
|
||||
$ui.common.grade1,
|
||||
$ui.common.grade2,
|
||||
$ui.common.grade3,
|
||||
];
|
||||
const gradeColors = [
|
||||
$ui.common.filter0,
|
||||
$ui.common.filter1,
|
||||
$ui.common.filter2,
|
||||
$ui.common.filter3,
|
||||
];
|
||||
|
||||
const age = summary[core.PropertyTypes.HAGE];
|
||||
this.labAge.text = ''+age.value;
|
||||
this.labAgeJudge.text = age.judge;
|
||||
this.labAgeJudge.color = gradeColors[age.grade];
|
||||
|
||||
const sum = summary[core.PropertyTypes.SUM];
|
||||
this.labTotal.text = ''+sum.value;
|
||||
this.labTotalJudge.text = sum.judge;
|
||||
this.labTotalJudge.color = gradeColors[sum.grade];
|
||||
|
||||
const chr = summary[core.PropertyTypes.HCHR];
|
||||
this.labCharm.text = ''+chr.value;
|
||||
this.prgCharm.value = chr.progress;
|
||||
this.labCharmJudge.text = chr.judge;
|
||||
this.labCharmJudge.color = gradeColors[chr.grade];
|
||||
this.boxCharmGrade.colorFilter = gradeFilters[chr.grade];
|
||||
|
||||
const int = summary[core.PropertyTypes.HINT];
|
||||
this.labIntelligence.text = ''+int.value;
|
||||
this.prgIntelligence.value = int.progress;
|
||||
this.labIntelligenceJudge.text = int.judge;
|
||||
this.labIntelligenceJudge.color = gradeColors[int.grade];
|
||||
this.boxIntelligenceGrade.colorFilter = gradeFilters[int.grade];
|
||||
|
||||
const str = summary[core.PropertyTypes.HSTR];
|
||||
this.labStrength.text = ''+str.value;
|
||||
this.prgStrength.value = str.progress;
|
||||
this.labStrengthJudge.text = str.judge;
|
||||
this.labStrengthJudge.color = gradeColors[str.grade];
|
||||
this.boxStrengthGrade.colorFilter = gradeFilters[str.grade];
|
||||
|
||||
const mny = summary[core.PropertyTypes.HMNY];
|
||||
this.labMoney.text = ''+mny.value;
|
||||
this.prgMoney.value = mny.progress;
|
||||
this.labMoneyJudge.text = mny.judge;
|
||||
this.labMoneyJudge.color = gradeColors[mny.grade];
|
||||
this.boxMoneyGrade.colorFilter = gradeFilters[mny.grade];
|
||||
|
||||
const spr = summary[core.PropertyTypes.HSPR];
|
||||
this.labSpirit.text = ''+spr.value;
|
||||
this.prgSpirit.value = spr.progress;
|
||||
this.labSpiritJudge.text = spr.judge;
|
||||
this.labSpiritJudge.color = gradeColors[spr.grade];
|
||||
this.boxSpiritGrade.colorFilter = gradeFilters[spr.grade];
|
||||
this.listSummary.array = [
|
||||
[core.PropertyTypes.HCHR, $lang.UI_Property_Charm],
|
||||
[core.PropertyTypes.HINT, $lang.UI_Property_Intelligence],
|
||||
[core.PropertyTypes.HSTR, $lang.UI_Property_Strength],
|
||||
[core.PropertyTypes.HMNY, $lang.UI_Property_Money],
|
||||
[core.PropertyTypes.HSPR, $lang.UI_Property_Spirit],
|
||||
[core.PropertyTypes.HAGE, $lang.UI_Final_Age],
|
||||
[core.PropertyTypes.SUM, $lang.UI_Total_Judge],
|
||||
].map(([type, key]) => {
|
||||
const data = summary[type];
|
||||
return {
|
||||
label: `${key}${$lang.UI_Colon} ${data.value} ${$lang[data.judge]}`,
|
||||
grade: data.grade,
|
||||
}
|
||||
});
|
||||
|
||||
talents.sort(({id:a, grade:ag}, {id:b, grade:bg},)=>{
|
||||
if(a == lastExtendTalent) return -1;
|
||||
@ -81,45 +41,17 @@ export default class Summary extends SummaryUI {
|
||||
this.#selectedTalent = talents[0].id;
|
||||
this.listSelectedTalents.array = talents;
|
||||
}
|
||||
|
||||
renderSummary(box) {
|
||||
const {label, grade} = box.dataSource;
|
||||
box.label = label;
|
||||
$_.deepMapSet(box, $ui.common.summary[grade]);
|
||||
}
|
||||
renderTalent(box) {
|
||||
const dataSource = box.dataSource;
|
||||
|
||||
const labTitle = box.getChildByName("labTitle");
|
||||
const grade1 = box.getChildByName("grade1");
|
||||
const grade2 = box.getChildByName("grade2");
|
||||
const grade3 = box.getChildByName("grade3");
|
||||
const labDescription = box.getChildByName("labDescription");
|
||||
const selected = box.getChildByName("selected");
|
||||
const unselected = box.getChildByName("unselected");
|
||||
|
||||
labTitle.text = dataSource.name;
|
||||
labDescription.text = dataSource.description;
|
||||
switch (dataSource.grade) {
|
||||
case 1:
|
||||
grade1.visible = true;
|
||||
grade2.visible = false;
|
||||
grade3.visible = false;
|
||||
break;
|
||||
case 2:
|
||||
grade1.visible = false;
|
||||
grade2.visible = true;
|
||||
grade3.visible = false;
|
||||
break;
|
||||
case 3:
|
||||
grade1.visible = false;
|
||||
grade2.visible = false;
|
||||
grade3.visible = true;
|
||||
break;
|
||||
default:
|
||||
grade1.visible = false;
|
||||
grade2.visible = false;
|
||||
grade3.visible = false;
|
||||
break;
|
||||
}
|
||||
|
||||
selected.visible = dataSource.id == this.#selectedTalent;
|
||||
unselected.visible = !selected.visible;
|
||||
box.label = $_.format($lang.F_TalentSelection, dataSource);
|
||||
const style = $ui.common.card[dataSource.grade];
|
||||
$_.deepMapSet(box, dataSource.id == this.#selectedTalent? style.selected: style.normal);
|
||||
box.getChildByName('blank').pause = dataSource.id != this.#selectedTalent;
|
||||
box.off(Laya.Event.CLICK, this, this.onSelectTalent);
|
||||
box.on(Laya.Event.CLICK, this, this.onSelectTalent, [dataSource.id]);
|
||||
}
|
||||
|
@ -36,10 +36,16 @@ export default class Talent extends TalentUI {
|
||||
renderTalent(box, index) {
|
||||
const dataSource = box.dataSource;
|
||||
|
||||
box.label = `${dataSource.name}(${dataSource.description})`;
|
||||
const style = $ui.common.card[dataSource.grade];
|
||||
const blank = box.getChildByName('blank');
|
||||
box.label = $_.format($lang.F_TalentSelection, dataSource);
|
||||
|
||||
$_.mapSet(box, this.#selected.has(index)? style.selected: style.normal);
|
||||
const style = $ui.common.card[dataSource.grade];
|
||||
const changeStyle = () => {
|
||||
const selected = this.#selected.has(index);
|
||||
blank.pause = !selected;
|
||||
$_.deepMapSet(box, selected? style.selected: style.normal);
|
||||
}
|
||||
changeStyle();
|
||||
|
||||
box.offAll(Laya.Event.CLICK);
|
||||
box.on(Laya.Event.CLICK, this, () => {
|
||||
@ -56,7 +62,7 @@ export default class Talent extends TalentUI {
|
||||
? 'UI_Next'
|
||||
: 'UI_Talent_Select_Uncomplete';
|
||||
|
||||
$_.mapSet(box, this.#selected.has(index)? style.selected: style.normal);
|
||||
changeStyle();
|
||||
});
|
||||
}
|
||||
}
|
@ -14,40 +14,6 @@ export default class Trajectory extends TrajectoryUI {
|
||||
this.btnSummary.on(Laya.Event.CLICK, this, this.onSummary);
|
||||
|
||||
this.panelTrajectory.vScrollBar.elasticDistance = 150;
|
||||
|
||||
let interval = null;
|
||||
let timeout = null;
|
||||
|
||||
const scroll = alter => {
|
||||
let value = this.panelTrajectory.vScrollBar.value + alter;
|
||||
if(value < 0) value = 0;
|
||||
if(value > this.panelTrajectory.vScrollBar.max) value = this.panelTrajectory.vScrollBar.max;
|
||||
this.panelTrajectory.scrollTo(0, value);
|
||||
}
|
||||
const on = (btn, alter) => {
|
||||
btn.off(Laya.Event.CLICK, this, scroll);
|
||||
btn.on(Laya.Event.CLICK, this, scroll, [100*alter]);
|
||||
timeout = setTimeout(() => {
|
||||
btn.off(Laya.Event.CLICK, this, scroll);
|
||||
interval = setInterval(() => scroll(10*alter), 10);
|
||||
}, 100);
|
||||
}
|
||||
const clear = () => {
|
||||
if(interval) {
|
||||
clearInterval(interval);
|
||||
interval = null;
|
||||
}
|
||||
if(timeout) {
|
||||
clearTimeout(timeout);
|
||||
timeout = null;
|
||||
}
|
||||
};
|
||||
this.btnUp.on(Laya.Event.MOUSE_DOWN, this, on, [this.btnUp, -1]);
|
||||
this.btnDown.on(Laya.Event.MOUSE_DOWN, this, on, [this.btnDown, 1]);
|
||||
this.btnUp.on(Laya.Event.MOUSE_UP, this, clear);
|
||||
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());
|
||||
}
|
||||
@ -56,7 +22,10 @@ export default class Trajectory extends TrajectoryUI {
|
||||
#auto;
|
||||
|
||||
static load() {
|
||||
return ['images/slider/vslider_1@3x$bar.png'];
|
||||
return [
|
||||
"images/atlas/images/progress.atlas",
|
||||
'images/atlas/images/slider.atlas',
|
||||
];
|
||||
}
|
||||
|
||||
static #createComponent = plugin.extractComponents(Trajectory.uiView, ['boxTrajectoryItem']);
|
||||
@ -64,6 +33,10 @@ export default class Trajectory extends TrajectoryUI {
|
||||
const item = Trajectory.#createComponent('boxTrajectoryItem');
|
||||
item.labContent = item.getChildByName('labContent');
|
||||
item.labAge = item.getChildByName('hboxAge').getChildByName('labAge');
|
||||
const config = $ui.common.trajectoryItem;
|
||||
$_.deepMapSet(item, config.box);
|
||||
item.getChildByName('hboxAge')._childs.forEach(child => child.color = config.ageColor);
|
||||
item.labContent.color = config.contentColor;
|
||||
return item;
|
||||
}
|
||||
#isEnd;
|
||||
|
@ -13,9 +13,6 @@ const popups = {
|
||||
ACHIEVEMENT: 'POPUP_ACHIEVEMENT',
|
||||
};
|
||||
|
||||
const colors = {
|
||||
}
|
||||
|
||||
const cyber = {
|
||||
pages: {
|
||||
[pages.LOADING]: "loading",
|
||||
@ -62,6 +59,21 @@ const def = {
|
||||
configs: {
|
||||
bgColor: '#222831',
|
||||
common: {
|
||||
defaultFontColor: '#eeeeee',
|
||||
trajectoryItem: {
|
||||
box: {
|
||||
defaultColor: '#4a5361',
|
||||
defaultStroke: '#eeeeee',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#4a5361',
|
||||
hoverStroke: '#eeeeee',
|
||||
hoverLabel: '#eeeeee',
|
||||
lineWidth: 2,
|
||||
radius: 0,
|
||||
},
|
||||
ageColor: '#ffffee',
|
||||
contentColor: '#eeeeee',
|
||||
},
|
||||
grade: [
|
||||
'#cccccc',
|
||||
'#55fffe',
|
||||
@ -153,25 +165,105 @@ const def = {
|
||||
radius: 4,
|
||||
},
|
||||
selected: {
|
||||
defaultColor: '#f8f8f8',
|
||||
defaultStroke: '#a5ff88',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#3b3b3b',
|
||||
hoverStroke: '#a5ff88',
|
||||
defaultColor: '#f7a989',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#3b3b3b',
|
||||
hoverColor: '#f7a989',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 4,
|
||||
radius: 4,
|
||||
}
|
||||
}
|
||||
],
|
||||
summary: [
|
||||
{
|
||||
defaultColor: '#464646',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#c0c0c0',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 2,
|
||||
radius: 0,
|
||||
},{
|
||||
defaultColor: '#6495ed',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#87cefa',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 2,
|
||||
radius: 0,
|
||||
},{
|
||||
defaultColor: '#e2a7ff',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#e7beff',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 2,
|
||||
radius: 0,
|
||||
},
|
||||
{
|
||||
defaultColor: '#ffa07a',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#f7a989',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 2,
|
||||
radius: 0,
|
||||
}
|
||||
],
|
||||
achievement: [
|
||||
{
|
||||
defaultColor: '#464646',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#c0c0c0',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 4,
|
||||
radius: 0,
|
||||
},{
|
||||
defaultColor: '#6495ed',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#87cefa',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 4,
|
||||
radius: 0,
|
||||
},{
|
||||
defaultColor: '#e2a7ff',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#e7beff',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 4,
|
||||
radius: 0,
|
||||
},
|
||||
{
|
||||
defaultColor: '#ffa07a',
|
||||
defaultStroke: '#f8f8f8',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#f7a989',
|
||||
hoverStroke: '#f8f8f8',
|
||||
hoverLabel: '#3b3b3b',
|
||||
lineWidth: 4,
|
||||
radius: 0,
|
||||
}
|
||||
]
|
||||
},
|
||||
class: {
|
||||
btn_main: {
|
||||
defaultColor: '#393e46',
|
||||
defaultStroke: '#eeeeee',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#ff7878',
|
||||
hoverStroke: '#eeeeee',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverLabel: '#eeeeee',
|
||||
lineWidth: 2,
|
||||
radius: 4,
|
||||
@ -179,15 +271,18 @@ const def = {
|
||||
btn_small: {
|
||||
defaultColor: '#5865f2',
|
||||
defaultStroke: '#eeeeee',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#1160b0',
|
||||
hoverStroke: '#eeeeee',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverLabel: '#eeeeee',
|
||||
lineWidth: 0,
|
||||
radius: 4,
|
||||
},
|
||||
title: {
|
||||
color: '#ffffff',
|
||||
},
|
||||
font_default: {
|
||||
color: '#eeeeee',
|
||||
}
|
||||
},
|
||||
pages: {
|
||||
@ -205,10 +300,85 @@ const def = {
|
||||
vars: {
|
||||
btnDrawCard: 'btn_main',
|
||||
btnNext: 'btn_main',
|
||||
},
|
||||
names: {
|
||||
title: 'title',
|
||||
}
|
||||
},
|
||||
[pages.PROPERTY]: {
|
||||
vars: {
|
||||
btnRandomAllocate: 'btn_main',
|
||||
btnNext: 'btn_main',
|
||||
title: 'title',
|
||||
},
|
||||
names: {
|
||||
font_default: 'font_default',
|
||||
property: {
|
||||
colorFilter: '#eeeeeeff'
|
||||
}
|
||||
}
|
||||
},
|
||||
[pages.TRAJECTORY]: {
|
||||
vars: {
|
||||
btnSummary: 'btn_main',
|
||||
boxTrajectory: {
|
||||
defaultColor: '#393e46',
|
||||
defaultStroke: '#eeeeee',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#393e46',
|
||||
hoverStroke: '#eeeeee',
|
||||
hoverLabel: '#eeeeee',
|
||||
lineWidth: 2,
|
||||
radius: 4,
|
||||
},
|
||||
boxSpeed: {
|
||||
colorFilter: '#ffffffff'
|
||||
}
|
||||
},
|
||||
names: {
|
||||
propertyBox: {
|
||||
defaultColor: '#222831',
|
||||
defaultStroke: '#eeeeee',
|
||||
defaultLabel: '#eeeeee',
|
||||
hoverColor: '#222831',
|
||||
hoverStroke: '#eeeeee',
|
||||
hoverLabel: '#eeeeee',
|
||||
lineWidth: 2,
|
||||
radius: 4,
|
||||
},
|
||||
propertyValue: {
|
||||
defaultColor: '#eeeeee',
|
||||
defaultStroke: '#eeeeee',
|
||||
defaultLabel: '#222831',
|
||||
hoverColor: '#eeeeee',
|
||||
hoverStroke: '#eeeeee',
|
||||
hoverLabel: '#222831',
|
||||
lineWidth: 0,
|
||||
radius: 4,
|
||||
}
|
||||
}
|
||||
},
|
||||
[pages.SUMMARY]: {
|
||||
vars: {
|
||||
btnAgain: 'btn_main',
|
||||
title: 'title',
|
||||
},
|
||||
names: {
|
||||
font_default: 'font_default',
|
||||
}
|
||||
},
|
||||
[pages.ACHIEVEMENT]: {
|
||||
vars: {
|
||||
btnBack: 'btn_small',
|
||||
btnRank: 'btn_small',
|
||||
},
|
||||
names: {
|
||||
font_default: 'font_default',
|
||||
title: 'title',
|
||||
}
|
||||
},
|
||||
[pages.THANKS]: {
|
||||
vars: {
|
||||
btnBack: 'btn_small',
|
||||
},
|
||||
}
|
||||
},
|
||||
popups: {
|
||||
|
@ -7,7 +7,7 @@ export default class UIManager {
|
||||
stage = Laya.stage;
|
||||
}
|
||||
this.#stage = stage;
|
||||
this.#stage.bgColor = this.#configs.bgColor;
|
||||
this.theme = 'default';
|
||||
|
||||
stage.addChild(this.#viewLayer);
|
||||
this.#viewLayer.zOrder = 1;
|
||||
@ -192,7 +192,7 @@ export default class UIManager {
|
||||
if(typeof config == 'string') {
|
||||
config = this.#configs?.class?.[config];
|
||||
}
|
||||
for(const key in config) target[key] = config[key];
|
||||
$_.deepMapSet(target, config);
|
||||
};
|
||||
|
||||
if(config.names)
|
||||
@ -285,6 +285,7 @@ export default class UIManager {
|
||||
set theme(value) {
|
||||
this.#theme = value;
|
||||
this.#stage.bgColor = this.#configs.bgColor;
|
||||
document?.querySelector?.('meta[name="theme-color"]')?.setAttribute?.('content', this.#configs.bgColor);
|
||||
}
|
||||
|
||||
get #pages() {
|
||||
|
Reference in New Issue
Block a user