优化 Demo 与 Docs 效果

This commit is contained in:
SmallMain
2022-06-21 20:44:56 +08:00
parent 6e7dbcb41a
commit 830116c953
135 changed files with 31103 additions and 30505 deletions

View File

@@ -1,100 +0,0 @@
{
"paths": {},
"uuids": [
"catK9m3HRBtYgmebOjC6ma",
"ecpdLyjvZBwrvm+cedCcQy",
"a2MjXRFdtLlYQ5ouAFv/+R",
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"e3EaADwKFP+ZmDIVTeFF63",
"02delMVqdBD70a/HSD99FK",
"312JYturtOx74Zjp9UpOqZ",
"e7q6FL+VZEgLJUjVeDLic/",
"29FYIk+N1GYaeWH/q1NxQO",
"68J8oyAQdFUrqy37MXmbtE",
"90AErWL21A4ZPvtxQ3XG8G",
"34Wm35ZlJBApgKytyVFWhX",
"7a/QZLET9IDreTiBfRn2PD",
"93dM6KrkZCf5dgNpQwf7T6",
"d608qFRoFHwbXd0Dap056i",
"61cyPdEfRN047sDK9rO0W5",
"56fc2Ai/RFNYpaMT8crweK",
"71VhFCTINJM6/Ky3oX9nBT",
"02kcE0s9pAmLe145ftvpR/",
"d2kHe6FidKcpV5e1aiNTQM",
"73oJA92A5OPKpn+ZlUPAj1",
"a97PGbCjtNjr/hYUBJUJ3p",
"80ThG1v09KeKxKhEPnFmvh"
],
"scenes": {
"db://assets/main.fire": "catK9m3HRBtYgmebOjC6ma"
},
"redirect": [
"ecpdLyjvZBwrvm+cedCcQy",
0,
"02delMVqdBD70a/HSD99FK",
0,
"7a/QZLET9IDreTiBfRn2PD",
0
],
"deps": [
"internal"
],
"packs": {
"0689a141d": [
"02kcE0s9pAmLe145ftvpR/",
"29FYIk+N1GYaeWH/q1NxQO",
"312JYturtOx74Zjp9UpOqZ",
"34Wm35ZlJBApgKytyVFWhX",
"56fc2Ai/RFNYpaMT8crweK",
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"61cyPdEfRN047sDK9rO0W5",
"68J8oyAQdFUrqy37MXmbtE",
"71VhFCTINJM6/Ky3oX9nBT",
"73oJA92A5OPKpn+ZlUPAj1",
"80ThG1v09KeKxKhEPnFmvh",
"90AErWL21A4ZPvtxQ3XG8G",
"93dM6KrkZCf5dgNpQwf7T6",
"a2MjXRFdtLlYQ5ouAFv/+R",
"a97PGbCjtNjr/hYUBJUJ3p",
"catK9m3HRBtYgmebOjC6ma",
"d2kHe6FidKcpV5e1aiNTQM",
"d608qFRoFHwbXd0Dap056i",
"e3EaADwKFP+ZmDIVTeFF63",
"e7q6FL+VZEgLJUjVeDLic/"
]
},
"name": "main",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"0689a141d",
"2ef19"
],
"native": [
"02kcE0s9pAmLe145ftvpR/",
"b7a3e",
"56fc2Ai/RFNYpaMT8crweK",
"5f1d9",
"61cyPdEfRN047sDK9rO0W5",
"6d707",
"71VhFCTINJM6/Ky3oX9nBT",
"c06a9",
"73oJA92A5OPKpn+ZlUPAj1",
"7661e",
"80ThG1v09KeKxKhEPnFmvh",
"fd38c",
"a97PGbCjtNjr/hYUBJUJ3p",
"0f278",
"d2kHe6FidKcpV5e1aiNTQM",
"65417",
"d608qFRoFHwbXd0Dap056i",
"d55c2"
]
}
}

View File

@@ -0,0 +1,53 @@
{
"paths": {},
"uuids": [
"catK9m3HRBtYgmebOjC6ma",
"ecpdLyjvZBwrvm+cedCcQy",
"a2MjXRFdtLlYQ5ouAFv/+R",
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"02delMVqdBD70a/HSD99FK",
"d608qFRoFHwbXd0Dap056i",
"61cyPdEfRN047sDK9rO0W5"
],
"scenes": {
"db://assets/main.fire": "catK9m3HRBtYgmebOjC6ma"
},
"redirect": [
"ecpdLyjvZBwrvm+cedCcQy",
0,
"02delMVqdBD70a/HSD99FK",
0
],
"deps": [
"internal"
],
"packs": {
"0b206e9e9": [
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"61cyPdEfRN047sDK9rO0W5",
"a2MjXRFdtLlYQ5ouAFv/+R",
"catK9m3HRBtYgmebOjC6ma",
"d608qFRoFHwbXd0Dap056i"
]
},
"name": "main",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"0b206e9e9",
"4db5f"
],
"native": [
"61cyPdEfRN047sDK9rO0W5",
"6d707",
"d608qFRoFHwbXd0Dap056i",
"d55c2"
]
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -130,21 +130,14 @@ window.__require = function e(t, n, r) {
path: "skin/spine-skin"
} ] ]);
this.initBtns();
this.switchPage(this.map.get(this.home));
};
LeftArea.prototype.initBtns = function() {
var e_1, _a;
var _this = this;
var _loop_1 = function(node, route) {
node.on("toggle", function(toggle) {
if (toggle.isChecked) {
var cur_1 = ++_this.tick;
_this.mainArea.destroyAllChildren();
route && cc.assetManager.loadBundle(route.bundle, function(err, bundle) {
err || bundle.load(route.path, cc.Prefab, function(err, prefab) {
err || cur_1 !== _this.tick || _this.mainArea.addChild(cc.instantiate(prefab));
});
});
}
toggle.isChecked && _this.switchPage(route);
});
};
try {
@@ -164,6 +157,18 @@ window.__require = function e(t, n, r) {
}
}
};
LeftArea.prototype.switchPage = function(route) {
var _this = this;
var cur = ++this.tick;
this.mainArea.destroyAllChildren();
route && cc.assetManager.loadBundle("common", function() {
cc.assetManager.loadBundle(route.bundle, function(err, bundle) {
err || bundle.load(route.path, cc.Prefab, function(err, prefab) {
err || cur !== _this.tick || _this.mainArea.addChild(cc.instantiate(prefab));
});
});
});
};
__decorate([ property(cc.Node) ], LeftArea.prototype, "home", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "multiMaterial", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "multiBatcher", void 0);

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 B

After

Width:  |  Height:  |  Size: 1.0 KiB