|
|
@ -7,16 +7,19 @@ import "./InGame.css"
|
|
|
|
import GraphContainer from '../Components/GraphContainer';
|
|
|
|
import GraphContainer from '../Components/GraphContainer';
|
|
|
|
import ChoiceBar from '../Components/ChoiceBar';
|
|
|
|
import ChoiceBar from '../Components/ChoiceBar';
|
|
|
|
import ButtonImgNav from '../Components/ButtonImgNav';
|
|
|
|
import ButtonImgNav from '../Components/ButtonImgNav';
|
|
|
|
|
|
|
|
import PersonStatus from '../Components/PersonStatus';
|
|
|
|
|
|
|
|
|
|
|
|
/* Icon */
|
|
|
|
/* Icon */
|
|
|
|
import Leave from "../res/icon/leave.png";
|
|
|
|
import Leave from "../res/icon/leave.png";
|
|
|
|
import Param from "../res/icon/param.png";
|
|
|
|
import Param from "../res/icon/param.png";
|
|
|
|
import Replay from "../res/icon/replay.png";
|
|
|
|
import Replay from "../res/icon/replay.png";
|
|
|
|
|
|
|
|
import Info from "../res/icon/infoGreen.png";
|
|
|
|
|
|
|
|
import Check from "../res/icon/checkboxGreen.png";
|
|
|
|
|
|
|
|
import Alpha from "../res/GreekLetters/alphaW.png";
|
|
|
|
|
|
|
|
|
|
|
|
/* Boostrap */
|
|
|
|
/* Boostrap */
|
|
|
|
import Button from 'react-bootstrap/Button';
|
|
|
|
import Button from 'react-bootstrap/Button';
|
|
|
|
import Offcanvas from 'react-bootstrap/Offcanvas';
|
|
|
|
import Offcanvas from 'react-bootstrap/Offcanvas';
|
|
|
|
import PersonStatus from '../Components/PersonStatus';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const InGame = () => {
|
|
|
|
const InGame = () => {
|
|
|
|
const [showChoiceBar, setShowChoiceBar] = useState(false);
|
|
|
|
const [showChoiceBar, setShowChoiceBar] = useState(false);
|
|
|
@ -26,6 +29,7 @@ const InGame = () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* offcanvas */
|
|
|
|
/* offcanvas */
|
|
|
|
|
|
|
|
//? faire une fonction pour close et show en fonction de l'etat du canva ?
|
|
|
|
const [show, setShow] = useState(false);
|
|
|
|
const [show, setShow] = useState(false);
|
|
|
|
const handleClose = () => setShow(false);
|
|
|
|
const handleClose = () => setShow(false);
|
|
|
|
const handleShow = () => setShow(true);
|
|
|
|
const handleShow = () => setShow(true);
|
|
|
@ -44,27 +48,27 @@ const InGame = () => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='playerlistDiv'>
|
|
|
|
<div className='playerlistDiv'>
|
|
|
|
<Button variant="primary" onClick={handleShowP}>
|
|
|
|
<button className='button' onClick={handleShowP}>
|
|
|
|
Players
|
|
|
|
Players
|
|
|
|
</Button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='paramDiv'>
|
|
|
|
<div className='paramDiv'>
|
|
|
|
<ButtonImgNav text='paramètres' img={Param} dest='/'/>
|
|
|
|
<ButtonImgNav text='paramètres' img={Param} dest='/'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className='menuGame'>
|
|
|
|
<div className='menuGame'>
|
|
|
|
<Button variant="primary" onClick={handleShow}>
|
|
|
|
<button className='button' onClick={handleShow}>
|
|
|
|
i
|
|
|
|
<img src={Info} alt="info" height="40"/>
|
|
|
|
</Button>
|
|
|
|
</button>
|
|
|
|
<Button variant="primary" onClick={handleShow}>
|
|
|
|
<button className='button' onClick={handleShow}>
|
|
|
|
check
|
|
|
|
<img src={Check} alt="check" height="40"/>
|
|
|
|
</Button>
|
|
|
|
</button>
|
|
|
|
<Button variant="primary" onClick={handleShow}>
|
|
|
|
<button className='button' onClick={handleShow}>
|
|
|
|
α
|
|
|
|
<img src={Alpha} alt="indice" height="40"/>
|
|
|
|
</Button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<Offcanvas show={showP}
|
|
|
|
<Offcanvas show={showP}
|
|
|
|
onHide={handleCloseP}>
|
|
|
|
onHide={handleCloseP}>
|
|
|
|
<Offcanvas.Header closeButton>
|
|
|
|
<Offcanvas.Header closeButton>
|
|
|
|