Ajout d'un controleur

This commit is contained in:
Sehl Aylane
2026-03-11 15:52:10 +01:00
parent 648172d51a
commit 34412d84cd
14 changed files with 1219 additions and 1136 deletions
@@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
+85 -85
View File
@@ -1,86 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:id="@+id/tvScore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Score : 0"
android:textSize="18sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/tvCoups"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Coups : 0"
android:textSize="18sp"/>
<sae.chuzzle.VueGrille
android:id="@+id/vueGrille"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<RadioGroup
android:id="@+id/rgChoix"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rbLigne"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Ligne"
android:checked="true"/>
<RadioButton
android:id="@+id/rbColonne"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Colonne"/>
</RadioGroup>
<Spinner
android:id="@+id/spinnerIndex"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<RadioGroup
android:id="@+id/rgSens"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rbDroite"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Droite / Bas (+1)"
android:checked="true"/>
<RadioButton
android:id="@+id/rbGauche"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Gauche / Haut (-1)"/>
</RadioGroup>
<Button
android:id="@+id/btnJouer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jouer"/>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:id="@+id/tvScore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Score : 0"
android:textSize="18sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/tvCoups"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Coups : 0"
android:textSize="18sp"/>
<sae.chuzzle.VueGrille
android:id="@+id/vueGrille"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<RadioGroup
android:id="@+id/rgChoix"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rbLigne"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Ligne"
android:checked="true"/>
<RadioButton
android:id="@+id/rbColonne"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Colonne"/>
</RadioGroup>
<Spinner
android:id="@+id/spinnerIndex"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<RadioGroup
android:id="@+id/rgSens"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rbDroite"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Droite / Bas (+1)"
android:checked="true"/>
<RadioButton
android:id="@+id/rbGauche"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Gauche / Haut (-1)"/>
</RadioGroup>
<Button
android:id="@+id/btnJouer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jouer"/>
</LinearLayout>
+37 -37
View File
@@ -1,38 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Chuzzle"
android:textSize="48sp"
android:textStyle="bold"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<Button
android:id="@+id/btnNouvellePartie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nouvelle Partie"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnPartieGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Partie avec Graine"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnOptions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"/>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Chuzzle"
android:textSize="48sp"
android:textStyle="bold"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<Button
android:id="@+id/btnNouvellePartie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nouvelle Partie"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnPartieGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Partie avec Graine"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnOptions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"/>
</LinearLayout>
+57 -57
View File
@@ -1,58 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="48dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"
android:textSize="32sp"
android:textStyle="bold"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="32dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Mode daltonien (symboles)"
android:textSize="18sp"/>
<Switch
android:id="@+id/switchDaltonien"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Hard mode (verrous)"
android:textSize="18sp"/>
<Switch
android:id="@+id/switchHard"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="48dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"
android:textSize="32sp"
android:textStyle="bold"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="32dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Mode daltonien (symboles)"
android:textSize="18sp"/>
<Switch
android:id="@+id/switchDaltonien"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Hard mode (verrous)"
android:textSize="18sp"/>
<Switch
android:id="@+id/switchHard"
android:layout_width="50dp"
android:layout_height="50dp"/>
</LinearLayout>
</LinearLayout>
+30 -30
View File
@@ -1,31 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Entrez une graine"
android:textSize="24sp"
android:gravity="center"
android:layout_marginBottom="32dp"/>
<EditText
android:id="@+id/etGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Ex : 12345"
android:inputType="number"
android:layout_marginBottom="32dp"/>
<Button
android:id="@+id/btnJouer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jouer"/>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Entrez une graine"
android:textSize="24sp"
android:gravity="center"
android:layout_marginBottom="32dp"/>
<EditText
android:id="@+id/etGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Ex : 12345"
android:inputType="number"
android:layout_marginBottom="32dp"/>
<Button
android:id="@+id/btnJouer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jouer"/>
</LinearLayout>
+1 -1
View File
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">Chuzzle</string>
<string name="app_name">RealChuzzle</string>
</resources>