Commit 004bab91 authored by limingzhe's avatar limingzhe

fix: debug

parent bf1333e4
...@@ -3114,10 +3114,6 @@ cc.Class({ ...@@ -3114,10 +3114,6 @@ cc.Class({
const label = labelNode.addComponent(cc.RichText); const label = labelNode.addComponent(cc.RichText);
label.string = `<outline color=${outlineColor} width=${outlineWidth}><color=${color}><size=${fontSize}>${text}</></color></outline>`
if (isBlod) {
label.string = `<b>${label.string}</b>`
}
labelNode.color = cc.Color.BLACK; labelNode.color = cc.Color.BLACK;
// label.fontSize = fontSize; // label.fontSize = fontSize;
...@@ -3134,6 +3130,13 @@ cc.Class({ ...@@ -3134,6 +3130,13 @@ cc.Class({
if (isFont) { if (isFont) {
label.font = cc.find('Canvas/res/font/MMTB').getComponent(cc.Label).font; label.font = cc.find('Canvas/res/font/MMTB').getComponent(cc.Label).font;
} }
label.string = `<outline color=${outlineColor} width=${outlineWidth}><color=${color}><size=${fontSize}>${text}</></color></outline>`
if (isBlod) {
label.string = `<b>${label.string}</b>`
}
return labelNode; return labelNode;
}, },
......
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