Commit a50cfa0f authored by asdf's avatar asdf

answer text ui

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