Commit 743f571c authored by limingzhe's avatar limingzhe

fix: 按钮字过长处理

parent 26f1aabd
...@@ -1076,6 +1076,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1076,6 +1076,9 @@ export class PlayComponent implements OnInit, OnDestroy {
// label.x = this.canvasWidth / 2; // label.x = this.canvasWidth / 2;
label.y = -2; label.y = -2;
label.fontColor = '#f1e4c2'; label.fontColor = '#f1e4c2';
label.setMaxSize(btn.width * 0.95);
btn.addChild(label); btn.addChild(label);
btn.text = text; btn.text = text;
return label; return label;
......
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