libgdx复选框增加大小

时间:2016-10-07 05:24:40

标签: java android libgdx

我无法获得我的CheckBox图像(因此实际的框而不是文本)增加大小,我尝试放大单元格和图像单元格,什么都没有!有任何想法吗?

public void show() {

    Gdx.input.setInputProcessor(stage);

    background = assetManager.get("data/backgrounds/mainMenu.png", Texture.class);
    skin = assetManager.get("data/ui/settings.json", Skin.class);


    table.setBounds(0,0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
    table.setFillParent(true);


    buttons();


    table.add(settingsLabel);
    table.getCell(settingsLabel).spaceBottom(200);
    table.row();
    table.add(musicCheck);
    table.getCell(musicCheck).spaceBottom(100);
    musicCheck.getCells().get(0).size(100,100);
    musicCheck.getImageCell().size(100, 100);
    table.row();
    table.add(returnButton).width(100).height(100);
    table.getCell(returnButton).spaceBottom(100);
    table.row();
    stage.addActor(table);

    table.debug();
    musicPlayer.playMusic();
}

public void buttons()
{
    settingsLabel = new Label("Settings", skin);

    musicCheck = new CheckBox("Music", skin, "music");

    returnButton = new Button(skin, "return");

}

0 个答案:

没有答案