本文整理匯總了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.bottom方法的典型用法代碼示例。如果您正苦於以下問題:Java Table.bottom方法的具體用法?Java Table.bottom怎麽用?Java Table.bottom使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.badlogic.gdx.scenes.scene2d.ui.Table
的用法示例。
在下文中一共展示了Table.bottom方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addButtons
import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void addButtons() {
buttonTable = new Table();
buttonTable.bottom();
buttonTable.setFillParent(true);
singlePlayer = new TextButton("\n Single Player \n", game.getSkin());
multiPlayer = new TextButton("\n Multi Player \n", game.getSkin());
achievements = new TextButton("\n Achievements \n", game.getSkin());
sign = new TextButton(game.getPlayServices().isSignedIn() ? " Sign Out " : " Sign In ", game.getSkin());
sign.setColor(game.SECONDARY_COLOR);
buttonTable.add(singlePlayer).center().padBottom(40);
buttonTable.row();
buttonTable.add(multiPlayer).center().padBottom(40);
buttonTable.row();
buttonTable.add(achievements).center().padBottom(40);
buttonTable.row();
buttonTable.add(sign).center().padBottom(40);
stage.addActor(buttonTable);
}
示例2: addOptionsButtons
import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void addOptionsButtons() {
buttonTable = new Table();
buttonTable.bottom();
buttonTable.setFillParent(true);
localGameButton = new TextButton("\n Local \n", game.getSkin());
onlineGameButton = new TextButton("\n Online \n", game.getSkin());
checkGamesButton = new TextButton("\n Check Games \n", game.getSkin());
backButton = new TextButton("Back", game.getSkin());
buttonTable.add(localGameButton).center().padBottom(40);
buttonTable.row();
buttonTable.add(onlineGameButton).center().padBottom(40);
buttonTable.row();
buttonTable.add(checkGamesButton).center().padBottom(40);
buttonTable.row();
buttonTable.add(backButton).center().padBottom(40);
backButton.setColor(Reversi.SECONDARY_COLOR);
stage.addActor(buttonTable);
}
示例3: addPieceChoice
import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void addPieceChoice(){
buttonTable = new Table();
buttonTable.bottom();
buttonTable.setFillParent(true);
pieceChoiceGroup = new ButtonGroup<CheckBox>();
whiteCheckBox = new CheckBox(" White", game.getSkin());
blackCheckBox = new CheckBox(" Black", game.getSkin());
pieceChoiceGroup.add(blackCheckBox);
pieceChoiceGroup.add(whiteCheckBox);
pieceChoiceGroup.setMaxCheckCount(1);
pieceChoiceGroup.setMinCheckCount(1);
pieceChoiceGroup.setUncheckLast(true);
pieceChoiceGroup.setChecked("Black");
buttonTable.add(whiteCheckBox).center().padBottom(15).row();
buttonTable.add(blackCheckBox).center().padBottom(40).row();
}
示例4: createMenuButtons
import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
/**
* Function responsible for creating and setting the Menu Buttons.
* It also sets the buttons Layout in the given table.
*
* @param table Table where the Menu buttons will be organized
*/
protected void createMenuButtons(Table table) {
table.bottom();
addPlayButton(table);
addOptionsButton(table);
addNetworkingButton(table);
addExitButton(table);
table.padBottom(BOTTOM_EDGE);
}
示例5: createMenuButtons
import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
/**
* Function responsible for creating and setting the Networking Buttons.
* It also sets the buttons Layout in the given table.
*
* @param table Table where the Menu buttons will be organized
*/
@Override
protected void createMenuButtons(Table table) {
table.bottom();
createSignInBtn(table);
createAchievementButton(table);
createLeaderboardButton(table);
TextButton back = addBackBtn(false);
table.add(back).size(BUTTON_WIDTH, DEFAULT_BUTTON_SIZE).pad(BUTTON_EDGE);
table.padBottom(BOTTOM_EDGE);
}