diff --git a/cryptide_project/src/Pages/Tutorial.tsx b/cryptide_project/src/Pages/Tutorial.tsx index 308f6a6..64704d5 100644 --- a/cryptide_project/src/Pages/Tutorial.tsx +++ b/cryptide_project/src/Pages/Tutorial.tsx @@ -21,7 +21,10 @@ import Ceye from "../res/icon/hidden.png"; import ImgBot from "../res/img/bot.png"; import ava from "../res/img/tuto/tuto-ava.png"; +import joueurs from "../res/img/tuto/tuto-joueurs.png"; +import tada from "../res/img/tuto/tuto-tada.png"; +import step1 from "../res/img/tuto/tuto2-1.png"; /* nav */ import { Link, Navigate, useNavigate, useNavigationType } from 'react-router-dom'; @@ -229,11 +232,20 @@ const Tutorial = ({locale, changeLocale}) => { //* gestion demo */ const [showM, setShowM] = useState(false); + const [showTuto2, setShowTuto2] = useState(false); - const handleCloseM = () => setShowM(false); + const handleCloseM = () => { + setShowM(false); + setTuto1disable(false); + } const handleShowM = () => setShowM(true); + const handleCloseTuto2 = () => setShowTuto2(false); + const handleShowTuto2 = () => setShowTuto2(true); + const [step, setStep] = useState(0); + + const [tuto1disable, setTuto1disable] = useState(true); return (
{showTurnBar && } @@ -255,24 +267,14 @@ const Tutorial = ({locale, changeLocale}) => {
{item}
))}
- - -
- -
-
+
-{/* - - - Joueurs -

Il y a {players.length} joueurs

-
- - - -
- */} -
@@ -342,10 +331,9 @@ const Tutorial = ({locale, changeLocale}) => { show={showM} onHide={handleCloseM} backdrop="static" - keyboard={false} - > - - Tutoriel 1 + keyboard={false}> + + Tutoriel @@ -365,13 +353,13 @@ const Tutorial = ({locale, changeLocale}) => { {step === 1 && ( - + Les Joueurs - Les sommets du graphes représentent les personnes, chaque personne possède différentes caractéristiques, que ce soit leur nom, âge, sport et leur couleur de cheveux. + Il est possible de voir les joueurs sur le côté gauche de l'écran, ils sont représentés par des cercles de couleurs différentes. Le Joueur avec un contour carré est le joueur qui joue actuellement.
- Par exemple, ici, Nous avons Ava, qui a 40 ans, qui pratique du Basket et du Tennis, qui a les cheveux Roux et qui possède 2 voisins + Il est possible de cliquer sur l'image d'un joueur pour le séléctionné, afin de pouvoir lui demander des informations à propos de quelqu'un sur le graphe.
@@ -393,7 +381,15 @@ const Tutorial = ({locale, changeLocale}) => { {step === 3 && ( - + + + Les règle du jeu @@ -405,7 +401,15 @@ const Tutorial = ({locale, changeLocale}) => { {step === 4 && ( - + + + L'indice @@ -414,13 +418,62 @@ const Tutorial = ({locale, changeLocale}) => { )} + + {step === 5 && ( + + + + Étape finale + + Bien joué ! vous avez effectué la première étape du tutoriel, maintenant, place à la pratique ! Vous pouvez maintenant fermer cette fenêtre et commencer à jouer ! +
+ Vous avez maintenant accès au Tuto 2 +
+
+
+ )} +
- + +
+ +
{/* */} { step != 0 && ()} - + { step === 5 ? () : + } + +
+ + + + + + Tutoriel + + + + + + + Premier pas + + Bienvenue dans cette seconde partie, ou nous allons apprendre le déroulé d'une partie. +
+ Dans un premier temps, Séléctionnez le joueur Bot1 et questionnez le à propos de Violet en cliquant sur cette dernière. +
+
+
+ +
+ +
diff --git a/cryptide_project/src/res/img/tuto/tuto-indice.png b/cryptide_project/src/res/img/tuto/tuto-indice.png new file mode 100644 index 0000000..60e93af Binary files /dev/null and b/cryptide_project/src/res/img/tuto/tuto-indice.png differ diff --git a/cryptide_project/src/res/img/tuto/tuto-info.png b/cryptide_project/src/res/img/tuto/tuto-info.png new file mode 100644 index 0000000..5bee543 Binary files /dev/null and b/cryptide_project/src/res/img/tuto/tuto-info.png differ diff --git a/cryptide_project/src/res/img/tuto/tuto-joueurs.png b/cryptide_project/src/res/img/tuto/tuto-joueurs.png new file mode 100644 index 0000000..74450df Binary files /dev/null and b/cryptide_project/src/res/img/tuto/tuto-joueurs.png differ diff --git a/cryptide_project/src/res/img/tuto/tuto-tada.png b/cryptide_project/src/res/img/tuto/tuto-tada.png new file mode 100644 index 0000000..c9e2f9b Binary files /dev/null and b/cryptide_project/src/res/img/tuto/tuto-tada.png differ diff --git a/cryptide_project/src/res/img/tuto/tuto2-1.png b/cryptide_project/src/res/img/tuto/tuto2-1.png new file mode 100644 index 0000000..e62f185 Binary files /dev/null and b/cryptide_project/src/res/img/tuto/tuto2-1.png differ