Compare commits

..

4 Commits

Author SHA1 Message Date
Vikeo
e692454b96 bump 2024-04-01 00:28:46 +02:00
Vikeo
71321e98dc start menu styling 2024-04-01 00:28:17 +02:00
Vikeo
c381b87c48 hide scrollbar on desktop 2024-04-01 00:27:25 +02:00
Viktor Rådberg
aa479e67bf save 2024-03-31 23:26:04 +02:00
3 changed files with 3 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "life-trinket",
"private": true,
"version": "0.9.6",
"version": "0.9.5",
"type": "commonjs",
"engines": {
"node": ">=18",

View File

@@ -2,7 +2,6 @@ import { Checkbox } from '@mui/material';
import { useRef } from 'react';
import { twc } from 'react-twc';
import { theme } from '../../Data/theme';
import { useAnalytics } from '../../Hooks/useAnalytics';
import { useGlobalSettings } from '../../Hooks/useGlobalSettings';
import { usePlayers } from '../../Hooks/usePlayers';
import { useSafeRotate } from '../../Hooks/useSafeRotate';
@@ -18,8 +17,8 @@ import {
ResetGame,
} from '../../Icons/generated';
import { Player, Rotation } from '../../Types/Player';
import { PreStartMode } from '../../Types/Settings';
import { RotationDivProps } from '../Buttons/CommanderDamage';
import { useAnalytics } from '../../Hooks/useAnalytics';
const PlayerMenuWrapper = twc.div`
flex
@@ -113,7 +112,6 @@ const PlayerMenu = ({
setRandomizingPlayer,
saveCurrentGame,
initialGameSettings,
setPreStartCompleted,
} = useGlobalSettings();
const analytics = useAnalytics();
@@ -135,14 +133,8 @@ const PlayerMenu = ({
const handleResetGame = () => {
resetCurrentGame();
setShowPlayerMenu(false);
setPlaying(false);
if (settings.preStartMode === PreStartMode.RandomKing) {
setRandomizingPlayer(true);
setPreStartCompleted(false);
}
analytics.trackEvent('reset_game');
};

View File

@@ -95,7 +95,6 @@ export const Play = () => {
}, []);
if (
players.length > 1 &&
!preStartCompleted &&
settings.preStartMode !== PreStartMode.None &&
!playing &&