View unanswered posts | View active topics It is currently 2018-06-23 17:51



Reply to topic  [ 2 posts ] 
 请问label换行文字行间距除了label..linespacing还能通过其他方式实现吗? 
Author Message
新手上路

Joined: 2018-06-06 16:49
Posts: 7
Post 请问label换行文字行间距除了label..linespacing还能通过其他方式实现吗?
请问label换行文字行间距除了label..linespacing还能通过其他方式实现吗?


2018-06-14 9:30
Profile
TWaver开发组
User avatar

Joined: 2018-04-16 13:27
Posts: 14
Post Re: 请问label换行文字行间距除了label..linespacing还能通过其他方式实现吗?
换行文字,可以尝试设置两个name,通过设置label和label2的偏移量,从而达到这样的效果

node.setStyle('label.yoffset', 10);
node.setStyle('label2.yoffset',-10);


2018-06-14 14:01
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron