summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-23 21:28:16 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-23 21:28:16 -0300
commitee47ffc71d56c00f1cb296068deec89c86293bea (patch)
tree8d2a27f92f7ec5fcada2de313c94aa9826986da3
parent08a6ad152ecc54919506b21089d25b4c5f133ca5 (diff)
downloadsdk-ee47ffc71d56c00f1cb296068deec89c86293bea.tar.gz
sdk-ee47ffc71d56c00f1cb296068deec89c86293bea.tar.bz2
sdk-ee47ffc71d56c00f1cb296068deec89c86293bea.tar.xz
sdk-ee47ffc71d56c00f1cb296068deec89c86293bea.zip
Sex can now be toggled as well.
-rw-r--r--ueditor.rpy7
1 files changed, 6 insertions, 1 deletions
diff --git a/ueditor.rpy b/ueditor.rpy
index d75bff6..a8d580c 100644
--- a/ueditor.rpy
+++ b/ueditor.rpy
@@ -66,7 +66,12 @@ screen units_editor():
$ uedit=allunitsbase[current]
- label _("%s %s %s" % (star_write(uedit["rare"]), uedit["name"], ifte(uedit["sex"], "(F)", "(M)")))
+ hbox:
+ label _("%s %s" % (star_write(uedit["rare"]), uedit["name"]))
+ null width 30
+ textbutton "%s" % ifte(uedit["sex"], "(F)", "(M)"):
+ action Function(ueditor, "sex", ifte(uedit["sex"],
+ 0, 1), True)
hbox:
spacing 10
#textbutton _("-") action Function(ueditor, "unit_id", -1)