mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-16 15:58:00 +00:00
last cleanup
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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 };
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user