/**
* Erzeugt den LadeButtonText.
*/
private void createButton() {
Drawable drawable = new TextureRegionDrawable((new TextureRegion(new Texture(
Gdx.files.internal("splashscreen/buttonBackground.png")))));
FreeTypeFontGenerator gen = new FreeTypeFontGenerator(
Gdx.files.internal("fonts/textfont/Grundschrift-Bold.ttf"));
FreeTypeFontParameter frontPara = new FreeTypeFontParameter();
frontPara.size = 40;
BitmapFont b = gen.generateFont(frontPara);
gen.dispose();
ImageTextButtonStyle imageButtonStyle = new ImageTextButton.ImageTextButtonStyle();
imageButtonStyle.down = drawable;
imageButtonStyle.up = drawable;
imageButtonStyle.font = b;
imageButtonStyle.fontColor = Color.valueOf("877E6A");
textContent = new ImageTextButton("Lade... : ", imageButtonStyle);
}
SplashScreen.java 文件源码
java
阅读 58
收藏 0
点赞 0
评论 0
项目:HAW-SE2-projecthorse
作者:
评论列表
文章目录