-
Notifications
You must be signed in to change notification settings - Fork 1
Label
wearebug edited this page Dec 15, 2014
·
1 revision
功能类似android中的TextView,属性有Actor所有的属性
new Label(Page page,boolean isLoadAsyn)
对于Label进行初始化操作,isLoadAsyn,功能是同步加载纹理或者异步加载
setMarquee(boolean marquee)
设置走马灯效果,不过如果要是需要走马灯,需要套在一个CullGroup中
setTextSize(int size)
设置Label的字号
setTextColor(int color)
设置字体颜色,类似:0xffffffff
setMaxLine(int line)
设置label是否支持多行显示
free()
回收相应的文字纹理
setAlignment (int alignment)
设置文字在label中的位置