Commit 59a6c521 authored by 章红平's avatar 章红平

提交

parent a2a9bcde
...@@ -59,6 +59,7 @@ export default class card extends cc.Component { ...@@ -59,6 +59,7 @@ export default class card extends cc.Component {
playDragon(cb){ playDragon(cb){
return new Promise((resolve,reject)=>{ return new Promise((resolve,reject)=>{
this.dragon.node.active=true; this.dragon.node.active=true;
this.dragon.node.scaleX=this.node.scaleX;
this.dragon.playAnimation("newAnimation", 1) this.dragon.playAnimation("newAnimation", 1)
this.dragon.on(dragonBones.EventObject.COMPLETE,()=>{ this.dragon.on(dragonBones.EventObject.COMPLETE,()=>{
if(cb){ if(cb){
...@@ -98,7 +99,7 @@ export default class card extends cc.Component { ...@@ -98,7 +99,7 @@ export default class card extends cc.Component {
.start(); .start();
}else{ }else{
cc.tween(this.node) cc.tween(this.node)
.to(0.25,{scaleX:0}) .to(0.25,{scaleX:0.3})
.call(()=>{ .call(()=>{
this.iconN.scaleX=-this.iconN.scaleX this.iconN.scaleX=-this.iconN.scaleX
this.wordLabel.node.scaleX=1 this.wordLabel.node.scaleX=1
......
...@@ -916,7 +916,7 @@ ...@@ -916,7 +916,7 @@
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "New Label", "_name": "New Label",
"_objFlags": 0, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 16 "__id__": 16
}, },
...@@ -1531,7 +1531,7 @@ ...@@ -1531,7 +1531,7 @@
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "card", "_name": "card",
"_objFlags": 0, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 29 "__id__": 29
}, },
...@@ -3870,9 +3870,9 @@ ...@@ -3870,9 +3870,9 @@
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 246,
"g": 255, "g": 199,
"b": 255, "b": 166,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
...@@ -5349,7 +5349,7 @@ ...@@ -5349,7 +5349,7 @@
"__id__": 2 "__id__": 2
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 125 "__id__": 125
...@@ -5366,7 +5366,7 @@ ...@@ -5366,7 +5366,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 97.87, "width": 0,
"height": 50.4 "height": 50.4
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -5418,8 +5418,8 @@ ...@@ -5418,8 +5418,8 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "Label", "_string": "",
"_N$string": "Label", "_N$string": "",
"_fontSize": 40, "_fontSize": 40,
"_lineHeight": 40, "_lineHeight": 40,
"_enableWrapText": true, "_enableWrapText": true,
......
This diff is collapsed.
...@@ -118,6 +118,7 @@ export class MyCocosSceneComponent extends cc.Component { ...@@ -118,6 +118,7 @@ export class MyCocosSceneComponent extends cc.Component {
const node = cc.find('Canvas/middleLayer'); const node = cc.find('Canvas/middleLayer');
if (node) { if (node) {
node.getComponent(cc.Label).string=str; node.getComponent(cc.Label).string=str;
console.log(str);
} else { } else {
console.log(str); console.log(str);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment