日常优化
|
@ -2224,8 +2224,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 240,
|
||||
"height": 27.72
|
||||
"width": 220,
|
||||
"height": 40
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -2290,7 +2290,7 @@
|
|||
"_N$horizontalAlign": 0,
|
||||
"_N$verticalAlign": 1,
|
||||
"_N$fontFamily": "Arial",
|
||||
"_N$overflow": 1,
|
||||
"_N$overflow": 2,
|
||||
"_N$cacheMode": 1,
|
||||
"_id": "8a0mkATQNJ+535H7jzhXTI"
|
||||
},
|
||||
|
|
|
@ -45,7 +45,7 @@ export default class RankManager extends cc.Component {
|
|||
//实际设置排行数据
|
||||
getRankData(data){
|
||||
if(data){
|
||||
// console.log(data);
|
||||
console.log(data);
|
||||
cc.fx.GameTool.getRankData(data,this,6);
|
||||
this.setPic(this.selfData.pic);
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ export default class RankManager extends cc.Component {
|
|||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
var self = this;
|
||||
cc.assetManager.loadRemote(pic, {ext:'.png'},(err, texture:cc.Texture2D) => {
|
||||
|
|
|
@ -12,9 +12,9 @@ export default class ItemRender extends cc.Component {
|
|||
|
||||
/**数据改变时调用 */
|
||||
public dataChanged(){
|
||||
cc.fx.GameTool.subName(this.data.name,6);
|
||||
let name = cc.fx.GameTool.subName(this.data.name,6);
|
||||
this.node.getChildByName("rankLab").getComponent(cc.Label).string = this.data.rank + "";
|
||||
this.node.getChildByName("nameLab").getComponent(cc.Label).string = this.data.name + "";
|
||||
this.node.getChildByName("nameLab").getComponent(cc.Label).string = name + "";
|
||||
this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.total + "";
|
||||
this.node.getChildByName("rank").getChildByName("one").active = false;
|
||||
this.node.getChildByName("rank").getChildByName("two").active = false;
|
||||
|
@ -54,9 +54,9 @@ export default class ItemRender extends cc.Component {
|
|||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
cc.assetManager.loadRemote(url, {ext:'.png'},(err, texture:cc.Texture2D) => {
|
||||
cc.assetManager.loadRemote(url,{ext:'.png'},(err, texture:cc.Texture2D) => {
|
||||
if(texture){
|
||||
this.node.getChildByName("pic").getChildByName("pic").active= true;
|
||||
var sprite = this.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite);
|
||||
|
|
|
@ -139,16 +139,17 @@ var GameTool = {
|
|||
}
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
}, 100);
|
||||
cc.assetManager.loadRemote(url, {ext:'.jpg'},(err, texture:cc.Texture2D) => {
|
||||
|
||||
cc.assetManager.loadRemote(url , {ext:'.png'},(err, texture:cc.Texture2D) => {
|
||||
if(texture){
|
||||
node.active = true;
|
||||
node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
|
||||
}
|
||||
else{
|
||||
console.log(err,texture)
|
||||
// console.log(err,texture)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
@ -172,8 +173,8 @@ var GameTool = {
|
|||
target.selfNode.getChildByName("rankLab").getComponent(cc.Label).string = "99+";
|
||||
}
|
||||
}
|
||||
cc.fx.GameTool.subName(target.selfData.nickName,nameLength);
|
||||
target.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = target.selfData.nickName;
|
||||
let name = cc.fx.GameTool.subName(target.selfData.nickName,nameLength);
|
||||
target.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = name;
|
||||
target.selfNode.getChildByName("totalLab").getComponent(cc.Label).string = target.selfData.totalSunCount;
|
||||
switch(target.selfNode.getChildByName("rankLab").getComponent(cc.Label).string){
|
||||
case "1":
|
||||
|
|
BIN
build/SunMoves.zip
Normal file
Before Width: | Height: | Size: 82 B After Width: | Height: | Size: 82 B |
|
@ -1 +1 @@
|
|||
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","1fwAIEeM1Nn7i705Pdg5L5","23CIt+PSBBMJopNtpbffXh","29FYIk+N1GYaeWH/q1NxQO","29G9ngwKpNW56EfZdKv0SX","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","48Foz8zQZDfLObHQegvteG","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","59MsqY7oZEy71JeUeyyS/Z","61cyPdEfRN047sDK9rO0W5","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","71VhFCTINJM6/Ky3oX9nBT","77SCm7Ej5ItpMOaz4CSRUG","8eZObX1ehJkKU3GR/hPgya","93XHrCUNdAwJfBzyLGAOJ5","9cCAYtTPFLbqi6SjiBzH59","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","d3OhOXdm5P4JNse7X8GMGe","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","e7CzEDg/FMZpCTGJfBpdSu","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","eezChet5VG27PW9q3qdOpv","f0BIwQ8D5Ml7nTNQbh1YlS","f7ZJEQGfdJraVAIIAn8NFW","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61c+AvZ7lJH4DcNNAnJ//N","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d7kiZgBYNPyIwqRjgGX7l0","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e82yVDavlBc6NpbK/tA6Dr","ecpdLyjvZBwrvm+cedCcQy","f1O5RoDlhGrI6+/w3NObrX"],"scenes":{"db://assets/Scene/GameScene.fire":10,"db://assets/Scene/GuideScene.fire":16,"db://assets/Scene/LoadScene.fire":19,"db://assets/Scene/OverScene.fire":9,"db://assets/Scene/RankScene.fire":6},"redirect":[31,0,32,1,33,1,35,1,36,1,38,1,39,1,42,1,47,1,48,1,52,1,53,1,55,1,57,1,58,1,59,1,60,1,61,1,63,1,64,1,65,1,67,1,68,1,69,1,70,1,72,1,74,1,76,0,77,1],"deps":["internal","resources"],"packs":{"01587c953":[3,4,17,19,0,25,75,27,29],"03e4478d5":[2,5,8,11,12,13,14,15,18,20,21,23,24,26,28,30],"05b7e0d6d":[1,9,45],"05f3c1ca4":[7,16,0,71,22],"0cd1ec7f1":[54,73],"0d7de01d8":[34,37,4,7,40,41,43,44,10,50,56,0,22,27,29],"0e0598680":[1,6,46,49,51,62,66]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["01587c953","f064d","03e4478d5","583f3","05b7e0d6d","b9828","05f3c1ca4","1b0a3","0cd1ec7f1","718bb","0d7de01d8","334d7","0e0598680","68263"],"native":[2,"42c23",3,"93a46",5,"6e8cb",8,"c8c0d",11,"d38b4",12,"6d707",13,"0828f",14,"618c7",15,"c06a9",17,"3ecad",18,"c0bdf",20,"2ac7c",21,"83fcc",23,"d55c2",24,"cdbc9",25,"58a8e",26,"90cf4",28,"40762",30,"27e3b"]}}
|
||||
{"paths":{},"types":[],"uuids":["a2MjXRFdtLlYQ5ouAFv/+R","14K23Xm1ROrrsGMBKG1Ql4","1fwAIEeM1Nn7i705Pdg5L5","23CIt+PSBBMJopNtpbffXh","29FYIk+N1GYaeWH/q1NxQO","29G9ngwKpNW56EfZdKv0SX","2dL3kvpAxJu6GJ7RdqJG5J","37ND3actNCqZoLzr1NBiTF","48Foz8zQZDfLObHQegvteG","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","59MsqY7oZEy71JeUeyyS/Z","61cyPdEfRN047sDK9rO0W5","63m/tYswFOS7sCMuQGQ4kn","651MDCXIFPuZKQK1+nWOzk","71VhFCTINJM6/Ky3oX9nBT","77SCm7Ej5ItpMOaz4CSRUG","8eZObX1ehJkKU3GR/hPgya","93XHrCUNdAwJfBzyLGAOJ5","9cCAYtTPFLbqi6SjiBzH59","adrVhydQhMD7nhiXljhNId","b4P/PCArtIdIH38t6mlw8Y","d3OhOXdm5P4JNse7X8GMGe","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","e7CzEDg/FMZpCTGJfBpdSu","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","eezChet5VG27PW9q3qdOpv","f0BIwQ8D5Ml7nTNQbh1YlS","f7ZJEQGfdJraVAIIAn8NFW","02delMVqdBD70a/HSD99FK","08/X0iIrpGHbKJqlQlA512","0cF7COgzlFRKaDnaVJrOOt","13EQ5PNYdOa4gRDKFsrIFJ","167IfY0HdDyZdtlLDeaDkg","27FeLB8OpGcaDrf9NiEDKz","28Gg0A8X1JHpYnbH9vZIzV","2aJVC/rshLnpvG+lkallqC","2cyTcZvcZP7rjmchhWREEu","3aIyOI2NxPeaHqgvY4W3zi","3fgys9roZKo5OdfZn0T4Fo","432ND8vGNFM4/Pxt+hVLkb","4cuYcoe7tPiIdp6gbSnrvF","4c7tzGCVNKE5yvOmzu4CXt","57X2D8NaxKHZ7D/uwxGBCK","59Sn0ZhhJHf7HX55ZqGeqE","5aBm0rBa9Gxr8lWEiz8nAb","5bsctimnBNw4onIGVsCfsU","5cO7kybDxGj4ipyMYdRYZB","5eUVg3ZQ5FhKCJ4qAl42w5","5f5dyqtRNNxaFmVzYns6FZ","61c+AvZ7lJH4DcNNAnJ//N","6cyjAC9cJDE6x1PK28Td4v","6eoolBkxxPvof0z1pzKU+w","70mY8jP3NKVonyvxI9/f6z","818w6dGPRH+rXb8KDTjDgq","8cv+mgkU9OTIB7sHOwnyZ8","8eo+QfsThNk7a0r8Ilro8q","95AC/gHlpJ64LEYVdSIIPB","95viAf/CZABIBJ7iCjDOU4","99vgruzGRMmJOIRLdPaQYs","9bvaMerUlDyary99mJa6xp","9cBsd3MbFMC56GS/sJnS6r","9e4xLWF9hCBq5CM6vIyvlp","a5+/rf9ZlPEIXTSsUOhw7T","adR/bBScVC/bM24V3TdrfL","adULT7sm1JR6vTV/oW1JIb","bcITWltAtAD4sUjinM7HdJ","c6VxSCRHRB+qS91aK866px","ceNMgtpZhCsKd8anXNKd7b","d1MjdySrJFJ70gUB/k+5cj","d7kiZgBYNPyIwqRjgGX7l0","ddnWn8vDxCOZaOnG9OVNnP","deq5vhWmZCFJ97k3T54cZ0","e82yVDavlBc6NpbK/tA6Dr","ecpdLyjvZBwrvm+cedCcQy","f1O5RoDlhGrI6+/w3NObrX"],"scenes":{"db://assets/Scene/GameScene.fire":10,"db://assets/Scene/GuideScene.fire":16,"db://assets/Scene/LoadScene.fire":19,"db://assets/Scene/OverScene.fire":9,"db://assets/Scene/RankScene.fire":6},"redirect":[31,0,32,1,33,1,35,1,36,1,38,1,39,1,42,1,47,1,48,1,52,1,53,1,55,1,57,1,58,1,59,1,60,1,61,1,63,1,64,1,65,1,67,1,68,1,69,1,70,1,72,1,74,1,76,0,77,1],"deps":["internal","resources"],"packs":{"01587c953":[3,4,17,19,0,25,75,27,29],"03e4478d5":[2,5,8,11,12,13,14,15,18,20,21,23,24,26,28,30],"05b7e0d6d":[1,9,45],"05f3c1ca4":[7,16,0,71,22],"0cd1ec7f1":[54,73],"0d7de01d8":[34,37,4,7,40,41,43,44,10,50,56,0,22,27,29],"0e0598680":[1,6,46,49,51,62,66]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["01587c953","f064d","03e4478d5","583f3","05b7e0d6d","b9828","05f3c1ca4","1b0a3","0cd1ec7f1","718bb","0d7de01d8","334d7","0e0598680","b46ac"],"native":[2,"42c23",3,"93a46",5,"6e8cb",8,"c8c0d",11,"d38b4",12,"6d707",13,"0828f",14,"618c7",15,"c06a9",17,"3ecad",18,"c0bdf",20,"2ac7c",21,"83fcc",23,"d55c2",24,"cdbc9",25,"58a8e",26,"90cf4",28,"40762",30,"27e3b"]}}
|
1
build/SunMoves/assets/main/index.66aa2.js
Normal file
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -136,9 +136,9 @@
|
|||
</div>
|
||||
|
||||
<canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="0"></canvas>
|
||||
<script src="src/settings.138c4.js" charset="utf-8"></script>
|
||||
<script src="src/settings.55fdc.js" charset="utf-8"></script>
|
||||
|
||||
<script src="main.e4e65.js" charset="utf-8"></script>
|
||||
<script src="main.8e45b.js" charset="utf-8"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
|
@ -117,7 +117,7 @@ window.boot = function () {
|
|||
if (window.jsb) {
|
||||
var isRuntime = (typeof loadRuntime === 'function');
|
||||
if (isRuntime) {
|
||||
require('src/settings.138c4.js');
|
||||
require('src/settings.55fdc.js');
|
||||
require('src/cocos2d-runtime.js');
|
||||
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
|
||||
require('src/physics.js');
|
||||
|
@ -125,7 +125,7 @@ if (window.jsb) {
|
|||
require('jsb-adapter/engine/index.js');
|
||||
}
|
||||
else {
|
||||
require('src/settings.138c4.js');
|
||||
require('src/settings.55fdc.js');
|
||||
require('src/cocos2d-jsb.js');
|
||||
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
|
||||
require('src/physics.js');
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
@ -1 +1 @@
|
|||
window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"portrait",jsList:[],bundleVers:{internal:"52d36",resources:"2d635",main:"8c815"}};
|
||||
window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"portrait",jsList:[],bundleVers:{internal:"52d36",resources:"2d635",main:"66aa2"}};
|
|
@ -2225,8 +2225,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 240,
|
||||
"height": 27.72
|
||||
"width": 220,
|
||||
"height": 40
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -2291,7 +2291,7 @@
|
|||
"_N$horizontalAlign": 0,
|
||||
"_N$verticalAlign": 1,
|
||||
"_N$fontFamily": "Arial",
|
||||
"_N$overflow": 1,
|
||||
"_N$overflow": 2,
|
||||
"_N$cacheMode": 1,
|
||||
"_id": "8a0mkATQNJ+535H7jzhXTI"
|
||||
},
|
||||
|
|
|
@ -145,16 +145,16 @@ var GameTool = {
|
|||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
}, 100);
|
||||
cc.assetManager.loadRemote(url, { ext: '.jpg' }, function (err, texture) {
|
||||
cc.assetManager.loadRemote(url, { ext: '.png' }, function (err, texture) {
|
||||
if (texture) {
|
||||
node.active = true;
|
||||
node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
|
||||
}
|
||||
else {
|
||||
console.log(err, texture);
|
||||
// console.log(err,texture)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -178,8 +178,8 @@ var GameTool = {
|
|||
target.selfNode.getChildByName("rankLab").getComponent(cc.Label).string = "99+";
|
||||
}
|
||||
}
|
||||
cc.fx.GameTool.subName(target.selfData.nickName, nameLength);
|
||||
target.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = target.selfData.nickName;
|
||||
var name = cc.fx.GameTool.subName(target.selfData.nickName, nameLength);
|
||||
target.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = name;
|
||||
target.selfNode.getChildByName("totalLab").getComponent(cc.Label).string = target.selfData.totalSunCount;
|
||||
switch (target.selfNode.getChildByName("rankLab").getComponent(cc.Label).string) {
|
||||
case "1":
|
||||
|
|
|
@ -36,9 +36,9 @@ var ItemRender = /** @class */ (function (_super) {
|
|||
}
|
||||
/**数据改变时调用 */
|
||||
ItemRender.prototype.dataChanged = function () {
|
||||
cc.fx.GameTool.subName(this.data.name, 6);
|
||||
var name = cc.fx.GameTool.subName(this.data.name, 6);
|
||||
this.node.getChildByName("rankLab").getComponent(cc.Label).string = this.data.rank + "";
|
||||
this.node.getChildByName("nameLab").getComponent(cc.Label).string = this.data.name + "";
|
||||
this.node.getChildByName("nameLab").getComponent(cc.Label).string = name + "";
|
||||
this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.total + "";
|
||||
this.node.getChildByName("rank").getChildByName("one").active = false;
|
||||
this.node.getChildByName("rank").getChildByName("two").active = false;
|
||||
|
@ -78,7 +78,7 @@ var ItemRender = /** @class */ (function (_super) {
|
|||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
cc.assetManager.loadRemote(url, { ext: '.png' }, function (err, texture) {
|
||||
if (texture) {
|
||||
|
|
|
@ -63,7 +63,7 @@ var RankManager = /** @class */ (function (_super) {
|
|||
//实际设置排行数据
|
||||
RankManager.prototype.getRankData = function (data) {
|
||||
if (data) {
|
||||
// console.log(data);
|
||||
console.log(data);
|
||||
cc.fx.GameTool.getRankData(data, this, 6);
|
||||
this.setPic(this.selfData.pic);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ var RankManager = /** @class */ (function (_super) {
|
|||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
var self = this;
|
||||
cc.assetManager.loadRemote(pic, { ext: '.png' }, function (err, texture) {
|
||||
|
|
|
@ -5,21 +5,21 @@
|
|||
"main": true,
|
||||
"url": "app://editor/index.html",
|
||||
"windowType": "dockable",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1275,
|
||||
"height": 672,
|
||||
"x": -8,
|
||||
"y": -8,
|
||||
"width": 1296,
|
||||
"height": 688,
|
||||
"layout": {
|
||||
"type": "dock-h",
|
||||
"children": [
|
||||
{
|
||||
"width": 205,
|
||||
"height": 556.3333740234375,
|
||||
"width": 207.4375,
|
||||
"height": 571,
|
||||
"type": "dock-v",
|
||||
"children": [
|
||||
{
|
||||
"width": 205,
|
||||
"height": 300.1770935058594,
|
||||
"width": 207.4375,
|
||||
"height": 308.13543701171875,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -27,8 +27,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 205,
|
||||
"height": 253.15625,
|
||||
"width": 207.4375,
|
||||
"height": 259.8645935058594,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -38,8 +38,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 750.9896240234375,
|
||||
"height": 556.3333740234375,
|
||||
"width": 757.9166870117188,
|
||||
"height": 571,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
@ -47,8 +47,8 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 304,
|
||||
"height": 556.3333740234375,
|
||||
"width": 308.63543701171875,
|
||||
"height": 571,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
"children": [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"last-edit": "9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
|
||||
"last-edit": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"recent-items": [
|
||||
"40ba7e70-1826-4aa1-92f3-aa63ae39294b",
|
||||
"32254f37-ac95-4912-a787-b8e0429ba0f1",
|
||||
|
@ -9,8 +9,8 @@
|
|||
"d1323772-4ab2-4527-bd20-501fe4fb9723",
|
||||
"4b9c5a7e-c645-48a4-9aca-5df381ce4ef5",
|
||||
"774829bb-123e-48b6-930e-6b3e02491506",
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"4eaf518b-35ec-4262-928d-4d497c3f2830",
|
||||
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d"
|
||||
"9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
|
||||
"2d2f792f-a40c-49bb-a189-ed176a246e49"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"title": "Sun_moves",
|
||||
"title": "SunMoves",
|
||||
"packageName": "org.cocos2d.demo",
|
||||
"startScene": "9c08062d-4cf1-4b6e-a8ba-4a3881cc7e7d",
|
||||
"excludeScenes": [],
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"last-module-event-record-time": 1719913618697,
|
||||
"last-module-event-record-time": 1722330019346,
|
||||
"group-list": [
|
||||
"default"
|
||||
],
|
||||
|
|
|
@ -2224,8 +2224,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 240,
|
||||
"height": 27.72
|
||||
"width": 220,
|
||||
"height": 40
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -2290,7 +2290,7 @@
|
|||
"_N$horizontalAlign": 0,
|
||||
"_N$verticalAlign": 1,
|
||||
"_N$fontFamily": "Arial",
|
||||
"_N$overflow": 1,
|
||||
"_N$overflow": 2,
|
||||
"_N$cacheMode": 1,
|
||||
"_id": "8a0mkATQNJ+535H7jzhXTI"
|
||||
},
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-07-08T06:51:13.831Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-07-08T06:51:13.768Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-07-08T06:51:13.771Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-07-08T06:51:13.785Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-07-08T06:51:13.784Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-07-08T06:51:13.773Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-07-08T06:51:13.786Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-07-08T06:51:13.794Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/DynamicAtlasManager.js":"2024-07-08T06:51:13.777Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/HttpUtil.js":"2024-07-08T06:51:13.783Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/ItemRender.js":"2024-07-08T06:51:13.789Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Storage/Storage.js":"2024-07-08T06:51:13.766Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Tool/GameTool.js":"2024-07-08T06:51:13.769Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/GameStart/GameAppStart.js":"2024-07-08T06:51:13.779Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Notification/Notification.js":"2024-07-08T06:51:13.774Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Config/GameConfig.js":"2024-07-08T06:51:13.788Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Music/AudioManager.js":"2024-07-08T06:51:13.776Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Share/share.js":"2024-07-08T06:51:13.780Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/List.js":"2024-07-08T06:51:13.790Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/crypto-js.min.js":"2024-07-08T06:51:13.793Z"}}
|
||||
{"version":"1.0.8","stats":{"C:/Work/Project/Sun_moves/temp/quick-scripts/src/__qc_index__.js":"2024-07-30T09:44:51.035Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GuideManager.js":"2024-07-30T09:44:50.990Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js":"2024-07-30T09:44:51.002Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameOver.js":"2024-07-30T09:44:51.003Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/RankManager.js":"2024-07-30T09:44:51.010Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Sun.js":"2024-07-30T09:44:50.993Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/Load.js":"2024-07-30T09:44:50.992Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/DynamicAtlasManager.js":"2024-07-30T09:44:50.997Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/GameManager.js":"2024-07-30T09:44:51.004Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Music/AudioManager.js":"2024-07-30T09:44:50.996Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/ItemRender.js":"2024-07-30T09:44:51.007Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Notification/Notification.js":"2024-07-30T09:44:50.995Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Storage/Storage.js":"2024-07-30T09:44:50.989Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Tool/GameTool.js":"2024-07-30T09:44:50.991Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Share/share.js":"2024-07-30T09:44:50.999Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/crypto-js.min.js":"2024-07-30T09:44:51.009Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/GameStart/GameAppStart.js":"2024-07-30T09:44:50.998Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Config/GameConfig.js":"2024-07-30T09:44:51.006Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/RankList/List.js":"2024-07-30T09:44:51.008Z","C:/Work/Project/Sun_moves/temp/quick-scripts/src/assets/Script/module/Crypto/HttpUtil.js":"2024-07-30T09:44:51.001Z"}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
(function () {
|
||||
var scripts = [{"deps":{"./assets/Script/GameOver":3,"./assets/Script/GuideManager":1,"./assets/Script/Load":2,"./assets/Script/RankManager":7,"./assets/Script/Sun":5,"./assets/Script/DynamicAtlasManager":8,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":4,"./assets/Script/GameManager":6,"./assets/Script/module/Crypto/crypto-js.min":19,"./assets/Script/module/Crypto/HttpUtil":9,"./assets/Script/module/GameStart/GameAppStart":13,"./assets/Script/module/Music/AudioManager":16,"./assets/Script/module/Notification/Notification":14,"./assets/Script/module/RankList/List":18,"./assets/Script/module/RankList/ItemRender":10,"./assets/Script/module/Share/share":17,"./assets/Script/module/Storage/Storage":11,"./assets/Script/module/Tool/GameTool":12,"./assets/Script/module/Config/GameConfig":15},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{"./module/RankList/List":18},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/DynamicAtlasManager.js"},{"deps":{"./crypto-js.min.js":19},"path":"preview-scripts/assets/Script/module/Crypto/HttpUtil.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/RankList/ItemRender.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Storage/Storage.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Tool/GameTool.js"},{"deps":{"../Config/GameConfig":15,"../Crypto/HttpUtil":9,"../Music/AudioManager":16,"../Notification/Notification":14,"../Storage/Storage":11,"../Tool/GameTool":12},"path":"preview-scripts/assets/Script/module/GameStart/GameAppStart.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Notification/Notification.js"},{"deps":{"../Share/share":17},"path":"preview-scripts/assets/Script/module/Config/GameConfig.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Music/AudioManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Share/share.js"},{"deps":{"./ItemRender":10},"path":"preview-scripts/assets/Script/module/RankList/List.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Crypto/crypto-js.min.js"}];
|
||||
var scripts = [{"deps":{"./assets/Script/GuideManager":1,"./assets/migration/use_v2.1-2.2.1_cc.Toggle_event":2,"./assets/Script/GameOver":3,"./assets/Script/RankManager":4,"./assets/Script/Sun":5,"./assets/Script/Load":6,"./assets/Script/DynamicAtlasManager":7,"./assets/Script/GameManager":8,"./assets/Script/module/Music/AudioManager":9,"./assets/Script/module/RankList/ItemRender":10,"./assets/Script/module/Notification/Notification":11,"./assets/Script/module/Storage/Storage":12,"./assets/Script/module/Tool/GameTool":13,"./assets/Script/module/Share/share":14,"./assets/Script/module/Crypto/crypto-js.min":15,"./assets/Script/module/GameStart/GameAppStart":16,"./assets/Script/module/Config/GameConfig":17,"./assets/Script/module/RankList/List":18,"./assets/Script/module/Crypto/HttpUtil":19},"path":"preview-scripts/__qc_index__.js"},{"deps":{},"path":"preview-scripts/assets/Script/GuideManager.js"},{"deps":{},"path":"preview-scripts/assets/migration/use_v2.1-2.2.1_cc.Toggle_event.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameOver.js"},{"deps":{"./module/RankList/List":18},"path":"preview-scripts/assets/Script/RankManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/Sun.js"},{"deps":{},"path":"preview-scripts/assets/Script/Load.js"},{"deps":{},"path":"preview-scripts/assets/Script/DynamicAtlasManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/GameManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Music/AudioManager.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/RankList/ItemRender.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Notification/Notification.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Storage/Storage.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Tool/GameTool.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Share/share.js"},{"deps":{},"path":"preview-scripts/assets/Script/module/Crypto/crypto-js.min.js"},{"deps":{"../Config/GameConfig":17,"../Crypto/HttpUtil":19,"../Music/AudioManager":9,"../Notification/Notification":11,"../Storage/Storage":12,"../Tool/GameTool":13},"path":"preview-scripts/assets/Script/module/GameStart/GameAppStart.js"},{"deps":{"../Share/share":14},"path":"preview-scripts/assets/Script/module/Config/GameConfig.js"},{"deps":{"./ItemRender":10},"path":"preview-scripts/assets/Script/module/RankList/List.js"},{"deps":{"./crypto-js.min.js":15},"path":"preview-scripts/assets/Script/module/Crypto/HttpUtil.js"}];
|
||||
var entries = ["preview-scripts/__qc_index__.js"];
|
||||
var bundleScript = 'preview-scripts/__qc_bundle__.js';
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ var RankManager = /** @class */ (function (_super) {
|
|||
//实际设置排行数据
|
||||
RankManager.prototype.getRankData = function (data) {
|
||||
if (data) {
|
||||
// console.log(data);
|
||||
console.log(data);
|
||||
cc.fx.GameTool.getRankData(data, this, 6);
|
||||
this.setPic(this.selfData.pic);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ var RankManager = /** @class */ (function (_super) {
|
|||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
var self = this;
|
||||
cc.assetManager.loadRemote(pic, { ext: '.png' }, function (err, texture) {
|
||||
|
|
|
@ -36,9 +36,9 @@ var ItemRender = /** @class */ (function (_super) {
|
|||
}
|
||||
/**数据改变时调用 */
|
||||
ItemRender.prototype.dataChanged = function () {
|
||||
cc.fx.GameTool.subName(this.data.name, 6);
|
||||
var name = cc.fx.GameTool.subName(this.data.name, 6);
|
||||
this.node.getChildByName("rankLab").getComponent(cc.Label).string = this.data.rank + "";
|
||||
this.node.getChildByName("nameLab").getComponent(cc.Label).string = this.data.name + "";
|
||||
this.node.getChildByName("nameLab").getComponent(cc.Label).string = name + "";
|
||||
this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.total + "";
|
||||
this.node.getChildByName("rank").getChildByName("one").active = false;
|
||||
this.node.getChildByName("rank").getChildByName("two").active = false;
|
||||
|
@ -78,7 +78,7 @@ var ItemRender = /** @class */ (function (_super) {
|
|||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
cc.assetManager.loadRemote(url, { ext: '.png' }, function (err, texture) {
|
||||
if (texture) {
|
||||
|
|
|
@ -145,16 +145,16 @@ var GameTool = {
|
|||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.error('Error fetching X-Info:', error);
|
||||
// console.error('Error fetching X-Info:', error);
|
||||
});
|
||||
}, 100);
|
||||
cc.assetManager.loadRemote(url, { ext: '.jpg' }, function (err, texture) {
|
||||
cc.assetManager.loadRemote(url, { ext: '.png' }, function (err, texture) {
|
||||
if (texture) {
|
||||
node.active = true;
|
||||
node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
|
||||
}
|
||||
else {
|
||||
console.log(err, texture);
|
||||
// console.log(err,texture)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -178,8 +178,8 @@ var GameTool = {
|
|||
target.selfNode.getChildByName("rankLab").getComponent(cc.Label).string = "99+";
|
||||
}
|
||||
}
|
||||
cc.fx.GameTool.subName(target.selfData.nickName, nameLength);
|
||||
target.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = target.selfData.nickName;
|
||||
var name = cc.fx.GameTool.subName(target.selfData.nickName, nameLength);
|
||||
target.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = name;
|
||||
target.selfNode.getChildByName("totalLab").getComponent(cc.Label).string = target.selfData.totalSunCount;
|
||||
switch (target.selfNode.getChildByName("rankLab").getComponent(cc.Label).string) {
|
||||
case "1":
|
||||
|
|