2017-03-08 65 views

回答

1

Dialog怎样绘制使用bitmapfont一款具有一个公共方法text,让你的标签添加到对话框。使用您的BitmapFont你可以创建一个LabelStyle对象,然后Label并提供它作为参数

LabelStyle labelStyle = new LabelStyle(); 
labelStyle.font = yourBitmapFont;  

Label label = new Label("Hello world!", labelStyle); 
dialog.text(label); 
// You can also use: dialog.text("Hello world!", labelStyle) 
相关问题