|
|
@ -3,7 +3,7 @@ import Switch from "react-switch";
|
|
|
|
|
|
|
|
|
|
|
|
/* Style */
|
|
|
|
/* Style */
|
|
|
|
import "./InGame.css"
|
|
|
|
import "./InGame.css"
|
|
|
|
|
|
|
|
import {useTheme} from '../Style/ThemeContext'
|
|
|
|
/* Component */
|
|
|
|
/* Component */
|
|
|
|
import GraphContainer from '../Components/GraphContainer';
|
|
|
|
import GraphContainer from '../Components/GraphContainer';
|
|
|
|
import ChoiceBar from '../Components/ChoiceBar';
|
|
|
|
import ChoiceBar from '../Components/ChoiceBar';
|
|
|
@ -31,6 +31,7 @@ import Stub from '../source/Stub';
|
|
|
|
import { HiLanguage } from 'react-icons/hi2';
|
|
|
|
import { HiLanguage } from 'react-icons/hi2';
|
|
|
|
import { Nav, NavDropdown } from 'react-bootstrap';
|
|
|
|
import { Nav, NavDropdown } from 'react-bootstrap';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
|
|
|
|
import Color from '../source/Color';
|
|
|
|
|
|
|
|
|
|
|
|
//@ts-ignore
|
|
|
|
//@ts-ignore
|
|
|
|
const InGame = ({locale, changeLocale}) => {
|
|
|
|
const InGame = ({locale, changeLocale}) => {
|
|
|
@ -55,7 +56,7 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const theme = useTheme();
|
|
|
|
|
|
|
|
|
|
|
|
const [showChoiceBar, setShowChoiceBar] = useState(false);
|
|
|
|
const [showChoiceBar, setShowChoiceBar] = useState(false);
|
|
|
|
|
|
|
|
|
|
|
@ -116,7 +117,10 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div id="mainDiv">
|
|
|
|
<div id="mainDiv">
|
|
|
|
<div className='upperInfo'>
|
|
|
|
<div className='upperInfo'
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
|
|
|
|
}}>
|
|
|
|
{/* texte changeable et a traduire */}
|
|
|
|
{/* texte changeable et a traduire */}
|
|
|
|
<p>Dummy, à vous de jouer !</p>
|
|
|
|
<p>Dummy, à vous de jouer !</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -125,20 +129,34 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='playerlistDiv'>
|
|
|
|
<div className='playerlistDiv'>
|
|
|
|
<button className='button' onClick={handleChangeP}>
|
|
|
|
<button className='button'
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: theme.colors.primary,
|
|
|
|
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
onClick={handleChangeP}>
|
|
|
|
Players
|
|
|
|
Players
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='paramDiv'>
|
|
|
|
<div className='paramDiv'>
|
|
|
|
<button className='button' onClick={handleChangeS}>
|
|
|
|
<button className='button'
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: theme.colors.primary,
|
|
|
|
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
onClick={handleChangeS}>
|
|
|
|
<img src={Param} alt="paramètres" height='40'/>
|
|
|
|
<img src={Param} alt="paramètres" height='40'/>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className='menuGame'>
|
|
|
|
<div className='menuGame'>
|
|
|
|
<Link to='/info' target='_blank'>
|
|
|
|
<Link to='/info' target='_blank'>
|
|
|
|
<button className='button'>
|
|
|
|
<button className='button'
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: theme.colors.primary,
|
|
|
|
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
|
|
|
|
}}>
|
|
|
|
<img src={Info} alt="info" height="40"/>
|
|
|
|
<img src={Info} alt="info" height="40"/>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
@ -147,12 +165,20 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
</button> */}
|
|
|
|
</button> */}
|
|
|
|
|
|
|
|
|
|
|
|
<Link to='/info' target='_blank'>
|
|
|
|
<Link to='/info' target='_blank'>
|
|
|
|
<button className='button'>
|
|
|
|
<button className='button'
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: theme.colors.primary,
|
|
|
|
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
|
|
|
|
}}>
|
|
|
|
<img src={Check} alt="check" height="40"/>
|
|
|
|
<img src={Check} alt="check" height="40"/>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
|
|
|
|
<button className='button' onClick={handleChange}>
|
|
|
|
<button className='button' onClick={handleChange}
|
|
|
|
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: theme.colors.primary,
|
|
|
|
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
|
|
|
|
}}>
|
|
|
|
<img src={Alpha} alt="indice" height="40"/>
|
|
|
|
<img src={Alpha} alt="indice" height="40"/>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -226,7 +252,7 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
<div id="bottom-container">
|
|
|
|
<div id="bottom-container">
|
|
|
|
{showChoiceBar && <ChoiceBar />}
|
|
|
|
{showChoiceBar && <ChoiceBar />}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="endgamebutton"> {/* tmp */}
|
|
|
|
<div id="endgamebutton" > {/* tmp */}
|
|
|
|
<ButtonImgNav dest="/endgame" img={Leave} text='endgame'/>
|
|
|
|
<ButtonImgNav dest="/endgame" img={Leave} text='endgame'/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|