diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-30 21:03:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-30 21:03:53 -0300 |
commit | c09cbde831245f44d52f1e44f29d7583a51d2d7c (patch) | |
tree | a39aed452784c570c0bc4a6e8ca1f0bac627da90 | |
parent | 4097dae7654f6ce691e9eaa3c355824e440b66fd (diff) | |
download | sdk-c09cbde831245f44d52f1e44f29d7583a51d2d7c.tar.gz sdk-c09cbde831245f44d52f1e44f29d7583a51d2d7c.tar.bz2 sdk-c09cbde831245f44d52f1e44f29d7583a51d2d7c.tar.xz sdk-c09cbde831245f44d52f1e44f29d7583a51d2d7c.zip |
Allocate the space more efficiently; This is not a mobile app.
-rw-r--r-- | qeditor.rpy | 128 |
1 files changed, 67 insertions, 61 deletions
diff --git a/qeditor.rpy b/qeditor.rpy index ba1a641..393034a 100644 --- a/qeditor.rpy +++ b/qeditor.rpy @@ -67,23 +67,27 @@ screen quest_editor(): $ qedit=allquests[current] $ qreq=qedit["requeriment"] - label _("Quest %d" % (qedit["quest_id"])) hbox: - spacing 10 - textbutton _("-") action Function(qeditor, "quest_id", -1) - label ("%d" % qedit["quest_id"]) - textbutton _("+") action Function(qeditor, "quest_id", 1) - null height 25 - - - ########################################### - label _("Requeriment") - hbox: - spacing 10 - textbutton _("-") action Function(qeditor, "requeriment", -1) - label ("%d" % qedit["requeriment"]) - textbutton _("+") action Function(qeditor, "requeriment", 1) - null height 15 + spacing 128 + vbox: + label _("Quest %d" % (qedit["quest_id"])) + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "quest_id", -1) + label ("%d" % qedit["quest_id"]) + textbutton _("+") action Function(qeditor, "quest_id", 1) + null height 25 + + + vbox: + ########################################### + label _("Requeriment") + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "requeriment", -1) + label ("%d" % qedit["requeriment"]) + textbutton _("+") action Function(qeditor, "requeriment", 1) + null height 15 ########################################### @@ -100,25 +104,58 @@ screen quest_editor(): null height 15 - ########################################### - label _("Cost") hbox: - spacing 10 - textbutton _("-") action Function(qeditor, "cost", -1) - label _("%d" % qedit["cost"]) - textbutton _("+") action Function(qeditor, "cost", 1) + spacing 128 + vbox: + ########################################### + label _("Cost") + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "cost", -1) + label _("%d" % qedit["cost"]) + textbutton _("+") action Function(qeditor, "cost", 1) + null height 15 + + + vbox: + ########################################### + label _("Flags") + hbox: + spacing 10 + textbutton _("-") action Function(qeditor, "flags", -1) + label _("%d" % qedit["flags"]) + textbutton _("+") action Function(qeditor, "flags", 1) + text "None: 0\nClear Gems: 1\nTutorial Gems: 2\nSpecial: 4\nFirst Loot: 8\nDouble XP: 16\nDouble GP: 32" size 12 null height 15 + ########################################### - label _("Flags") - hbox: - spacing 10 - textbutton _("-") action Function(qeditor, "flags", -1) - label _("%d" % qedit["flags"]) - textbutton _("+") action Function(qeditor, "flags", 1) - text "None: 0\nClear Gems: 1\nTutorial Gems: 2\nSpecial: 4\nFirst Loot: 8\nDouble XP: 16\nDouble GP: 32" size 12 - null height 15 + label _("Waves") + vbox: + spacing 0 + $ wc=0 + null height 10 + for wave in qedit["waves"]: + $wc+=1 + label _("{size=22}Wave %d{/size}" % wc) + $ mc=0 + for mob in wave: + $mc+=1 + label _("{size=20}%s{/size}" % mob["name"]) + textbutton "{size=20}%d{/size}" % mob["sprite"] action None + hbox: + spacing 7 + textbutton "{size=20}Ele: %s{/size}" % ParseEle(mob["attribute"]) action Function(qeditor_input, "waves", wc-1, "element", key3=mc-1, key4="attribute") + 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) + null height 20 + textbutton "{size=22}"+_("Add Monster")+"{/size}" action Function(qeditor_addmonster, wc) + textbutton "{size=22}"+_("Delete Wave")+"{/size}" action Function(qeditor_delete, "waves", wc-1) + null height 20 + null height 20 + textbutton _("Add Wave") action Function(qeditor_addwave) ########################################### @@ -157,37 +194,6 @@ screen quest_editor(): textbutton _("Add Loot") action Function(qeditor_addloot) null height 15 - - ########################################### - label _("Waves") - vbox: - spacing 0 - $ wc=0 - null height 10 - for wave in qedit["waves"]: - $wc+=1 - label _("{size=22}Wave %d{/size}" % wc) - $ mc=0 - for mob in wave: - $mc+=1 - label _("{size=20}%s{/size}" % mob["name"]) - textbutton "{size=20}%d{/size}" % mob["sprite"] action None - hbox: - spacing 7 - textbutton "{size=20}Ele: %s{/size}" % ParseEle(mob["attribute"]) action Function(qeditor_input, "waves", wc-1, "element", key3=mc-1, key4="attribute") - 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) - null height 20 - textbutton "{size=22}"+_("Add Monster")+"{/size}" action Function(qeditor_addmonster, wc) - textbutton "{size=22}"+_("Delete Wave")+"{/size}" action Function(qeditor_delete, "waves", wc-1) - null height 20 - null height 20 - text "Fire: 1 Water: 2\nNature: 3 Light: 4\nDark: 5" size 12 - textbutton _("Add Wave") action Function(qeditor_addwave) - - - # TODO: Loot, waves ########################################### null height 40 hbox: |