last cleanup

This commit is contained in:
Vikeo
2024-09-22 09:45:43 +02:00
parent 0cf7761e6b
commit a9f99ab5a1
4 changed files with 20 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import {
CommanderTax, CommanderTax,
Energy, Energy,
Experience, Experience,
Monarch,
PartnerTax, PartnerTax,
Poison, Poison,
} from '../../Icons/generated'; } from '../../Icons/generated';
@@ -108,6 +109,9 @@ export const InfoDialog = ({
<li className="flex items-center"> <li className="flex items-center">
<Experience className="size-6" /> - Experience <Experience className="size-6" /> - Experience
</li> </li>
<li className="flex items-center">
<Monarch className="size-6" /> - Monarch
</li>
</ul> </ul>
<h3 className="text-lg font-bold mb-2">Other functionality</h3> <h3 className="text-lg font-bold mb-2">Other functionality</h3>

View File

@@ -32,7 +32,20 @@ export const MonarchCrown = ({ player }: { player: Player }) => {
name="useMonarch" name="useMonarch"
checked={player.isMonarch} checked={player.isMonarch}
icon={<Monarch size={iconSize} color={player.color} stroke="white" />} icon={<Monarch size={iconSize} color={player.color} stroke="white" />}
checkedIcon={<Monarch size={iconSize} color="gold" stroke="white" />} checkedIcon={
<div>
<Monarch
size={iconSize}
stroke="white"
className="absolute blur z-[-1] text-icons-gold"
/>
<Monarch
size={iconSize}
stroke="white"
className="text-icons-gold"
/>
</div>
}
onChange={(e) => { onChange={(e) => {
const updatedPlayer = { ...player, isMonarch: e.target.checked }; const updatedPlayer = { ...player, isMonarch: e.target.checked };

View File

@@ -104,6 +104,7 @@ export const GlobalSettingsProvider = ({
setPlaying(false); setPlaying(false);
setShowPlay(false); setShowPlay(false);
setPreStartCompleted(false); setPreStartCompleted(false);
setSettings({ ...settings, useMonarch: false });
}; };
// Set settings if they are not valid // Set settings if they are not valid

View File

@@ -20,6 +20,7 @@ export const baseColors = {
icons: { icons: {
dark: '#000000', dark: '#000000',
light: '#F9FFE3', light: '#F9FFE3',
gold: '#FFD700',
}, },
text: { text: {
primary: '#F9FFE3', primary: '#F9FFE3',