aboutsummaryrefslogtreecommitdiffstats
path: root/stores/session.ts
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2024-03-11 22:54:22 +0000
committerLeonardo Bishop <me@leonardobishop.com>2024-03-11 22:54:22 +0000
commitb0ab01ef6b715cafb12ecb2aa844a29c59c8a027 (patch)
treeeaf1f78df067f610e54c2a5a0794f04922653b2e /stores/session.ts
parent27d85f0cda4d6f71a5a8eab8f416f29f01602b38 (diff)
Update styles, add task type icons
Diffstat (limited to 'stores/session.ts')
-rw-r--r--stores/session.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/stores/session.ts b/stores/session.ts
index 1938b63..acd2c66 100644
--- a/stores/session.ts
+++ b/stores/session.ts
@@ -14,7 +14,7 @@ export interface EditorQuest {
rewards: string[];
startCommands?: string[];
startString?: string[];
- rewardString?: string[];
+ rewardString?: string[];
placeholders?: { [key: string]: string };
options: {
category: string;
@@ -60,6 +60,10 @@ export interface EditorCategory {
export interface TaskDefinition {
description: string;
+ icon: {
+ style: string;
+ name: string;
+ }
configuration: {
[key: string]: {
type: string | string[];
@@ -141,7 +145,7 @@ export const useSessionStore = defineStore('session', {
changeQuestId(oldId: string, newId: string) {
const quest = this.getQuestById(oldId);
if (!quest) return;
-
+
quest.id = newId
},
deleteQuest(id: string) {