Quelques modifications dans le Seed Du Jeu
This commit is contained in:
@@ -13,6 +13,8 @@ public class SeedActivity extends Activity implements View.OnClickListener {
|
|||||||
private EditText etGraine;
|
private EditText etGraine;
|
||||||
private Button btnJouer;
|
private Button btnJouer;
|
||||||
|
|
||||||
|
private Button btnRetour;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@@ -20,6 +22,9 @@ public class SeedActivity extends Activity implements View.OnClickListener {
|
|||||||
|
|
||||||
etGraine = findViewById(R.id.etGraine);
|
etGraine = findViewById(R.id.etGraine);
|
||||||
btnJouer = findViewById(R.id.btnJouer);
|
btnJouer = findViewById(R.id.btnJouer);
|
||||||
|
btnRetour = findViewById(R.id.btnBack);
|
||||||
|
|
||||||
|
btnRetour.setOnClickListener(this);
|
||||||
|
|
||||||
btnJouer.setOnClickListener(this);
|
btnJouer.setOnClickListener(this);
|
||||||
}
|
}
|
||||||
@@ -29,6 +34,10 @@ public class SeedActivity extends Activity implements View.OnClickListener {
|
|||||||
if (v == btnJouer) {
|
if (v == btnJouer) {
|
||||||
lancerPartieAvecGraine();
|
lancerPartieAvecGraine();
|
||||||
}
|
}
|
||||||
|
if (v == btnRetour) {
|
||||||
|
Intent intent = new Intent(this, MenuActivity.class);
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void lancerPartieAvecGraine() {
|
private void lancerPartieAvecGraine() {
|
||||||
|
|||||||
Reference in New Issue
Block a user