예제 #1
0
파일: Menu.java 프로젝트: Rio6/SuperHedge
  /** @param main the main class of game */
  public Menu(Main main) {
    super(main);
    this.main = main;

    setBackground(main.getResources().getDrawable(R.drawable.background));
    setGravity(Gravity.CENTER);

    MenuItem playBtn =
        new MenuItem(main, this, Main.scrW / 3, Main.scrH / 5, main.getString(R.string.play));

    addView(playBtn);
  }
예제 #2
0
파일: Menu.java 프로젝트: Rio6/SuperHedge
  /** the MenuItem has been clicked */
  void onClick(final View v) {
    Main.playSnd(0);

    main.newGame(Game.HEG_NEWGAME);
  }