mirror of
https://github.com/szrpf/DataBoardDemo.git
synced 2025-11-03 04:45:43 +00:00
v2.4
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"__type__": "cc.AnimationClip",
|
||||
"_name": "cocos",
|
||||
"_name": "Test",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_duration": 2.5,
|
||||
@@ -14,7 +14,7 @@
|
||||
"scale": []
|
||||
},
|
||||
"paths": {
|
||||
"挂上DataBoard的对象": {
|
||||
"挂着DataBoard的节点": {
|
||||
"props": {
|
||||
"position": [
|
||||
{
|
||||
|
Before Width: | Height: | Size: 82 B After Width: | Height: | Size: 82 B |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "29f52784-2fca-467b-92e7-8fd9ef8c57b7",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"ver": "1.3.2",
|
||||
"uuid": "2d2f792f-a40c-49bb-a189-ed176a246e49",
|
||||
"importer": "scene",
|
||||
"asyncLoadAssets": false,
|
||||
"autoReleaseAssets": false,
|
||||
"subMetas": {}
|
||||
}
|
||||
@@ -198,8 +198,6 @@ export default class DataBoard extends cc.Component {
|
||||
this.customLabelNode.x = this.customLabelOffset.x;
|
||||
this.customLabelNode.y = this.customLabelOffset.y;
|
||||
this.customLabelNode.color = this.customLabelColor;
|
||||
this.customLabelSize = this._customLabelSize;
|
||||
this.customComponentName = this._customComponentName;
|
||||
|
||||
this.updateAngle();
|
||||
this.updateScale();
|
||||
@@ -209,6 +207,10 @@ export default class DataBoard extends cc.Component {
|
||||
this.node.on(cc.Node.EventType.SCALE_CHANGED, this.updateScale, this);
|
||||
this.node.on(cc.Node.EventType.ANCHOR_CHANGED, this.updateAnchor, this);
|
||||
this.node.on(cc.Node.EventType.SIZE_CHANGED, this.updateSize, this);
|
||||
cc.director.once(cc.Director.EVENT_AFTER_DRAW, () => {
|
||||
this.customLabelSize = this._customLabelSize;
|
||||
this.customComponentName = this._customComponentName;
|
||||
}, this);
|
||||
}
|
||||
|
||||
private updateAngle() {
|
||||
@@ -262,7 +264,7 @@ export default class DataBoard extends cc.Component {
|
||||
tmp = '';
|
||||
for (let i = 0; i < 4; ++i) {
|
||||
for (let j = 0; j < 4; ++j) {
|
||||
let m = matrix[(j<<2) + i];
|
||||
let m = matrix[(j << 2) + i];
|
||||
tmp += (m < 0 ? '\t\t' : '\t\t\t') + m.toFixed(this.customLabelDigit);
|
||||
}
|
||||
i !== 3 && (tmp += '\n');
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "7b81d4e8-ec84-4716-968d-500ac1d78a54",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 2,
|
||||
"height": 2,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"singleColor": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "410fb916-8721-4663-bab8-34397391ace7",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "a8027877-d8d6-4645-97a0-52d4a0123dba",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 2,
|
||||
"height": 2,
|
||||
"rawWidth": 2,
|
||||
"rawHeight": 2,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "70364224-9941-46cb-9c14-263fa45363b9",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 170,
|
||||
"height": 153,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"zhizhuxia": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "6e0882b8-ac14-4ee7-b636-cb22032c50b1",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "70364224-9941-46cb-9c14-263fa45363b9",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 170,
|
||||
"height": 153,
|
||||
"rawWidth": 170,
|
||||
"rawHeight": 153,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"ver": "2.1.2",
|
||||
"uuid": "e68a8476-8374-4400-ae48-d3eae5df38ea",
|
||||
"importer": "animation-clip",
|
||||
"subMetas": {}
|
||||
}
|
||||
Reference in New Issue
Block a user