mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-09-25 06:25:35 +00:00
优化 Demo 与 Docs 效果
This commit is contained in:
@@ -269,7 +269,7 @@
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 500
|
||||
"height": 460
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -774,7 +774,7 @@
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-400,
|
||||
-320,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -941,7 +941,7 @@
|
||||
"_N$handle": {
|
||||
"__id__": 16
|
||||
},
|
||||
"_N$progress": 0,
|
||||
"_N$progress": 0.1,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
@@ -1536,8 +1536,8 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 720,
|
||||
"height": 350
|
||||
"width": 500,
|
||||
"height": 280
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -1548,8 +1548,8 @@
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
-360,
|
||||
-500,
|
||||
-250,
|
||||
-460,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2148,7 +2148,7 @@
|
||||
"asset": {
|
||||
"__uuid__": "e311a003-c0a1-4ff9-9983-2154de145eb7"
|
||||
},
|
||||
"fileId": "ecgFkFvJlGurWWPNWVEdVg",
|
||||
"fileId": "037Xo+hoxFbqEfMYOGMB9p",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
@@ -2258,7 +2258,7 @@
|
||||
"asset": {
|
||||
"__uuid__": "e311a003-c0a1-4ff9-9983-2154de145eb7"
|
||||
},
|
||||
"fileId": "78+ISOKDVKo6JuY9GLTAmm",
|
||||
"fileId": "67/0VjhAhKZqCjSyssYje9",
|
||||
"sync": false
|
||||
},
|
||||
{
|
||||
@@ -2450,7 +2450,7 @@
|
||||
"_layoutSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 960,
|
||||
"height": 500
|
||||
"height": 460
|
||||
},
|
||||
"_resize": 1,
|
||||
"_N$layoutType": 2,
|
||||
@@ -2465,7 +2465,7 @@
|
||||
"_N$paddingTop": 0,
|
||||
"_N$paddingBottom": 0,
|
||||
"_N$spacingX": 0,
|
||||
"_N$spacingY": 0,
|
||||
"_N$spacingY": 30,
|
||||
"_N$verticalDirection": 1,
|
||||
"_N$horizontalDirection": 0,
|
||||
"_N$affectedByScale": false,
|
||||
|
@@ -37,6 +37,9 @@ export default class Home extends cc.Component {
|
||||
this.multiRenderUpdate();
|
||||
});
|
||||
|
||||
this.objectNumSlider.progress = 0.02;
|
||||
const offset = (this.nums[1] - this.nums[0]) * this.objectNumSlider.progress;
|
||||
this.num = this.nums[0] + Math.ceil(offset);
|
||||
this.numUpdate();
|
||||
this.multiRenderUpdate();
|
||||
}
|
||||
@@ -86,7 +89,7 @@ export default class Home extends cc.Component {
|
||||
this.objects.addChild(node);
|
||||
|
||||
node.position = cc.v3(Math.floor(Math.random() * this.objects.width), Math.floor(Math.random() * this.objects.height));
|
||||
cc.tween(node).by(1, { angle: 360 }).repeatForever().start();
|
||||
cc.tween(node).by(3, { angle: 360 }).repeatForever().start();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user