mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-14 15:07:59 +00:00
fix ios not starting
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "life-trinket",
|
||||
"private": true,
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"type": "commonjs",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -84,7 +84,7 @@ const ExtraCountersBar = ({
|
||||
{player.settings.useCommanderDamage && (
|
||||
<ExtraCounter
|
||||
rotation={player.settings.rotation}
|
||||
Icon={<CommanderTax size={iconSize} opacity="0.5" />}
|
||||
Icon={<CommanderTax size={iconSize} opacity="0.5" color="black" />}
|
||||
type={CounterType.CommanderTax}
|
||||
counterTotal={
|
||||
player.extraCounters?.find(
|
||||
@@ -99,7 +99,7 @@ const ExtraCountersBar = ({
|
||||
) && (
|
||||
<ExtraCounter
|
||||
rotation={player.settings.rotation}
|
||||
Icon={<PartnerTax size={iconSize} opacity="0.5" />}
|
||||
Icon={<PartnerTax size={iconSize} opacity="0.5" color="black" />}
|
||||
type={CounterType.PartnerTax}
|
||||
counterTotal={
|
||||
player.extraCounters?.find(
|
||||
@@ -112,7 +112,7 @@ const ExtraCountersBar = ({
|
||||
{player.settings.usePoison && (
|
||||
<ExtraCounter
|
||||
rotation={player.settings.rotation}
|
||||
Icon={<Poison size={iconSize} opacity="0.5" />}
|
||||
Icon={<Poison size={iconSize} opacity="0.5" color="black" />}
|
||||
type={CounterType.Poison}
|
||||
counterTotal={
|
||||
player.extraCounters?.find((counter) => counter.type === 'poison')
|
||||
@@ -124,7 +124,7 @@ const ExtraCountersBar = ({
|
||||
{player.settings.useEnergy && (
|
||||
<ExtraCounter
|
||||
rotation={player.settings.rotation}
|
||||
Icon={<Energy size={iconSize} opacity="0.5" />}
|
||||
Icon={<Energy size={iconSize} opacity="0.5" color="black" />}
|
||||
type={CounterType.Energy}
|
||||
counterTotal={
|
||||
player.extraCounters?.find((counter) => counter.type === 'energy')
|
||||
@@ -136,7 +136,7 @@ const ExtraCountersBar = ({
|
||||
{player.settings.useExperience && (
|
||||
<ExtraCounter
|
||||
rotation={player.settings.rotation}
|
||||
Icon={<Experience size={iconSize} opacity="0.5" />}
|
||||
Icon={<Experience size={iconSize} opacity="0.5" color="black" />}
|
||||
type={CounterType.Experience}
|
||||
counterTotal={
|
||||
player.extraCounters?.find(
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
} from '../../../Data/getInitialPlayers';
|
||||
import { Player } from '../../../Types/Player';
|
||||
import { SupportMe } from '../../Misc/SupportMe';
|
||||
import { H2 } from '../../Misc/TextComponents';
|
||||
import { H2, Paragraph } from '../../Misc/TextComponents';
|
||||
import LayoutOptions from './LayoutOptions';
|
||||
import { useAnalytics } from '../../../Data/useAnalytics';
|
||||
|
||||
@@ -108,7 +108,11 @@ const Start = ({
|
||||
|
||||
analytics.trackEvent('game_started', { ...initialGameSettings });
|
||||
|
||||
try {
|
||||
document.documentElement.requestFullscreen();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
setInitialGameSettings(initialGameSettings);
|
||||
setPlayers(createInitialPlayers(initialGameSettings));
|
||||
};
|
||||
@@ -212,6 +216,11 @@ const Start = ({
|
||||
}
|
||||
/>
|
||||
</FormControl>
|
||||
|
||||
<Paragraph style={{ textAlign: 'center', maxWidth: '75%' }}>
|
||||
If you're on iOS, this page works better if you{' '}
|
||||
<strong>hide the toolbar</strong>
|
||||
</Paragraph>
|
||||
<StartButtonFooter>
|
||||
<Button
|
||||
size="large"
|
||||
|
||||
Reference in New Issue
Block a user