Add Monarch support (#37)

* wip

* cleanup

* monarch button

* use monarch button

* last cleanup

* fix lint

* fix lint
This commit is contained in:
Viktor Rådberg
2024-09-22 09:57:02 +02:00
committed by GitHub
parent f9ad21b72e
commit 35c1cac691
14 changed files with 183 additions and 26 deletions

View File

@@ -26,6 +26,7 @@ export type Settings = {
goFullscreenOnStart: boolean;
preStartMode: PreStartMode;
showAnimations: boolean;
useMonarch: boolean;
};
export type InitialGameSettings = {
@@ -59,6 +60,7 @@ export const settingsSchema = z.object({
goFullscreenOnStart: z.boolean(),
preStartMode: z.nativeEnum(PreStartMode),
showAnimations: z.boolean(),
useMonarch: z.boolean().default(false),
});
export const defaultSettings: Settings = {
@@ -68,4 +70,5 @@ export const defaultSettings: Settings = {
showPlayerMenuCog: true,
preStartMode: PreStartMode.None,
showAnimations: true,
useMonarch: false,
};