From 207e51fc5b308d5ef967967ba2eec61a30a80057 Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 25 Sep 2019 18:49:25 +0200 Subject: healthbar doesn't have title anymore; made this with textbox --- asciifarm/client/display.py | 1 + asciifarm/client/layout.xml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/asciifarm/client/display.py b/asciifarm/client/display.py index a2c142e..fbcd34a 100644 --- a/asciifarm/client/display.py +++ b/asciifarm/client/display.py @@ -105,6 +105,7 @@ class Display: maxHealth = 0 self.getWidget("health").set_total(maxHealth) self.getWidget("health").set_filled(health) + self.getWidget("healthtitle").format({"filled": health, "total":maxHealth}) def showInfo(self, infostring): diff --git a/asciifarm/client/layout.xml b/asciifarm/client/layout.xml index bf176d7..f945382 100644 --- a/asciifarm/client/layout.xml +++ b/asciifarm/client/layout.xml @@ -1,7 +1,8 @@ - + Health ({filled}/{total}) + -- cgit