|
|
@ -62,6 +62,13 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
IsSolo=false
|
|
|
|
IsSolo=false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//* Gestion daily
|
|
|
|
|
|
|
|
let isDaily: boolean = true
|
|
|
|
|
|
|
|
const isDailytmp = params.get('daily');
|
|
|
|
|
|
|
|
if (isDailytmp == "false"){
|
|
|
|
|
|
|
|
isDaily=false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//* Historique
|
|
|
|
//* Historique
|
|
|
|
const [history, setHistory] = useState<string[]>([]);
|
|
|
|
const [history, setHistory] = useState<string[]>([]);
|
|
|
|
const [showLast, setShowLast] = useState(false)
|
|
|
|
const [showLast, setShowLast] = useState(false)
|
|
|
@ -212,6 +219,7 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
changecptTour={changecptTour}
|
|
|
|
changecptTour={changecptTour}
|
|
|
|
addToHistory={addToHistory}
|
|
|
|
addToHistory={addToHistory}
|
|
|
|
solo={IsSolo}
|
|
|
|
solo={IsSolo}
|
|
|
|
|
|
|
|
isDaily={isDaily}
|
|
|
|
setPlayerTouched={handleSetPlayerTouched}
|
|
|
|
setPlayerTouched={handleSetPlayerTouched}
|
|
|
|
playerTouched={playerTouched}
|
|
|
|
playerTouched={playerTouched}
|
|
|
|
setNetwork={setNetworkData}
|
|
|
|
setNetwork={setNetworkData}
|
|
|
@ -219,7 +227,7 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{IsSolo &&
|
|
|
|
{IsSolo && !isDaily &&
|
|
|
|
<div className='nbLaps' style={{
|
|
|
|
<div className='nbLaps' style={{
|
|
|
|
backgroundColor: theme.colors.primary,
|
|
|
|
backgroundColor: theme.colors.primary,
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
@ -228,12 +236,13 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{!isDaily &&
|
|
|
|
<div className='historique' id="history-container">
|
|
|
|
<div className='historique' id="history-container">
|
|
|
|
{history.map((item, index) => (
|
|
|
|
{history.map((item, index) => (
|
|
|
|
<div key={index}>{item}</div>
|
|
|
|
<div key={index}>{item}</div>
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<div className='paramDiv'>
|
|
|
|
<div className='paramDiv'>
|
|
|
|
<button className='button'
|
|
|
|
<button className='button'
|
|
|
@ -289,7 +298,8 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
<img src={Check} alt="check" height="40"/>
|
|
|
|
<img src={Check} alt="check" height="40"/>
|
|
|
|
</button> */}
|
|
|
|
</button> */}
|
|
|
|
|
|
|
|
|
|
|
|
{!IsSolo && <Link to='/info' target='_blank'>
|
|
|
|
{!IsSolo &&
|
|
|
|
|
|
|
|
<Link to='/info' target='_blank'>
|
|
|
|
<button className='button'
|
|
|
|
<button className='button'
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
backgroundColor: theme.colors.tertiary,
|
|
|
|
backgroundColor: theme.colors.tertiary,
|
|
|
@ -315,13 +325,15 @@ const InGame = ({locale, changeLocale}) => {
|
|
|
|
<img src={ eye } alt="indice" height="40"/>
|
|
|
|
<img src={ eye } alt="indice" height="40"/>
|
|
|
|
</button>}
|
|
|
|
</button>}
|
|
|
|
|
|
|
|
|
|
|
|
{IsSolo && <button className='button' onClick={generateTEX}
|
|
|
|
{IsSolo &&
|
|
|
|
style={{
|
|
|
|
|
|
|
|
backgroundColor: theme.colors.tertiary,
|
|
|
|
<button className='button' onClick={generateTEX}
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
style={{
|
|
|
|
}}>
|
|
|
|
backgroundColor: theme.colors.tertiary,
|
|
|
|
<img src={Download} alt="indice" height="40"/>
|
|
|
|
borderColor: theme.colors.secondary
|
|
|
|
</button>
|
|
|
|
}}>
|
|
|
|
|
|
|
|
<img src={Download} alt="indice" height="40"/>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|