mirror of
https://github.com/szrpf/DataBoardDemo.git
synced 2025-11-03 12:55:40 +00:00
v2.4
This commit is contained in:
@@ -215,6 +215,7 @@ var DataBoard = /** @class */ (function (_super) {
|
||||
});
|
||||
;
|
||||
DataBoard.prototype.start = function () {
|
||||
var _this = this;
|
||||
if (!CC_EDITOR && !window['DATABOARD']) {
|
||||
this.destroy();
|
||||
return;
|
||||
@@ -258,8 +259,6 @@ var DataBoard = /** @class */ (function (_super) {
|
||||
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();
|
||||
this.updateAnchor();
|
||||
@@ -268,6 +267,10 @@ var DataBoard = /** @class */ (function (_super) {
|
||||
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, function () {
|
||||
_this.customLabelSize = _this._customLabelSize;
|
||||
_this.customComponentName = _this._customComponentName;
|
||||
}, this);
|
||||
};
|
||||
DataBoard.prototype.updateAngle = function () {
|
||||
this.collideBoxNode.angle = -this.node.angle;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"__type__": "cc.AnimationClip",
|
||||
"_name": "cocos",
|
||||
"_name": "AutoRun",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_duration": 2.5,
|
||||
@@ -14,7 +14,7 @@
|
||||
"scale": []
|
||||
},
|
||||
"paths": {
|
||||
"挂上DataBoard的对象": {
|
||||
"挂着DataBoard的节点": {
|
||||
"props": {
|
||||
"position": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user