From bb88d537288c8bd6e215c9bebe1dbe76efc161af Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 23 Dec 2020 21:21:22 -0300 Subject: Be less wasteful in regards of space taken in unit screen --- ueditor.rpy | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/ueditor.rpy b/ueditor.rpy index c5a79fc..621aa15 100644 --- a/ueditor.rpy +++ b/ueditor.rpy @@ -83,6 +83,9 @@ screen units_editor(): #key_events True action input.enable add input + null width 180 + label _("(%d)" % uedit["unit_base_id"]): + text_size 24 hbox: spacing 10 label _("Name: ") @@ -98,7 +101,6 @@ screen units_editor(): label _("Max Lv. %d" % uedit["max_level"]) null height 25 - label _("Base ID %d" % uedit["unit_base_id"]) label _("Flavor text:") #label _(uedit["flavor"]) $ input=Input( @@ -134,15 +136,35 @@ screen units_editor(): text "None: 0\nCannot levelup: 1\nCannot party: 2\nEXP+: 4\nEvoMat: 8\nDouble GP: 16\nUnsellable: 32\nSuper EvoMat: 64" size 12 null height 25 - label _(".:: Active Skill ::.") - label _("ID %d" % uedit["skill_id"]) # TODO: Open skills.json and parse the IDs - null height 25 + label _(".:: Skills ::.") + hbox: + label _("Active ID: "): + text_size 20 + $ input=Input( + value=UEditorInputValue(uedit, "skill_id", None, "int", dp=True), + copypaste=False, + allow="0123456789", + length=6, + size=20) + button: + #key_events True + action input.enable + add input - label _(".:: Passive ::.") - label _("ID %d" % uedit["ability_id"]) - # TODO: Open skills.json and parse the IDs - null height 25 + hbox: + label _("Passive ID: "): + text_size 20 + $ input=Input( + value=UEditorInputValue(uedit, "ability_id", None, "int", dp=True), + copypaste=False, + allow="0123456789", + length=6, + size=20) + button: + #key_events True + action input.enable + add input # TODO: Loot, waves ########################################### -- cgit v1.2.3-60-g2f50