diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-23 17:30:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-23 17:30:25 -0300 |
commit | eec76077b834a46d52a8f2f0ba141c0259655467 (patch) | |
tree | 17fae37921873ce9c510d2101d1abae29b349634 | |
parent | c9eadeb54626ab92498616086b828c7f8d71d629 (diff) | |
download | sdk-eec76077b834a46d52a8f2f0ba141c0259655467.tar.gz sdk-eec76077b834a46d52a8f2f0ba141c0259655467.tar.bz2 sdk-eec76077b834a46d52a8f2f0ba141c0259655467.tar.xz sdk-eec76077b834a46d52a8f2f0ba141c0259655467.zip |
Better convention naming
-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
|