Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WorkAdventure Dialogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FS Info TU Dortmund
Events
WorkAdventure Dialogs
Commits
ff43e2ac
Commit
ff43e2ac
authored
4 years ago
by
Jonas Zohren
Browse files
Options
Downloads
Patches
Plain Diff
Slightly improved Hans dialog
parent
b32712dd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/dialogs/hans.json
+11
-1
11 additions, 1 deletion
public/dialogs/hans.json
src/Debugger.svelte
+4
-2
4 additions, 2 deletions
src/Debugger.svelte
with
15 additions
and
3 deletions
public/dialogs/hans.json
+
11
−
1
View file @
ff43e2ac
...
...
@@ -27,7 +27,7 @@
]
},
"firstContact"
:
{
"text"
:
"Oh, nett dass sie fragen
, h
aben sie schon einmal darüber nachgedacht, bei den Alumni Mitglied zu werden? "
,
"text"
:
"Oh, nett dass sie fragen
. Ich habe hier mein Büro.
\n
H
aben sie schon einmal darüber nachgedacht, bei den Alumni Mitglied zu werden? "
,
"options"
:
[
{
"text"
:
"Nein, darf ich fragen, wer sie sind?"
,
...
...
@@ -54,6 +54,16 @@
"options"
:
[
{
"text"
:
"Später vielleicht"
,
"linksToDialog"
:
"declineToBecomeAlumniMember"
}
]
},
"declineToBecomeAlumniMember"
:
{
"text"
:
"Na gut, aber wenn sie es sich doch noch anders überlegen, melden sie sich gerne bei mir."
,
"addFacts"
:
[
"hans/madeFirstContact"
],
"options"
:
[
{
"text"
:
"Versprochen."
,
"linksToDialog"
:
"start"
}
]
...
...
This diff is collapsed.
Click to expand it.
src/Debugger.svelte
+
4
−
2
View file @
ff43e2ac
...
...
@@ -28,7 +28,7 @@
.
flat
();
// Deduplicate entries
const
factsSet
=
new
Set
(
allFacts
);
return
[...
factsSet
].
filter
(
e
=>
e
!==
undefined
);
return
[...
factsSet
].
filter
(
(
e
)
=>
e
!==
undefined
);
}
let
seenFactIds
=
new
Set
<
String
>
([
...
...
@@ -93,7 +93,9 @@
addFactInputValue
=
""
;
}
}
>
Add
</button
>
<button
style=
"width: 13rem;"
on:click=
{
()
=>
gameFactsStore
.
set
([])
}
>
Reset facts
</button>
<button
style=
"width: 13rem;"
on:click=
{
()
=>
gameFactsStore
.
set
([])
}
>
Reset facts
</button
>
</div>
<style>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment