summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qeditor.rpy (renamed from editor.rpy)9
-rw-r--r--script.rpy4
2 files changed, 9 insertions, 4 deletions
diff --git a/editor.rpy b/qeditor.rpy
index 99ccc10..5a0809d 100644
--- a/editor.rpy
+++ b/qeditor.rpy
@@ -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
diff --git a/script.rpy b/script.rpy
index c990dfb..9adf878 100644
--- a/script.rpy
+++ b/script.rpy
@@ -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