mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
Added save mechanic
This commit is contained in:
parent
7aff5be9cd
commit
659d79bcd0
23 changed files with 333 additions and 20292 deletions
|
@ -8,40 +8,32 @@ export const options = {
|
|||
default: true,
|
||||
name: t("main_menu.sounds"),
|
||||
help: t("main_menu.sounds_help"),
|
||||
disabled: () => false,
|
||||
},
|
||||
"mobile-mode": {
|
||||
default: window.innerHeight > window.innerWidth,
|
||||
name: t("main_menu.mobile"),
|
||||
help: t("main_menu.mobile_help"),
|
||||
disabled: () => false,
|
||||
},
|
||||
basic: {
|
||||
default: false,
|
||||
name: t("main_menu.basic"),
|
||||
help: t("main_menu.basic_help"),
|
||||
disabled: () => false,
|
||||
},
|
||||
pointerLock: {
|
||||
default: false,
|
||||
name: t("main_menu.pointer_lock"),
|
||||
help: t("main_menu.pointer_lock_help"),
|
||||
disabled: () => !document.body.requestPointerLock,
|
||||
},
|
||||
easy: {
|
||||
default: false,
|
||||
name: t("main_menu.kid"),
|
||||
help: t("main_menu.kid_help"),
|
||||
disabled: () => false,
|
||||
},
|
||||
// Could not get the sharing to work without loading androidx and all the modern android things so for now I'll just disable sharing in the android app
|
||||
record: {
|
||||
default: false,
|
||||
name: t("main_menu.record"),
|
||||
help: t("main_menu.record_help"),
|
||||
disabled() {
|
||||
return window.location.search.includes("isInWebView=true");
|
||||
},
|
||||
},
|
||||
} as const satisfies { [k: string]: OptionDef };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue