2026-03-28 15:51:55 +01:00
|
|
|
package sae.chuzzle;
|
|
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.widget.Button;
|
|
|
|
|
|
|
|
|
|
public class MenuActivity extends Activity {
|
|
|
|
|
|
|
|
|
|
private Button btnNouvellePartie;
|
|
|
|
|
private Button btnPartieGraine;
|
|
|
|
|
private Button btnOptions;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
setContentView(R.layout.activity_menu);
|
|
|
|
|
|
|
|
|
|
btnNouvellePartie = findViewById(R.id.btnNouvellePartie);
|
|
|
|
|
btnPartieGraine = findViewById(R.id.btnPartieGraine);
|
|
|
|
|
btnOptions = findViewById(R.id.btnOptions);
|
|
|
|
|
|
|
|
|
|
MenuController controller = new MenuController(this);
|
|
|
|
|
btnNouvellePartie.setOnClickListener(controller);
|
|
|
|
|
btnPartieGraine.setOnClickListener(controller);
|
|
|
|
|
btnOptions.setOnClickListener(controller);
|
|
|
|
|
}
|
2026-03-07 23:47:29 +01:00
|
|
|
}
|