當前位置: 首頁>>代碼示例>>Java>>正文


Java Table.bottom方法代碼示例

本文整理匯總了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);
}
 
開發者ID:antonioalmeida,項目名稱:retro-reversi,代碼行數:22,代碼來源:MainMenuView.java

示例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);
}
 
開發者ID:antonioalmeida,項目名稱:retro-reversi,代碼行數:22,代碼來源:MultiplayerMenuView.java

示例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();
}
 
開發者ID:antonioalmeida,項目名稱:retro-reversi,代碼行數:19,代碼來源:DifficultyMenuView.java

示例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);
}
 
開發者ID:AndreFCruz,項目名稱:feup-lpoo-armadillo,代碼行數:18,代碼來源:MainMenuScreen.java

示例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);
}
 
開發者ID:AndreFCruz,項目名稱:feup-lpoo-armadillo,代碼行數:20,代碼來源:NetworkingMenuScreen.java


注:本文中的com.badlogic.gdx.scenes.scene2d.ui.Table.bottom方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。