summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-23 17:30:25 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-23 17:30:25 -0300
commiteec76077b834a46d52a8f2f0ba141c0259655467 (patch)
tree17fae37921873ce9c510d2101d1abae29b349634
parentc9eadeb54626ab92498616086b828c7f8d71d629 (diff)
downloadsdk-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.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