summaryrefslogtreecommitdiff
path: root/ueditor.rpy
diff options
context:
space:
mode:
Diffstat (limited to 'ueditor.rpy')
-rw-r--r--ueditor.rpy27
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"])