Merge branch 'main' into feat/netcode-rework
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
enum CardStyles {
|
||||
HERON = "heron",
|
||||
ORIGINAL = "original"
|
||||
}
|
||||
|
||||
export const useSettingsStore = defineStore("settingstore", {
|
||||
state: () => ({
|
||||
cardStyle: CardStyles.HERON,
|
||||
shaderQuality: 3,
|
||||
shaderFramerate: 0,
|
||||
shaderPixelated: true
|
||||
}),
|
||||
actions: {
|
||||
switchCardStyles() {
|
||||
if (this.cardStyle === CardStyles.HERON) {
|
||||
this.cardStyle = CardStyles.ORIGINAL
|
||||
} else {
|
||||
this.cardStyle = CardStyles.HERON
|
||||
}
|
||||
}
|
||||
},
|
||||
persist: true
|
||||
});
|
||||
Reference in New Issue
Block a user