1
1
<template >
2
2
<Scene name =" createCharacter" @finish =" setActive('intro')" >
3
- <template v-if =" incorrectAccusation " >
4
- <SceneLog >
5
- Well, well, if it isn't our hero detective!
6
- </SceneLog >
7
-
8
- <SceneLog >
9
- What's wrong? Feeling a bit <SceneText :bounce =" true" color =" danger" >awful</SceneText > about what happened to {{ incorrectAccusation}}?
10
- </SceneLog >
11
-
12
- <SceneLog >
13
- Why? Surely, with your unrivaled powers of deduction, you would have solved the case the first time.
14
- </SceneLog >
15
-
16
- <SceneInputLabel >
17
- You're not having second thoughts, are you?
18
- </SceneInputLabel >
19
-
20
- <SceneSelect @submit =" secondThoughtsValue = $event" >
21
- <SceneSelectOption value =" yes" >
22
- Maybe...
23
- </SceneSelectOption >
24
-
25
- <SceneSelectOption value =" no" >
26
- What? No, of course not! {{ incorrectAccusation }} was a menace who needed to be stopped!
27
- </SceneSelectOption >
28
- </SceneSelect >
29
-
30
- <SceneLog :condition =" secondThoughtsValue === 'no'" >
31
- Ok good! Back to the credits with you!
32
- </SceneLog >
33
-
34
- <SceneInputLabel >
35
- Press 'Enter' to Continue...
36
- </SceneInputLabel >
37
-
38
- <SceneInput hide @submit =" setActive('fakeCredits')" />
39
-
40
- <SceneLog >
41
- Oh dear. How dreadful. Poor {{ incorrectAccusation }}, fired for no good reason.
42
- </SceneLog >
43
-
44
- <SceneLog >
45
- This is <SceneText color =" danger" >your</SceneText > fault.
46
- </SceneLog >
47
-
48
- <SceneLog >
49
- Oh well. Hope you're prepared to stomach this miscarriage of justice for the rest of your life!
50
- </SceneLog >
51
-
52
- <SceneLog >
53
- Unless... there were a way to reset time? To go back to before your recklessly accussed {{ incorrectAccusation }} and got them fired.
54
- </SceneLog >
55
-
56
- <SceneLog >
57
- Fortunately for you, <SceneText size =" large" >I</SceneText > possess this power.
58
- </SceneLog >
59
-
60
- <SceneInputLabel >
61
- Press 'Enter' to... reset time?
62
- </SceneInputLabel >
63
-
64
- <SceneInput hide @submit =" onResetTime" />
65
- </template >
66
-
67
3
<SceneInputLabel id =" nameLabel" >
68
4
What is your name?
69
5
</SceneInputLabel >
@@ -127,7 +63,7 @@ import indefinite from "indefinite";
127
63
128
64
const { setActive } = useScenesStore ();
129
65
130
- const { playerName, incorrectAccusation } = useGameStore ();
66
+ const { playerName } = useGameStore ();
131
67
132
68
const jobs = [
133
69
engineer ,
@@ -144,14 +80,8 @@ const skills: { name: string, key: keyof Job }[] = [
144
80
];
145
81
146
82
const selectedJob = ref <Job | undefined >(undefined );
147
- const secondThoughtsValue = ref (" " );
148
83
149
84
const onJobSelect = (name : string ) => {
150
85
selectedJob .value = jobs .find (j => j .name === name );
151
86
}
152
-
153
- const onResetTime = () => {
154
- incorrectAccusation .value = undefined ;
155
- setActive (' arrival' );
156
- }
157
87
</script >
0 commit comments