[]文本align="center", 对齐方式无效,无论设置什么值,都是左对齐
var txtCountDown = new Laya.Text();
txtCountDown.fontSize = 30;
this.rankSprite2.txtCountDown = txtCountDown;
this.rankSprite2.addChild(txtCountDown);
txtCountDown.text = 15;
txtCountDown.pivotX = txtCountDown.width/2;
txtCountDown.align = "right";
txtCountDown.pos(this.rankSprite2.width / 2, 483);
txtCountDown.fontSize = 30;
this.rankSprite2.txtCountDown = txtCountDown;
this.rankSprite2.addChild(txtCountDown);
txtCountDown.text = 15;
txtCountDown.pivotX = txtCountDown.width/2;
txtCountDown.align = "right";
txtCountDown.pos(this.rankSprite2.width / 2, 483);
没有找到相关结果
已邀请:
1 个回复
yung
赞同来自: 小仙男