Commit a50cfa0f authored by asdf's avatar asdf

answer text ui

parent 8cba0562
...@@ -530,7 +530,7 @@ ...@@ -530,7 +530,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 61.73, "width": 198.37,
"height": 47.88 "height": 47.88
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -583,8 +583,8 @@ ...@@ -583,8 +583,8 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_useOriginalSize": true, "_useOriginalSize": true,
"_string": "fox", "_string": "",
"_N$string": "fox", "_N$string": "",
"_fontSize": 38, "_fontSize": 38,
"_lineHeight": 38, "_lineHeight": 38,
"_enableWrapText": true, "_enableWrapText": true,
...@@ -1332,9 +1332,6 @@ ...@@ -1332,9 +1332,6 @@
"audTryagain": { "audTryagain": {
"__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1" "__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1"
}, },
"audDown": {
"__uuid__": "3102823d-0ed3-4985-bc07-2d108298c006"
},
"_id": "" "_id": ""
}, },
{ {
...@@ -2591,9 +2588,6 @@ ...@@ -2591,9 +2588,6 @@
"audTryagain": { "audTryagain": {
"__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1" "__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1"
}, },
"audDown": {
"__uuid__": "3102823d-0ed3-4985-bc07-2d108298c006"
},
"_id": "" "_id": ""
}, },
{ {
...@@ -3850,9 +3844,6 @@ ...@@ -3850,9 +3844,6 @@
"audTryagain": { "audTryagain": {
"__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1" "__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1"
}, },
"audDown": {
"__uuid__": "3102823d-0ed3-4985-bc07-2d108298c006"
},
"_id": "" "_id": ""
}, },
{ {
...@@ -5109,9 +5100,6 @@ ...@@ -5109,9 +5100,6 @@
"audTryagain": { "audTryagain": {
"__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1" "__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1"
}, },
"audDown": {
"__uuid__": "3102823d-0ed3-4985-bc07-2d108298c006"
},
"_id": "" "_id": ""
}, },
{ {
...@@ -6368,9 +6356,6 @@ ...@@ -6368,9 +6356,6 @@
"audTryagain": { "audTryagain": {
"__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1" "__uuid__": "6df9bb96-0611-47b1-9d98-f877972aa7f1"
}, },
"audDown": {
"__uuid__": "3102823d-0ed3-4985-bc07-2d108298c006"
},
"_id": "" "_id": ""
}, },
{ {
......
...@@ -86,6 +86,12 @@ cc.Class({ ...@@ -86,6 +86,12 @@ cc.Class({
this.labelMask.x = this.label.node.x - this.label.node.width / 2; this.labelMask.x = this.label.node.x - this.label.node.width / 2;
this.labelMask.y = this.label.node.y; this.labelMask.y = this.label.node.y;
}) })
this.label._forceUpdateRenderData();
if (this.label.node.width > 198) {
this.label.node.scale = 198 / this.label.node.width;
this.labelMask.scale = this.label.node.scale;
}
}, },
loadDragonBone() { loadDragonBone() {
this.dragonBone.dragonAtlasAsset = null; this.dragonBone.dragonAtlasAsset = null;
......
This diff is collapsed.
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