summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-29 22:04:35 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-29 22:04:35 -0300
commitc0317012d1e4be856becc1238436842fa69c4864 (patch)
treee7318b3c8969fb6cff618904f1fa71d718b012b0
parent58fabe77a6cd7770ef74884529f841ba107565f8 (diff)
downloadsdk-c0317012d1e4be856becc1238436842fa69c4864.tar.gz
sdk-c0317012d1e4be856becc1238436842fa69c4864.tar.bz2
sdk-c0317012d1e4be856becc1238436842fa69c4864.tar.xz
sdk-c0317012d1e4be856becc1238436842fa69c4864.zip
Increase scope of ParseEle and use it at Quest Editor
-rw-r--r--00_init.rpy16
-rw-r--r--qeditor.rpy2
-rw-r--r--ueditor.rpy16
3 files changed, 17 insertions, 17 deletions
diff --git a/00_init.rpy b/00_init.rpy
index 843be94..c43e4fc 100644
--- a/00_init.rpy
+++ b/00_init.rpy
@@ -27,6 +27,22 @@ init -3 python:
persistent.allfiles=[]
allfiles=[]
+ def ParseEle(ele):
+ if ele == 0:
+ return "Neutral"
+ elif ele == 1:
+ return "Fire"
+ elif ele == 2:
+ return "Water"
+ elif ele == 3:
+ return "Nature"
+ elif ele == 4:
+ return "Light"
+ elif ele == 5:
+ return "Shadow"
+ else:
+ return "ERROR (%d)" % ele
+
# Smart Print command
def stdout(message):
print(message)
diff --git a/qeditor.rpy b/qeditor.rpy
index 37cfe0a..3d5112b 100644
--- a/qeditor.rpy
+++ b/qeditor.rpy
@@ -174,7 +174,7 @@ screen quest_editor():
textbutton "{size=20}%d{/size}" % mob["sprite"] action None
hbox:
spacing 7
- textbutton "{size=20}Ele: %d{/size}" % mob["attribute"] action None
+ textbutton "{size=20}Ele: %s{/size}" % ParseEle(mob["attribute"]) action None
textbutton "{size=20}Boss: %s{/size}" % str(mob["boss"]) action Function(qeditor_input, "waves", wc-1, "bool", key3=mc-1, key4="boss")
null width 20
textbutton _("X Delete") action Function(qeditor_delete, "waves", wc-1, mc-1)
diff --git a/ueditor.rpy b/ueditor.rpy
index 45ff1f4..055de35 100644
--- a/ueditor.rpy
+++ b/ueditor.rpy
@@ -210,22 +210,6 @@ init python:
else:
return "ERROR (%d)" % job
- def ParseEle(ele):
- if ele == 0:
- return "Neutral"
- elif ele == 1:
- return "Fire"
- elif ele == 2:
- return "Water"
- elif ele == 3:
- return "Nature"
- elif ele == 4:
- return "Light"
- elif ele == 5:
- return "Shadow"
- else:
- return "ERROR (%d)" % ele
-
def RestartInteraction():
renpy.restart_interaction()
return