diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-23 20:26:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-23 20:26:51 -0300 |
commit | 4bac79f0c5960a2f72b26d84d557bf413e2d706b (patch) | |
tree | e190574b20f8f4457f359729d0b1f8c153f010d1 | |
parent | 60158b29f7077466032d099c3d387aa0ff3a2efa (diff) | |
download | sdk-4bac79f0c5960a2f72b26d84d557bf413e2d706b.tar.gz sdk-4bac79f0c5960a2f72b26d84d557bf413e2d706b.tar.bz2 sdk-4bac79f0c5960a2f72b26d84d557bf413e2d706b.tar.xz sdk-4bac79f0c5960a2f72b26d84d557bf413e2d706b.zip |
Allow editing name and flavor text.
-rw-r--r-- | ueditor.rpy | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/ueditor.rpy b/ueditor.rpy index 34e6620..f6c4b8f 100644 --- a/ueditor.rpy +++ b/ueditor.rpy @@ -83,11 +83,36 @@ screen units_editor(): #key_events True action input.enable add input + hbox: + spacing 10 + #textbutton _("-") action Function(ueditor, "unit_id", -1) + #label ("%d" % uedit["unit_id"]) + #textbutton _("+") action Function(ueditor, "unit_id", 1) + #def __init__(self, variable, key1, key2, inpu="int", key3=None, key4=None): + label _("Name: ") + $ input=Input( + value=UEditorInputValue(uedit, "name", None, "str", dp=True), + copypaste=True, + allow="qwertyuiopasdfghjklçzxcvbnm QWERTYUIOPASDFGHJKLÇZXCVBNM1234567890-+=!()", + length=32) + button: + #key_events True + action input.enable + add input null height 25 label _("Base ID %d" % uedit["unit_base_id"]) label _("Flavor text:") - label _(uedit["flavor"]) + #label _(uedit["flavor"]) + $ input=Input( + value=UEditorInputValue(uedit, "flavor", None, "str", dp=True), + copypaste=True, + #allow="qwertyuiopasdfghjklçzxcvbnm QWERTYUIOPASDFGHJKLÇZXCVBNM1234567890-+=!()", + length=512) + button: + #key_events True + action input.enable + add input null height 25 label _("HP %d" % uedit["hp"]) |