Add first svg cards
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
enum CardStyles {
|
||||
export enum CardStyles {
|
||||
HERON = "heron",
|
||||
ORIGINAL = "original",
|
||||
SVG = "heron-svg"
|
||||
}
|
||||
|
||||
export const useSettingsStore = defineStore("settingstore", {
|
||||
state: () => ({
|
||||
cardStyle: CardStyles.HERON,
|
||||
cardStyle: CardStyles.SVG,
|
||||
animationSpeed: 100,
|
||||
shaderQuality: 3,
|
||||
shaderFramerate: 10,
|
||||
@@ -17,6 +18,8 @@ export const useSettingsStore = defineStore("settingstore", {
|
||||
switchCardStyles() {
|
||||
if (this.cardStyle === CardStyles.HERON) {
|
||||
this.cardStyle = CardStyles.ORIGINAL;
|
||||
} else if (this.cardStyle === CardStyles.ORIGINAL) {
|
||||
this.cardStyle = CardStyles.SVG;
|
||||
} else {
|
||||
this.cardStyle = CardStyles.HERON;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user