diff options
-rw-r--r-- | qeditor.rpy (renamed from editor.rpy) | 9 | ||||
-rw-r--r-- | script.rpy | 4 |
2 files changed, 9 insertions, 4 deletions
@@ -222,10 +222,10 @@ init python: def qeditor_save(): global allquests - f=open(get_path("editor.json"), "w") + f=open(get_path("quests.editor.json"), "w") json.dump(allquests, f, indent=4, separators=(',', ': ')) f.close() - renpy.notify("File saved as editor.json") + renpy.notify("File saved as quests.editor.json") return def qeditor_new(special=False): @@ -404,5 +404,10 @@ label quest_editors: $print("") call screen quest_editor $print("Quest Editor closed") + menu: + "Save Changes": + $ qeditor_save() + "Discard Changes": + pass jump restore @@ -17,14 +17,14 @@ label restore: menu:
"Save changes":
python:
- f=open(get_path("editor.json"), "r")
+ f=open(get_path("quests.editor.json"), "r")
alltquests["Main"]=json.load(f)
f.close()
f=open(get_path("quests.json"), "w")
json.dump(alltquests, f, indent=1, separators=(',', ': '))
f.close()
pass
- "Discard changes":
+ "Continue editing":
pass
jump loop
|