コード例 #1
0
  public boolean onMenuItemClicked(
      MenuScene pMenuScene, IMenuItem pMenuItem, float pMenuItemLocalX, float pMenuItemLocalY) {

    switch (pMenuItem.getID()) {
      case MENU_OPTIONS:
        SceneManager.getInstance().loadGameScene(engine);

        return true;
      default:
        return false;
    }
  }
コード例 #2
0
 @Override
 public void onBackKeyPressed() {
   SceneManager.getInstance().getMenuSceneBack(engine);
 }