From 4bac79f0c5960a2f72b26d84d557bf413e2d706b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 23 Dec 2020 20:26:51 -0300 Subject: Allow editing name and flavor text. --- ueditor.rpy | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) 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"]) -- cgit v1.2.3-70-g09d2