Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
57439d05
Commit
57439d05
authored
Aug 24, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save tooltips enable/disable preference
parent
820b2741
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
app.component.ts
src/app/app.component.ts
+2
-0
scenario.ts
src/app/class/scenario/scenario.ts
+1
-0
No files found.
src/app/app.component.ts
View file @
57439d05
...
...
@@ -71,6 +71,7 @@ export class AppComponent {
this
.
scenario
.
projectName
=
data
.
fileName
;
fileName
=
data
.
fileName
+
' - RLG Maker'
;
}
this
.
scenario
.
tooltips
=
this
.
tooltipService
.
activatedTooltips
;
const
jsonString
=
JSON
.
stringify
(
this
.
scenario
);
const
blob
=
new
Blob
([
jsonString
],
{
type
:
'application/json'
});
const
url
=
URL
.
createObjectURL
(
blob
);
...
...
@@ -96,6 +97,7 @@ export class AppComponent {
const
fileContent
:
string
=
reader
.
result
as
string
;
const
jsonData
:
any
=
JSON
.
parse
(
fileContent
);
const
scenario
:
Scenario
=
Object
.
assign
(
new
Scenario
(),
jsonData
);
this
.
tooltipService
.
activatedTooltips
=
scenario
.
tooltips
;
scenario
.
context
=
Object
.
assign
(
new
GameContext
(),
jsonData
.
context
);
scenario
.
context
.
comments
=
jsonData
.
context
.
comments
.
map
((
commentData
:
any
)
=>
Object
.
assign
(
new
Comment
(),
commentData
));
scenario
.
educationnalObjective
=
Object
.
assign
(
new
GameEducationnalObjective
(),
jsonData
.
educationnalObjective
);
...
...
src/app/class/scenario/scenario.ts
View file @
57439d05
...
...
@@ -15,4 +15,5 @@ export class Scenario {
ressources
:
Ressource
[]
=
[];
comments
:
Comment
[]
=
[];
projectName
:
string
=
''
;
tooltips
:
boolean
=
true
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment