From c273d75cd7c8483f9a0f61e4e9ebe3066de48b4d Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 5 Sep 2018 12:52:06 +0200 Subject: return item in devtools and improve spacing --- asciifarm/client/display/screen.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'asciifarm/client/display') diff --git a/asciifarm/client/display/screen.py b/asciifarm/client/display/screen.py index 605eca5..7b609c4 100644 --- a/asciifarm/client/display/screen.py +++ b/asciifarm/client/display/screen.py @@ -35,10 +35,12 @@ class Screen: sideW = 20 sideX = width-sideW + msgH = clamp(height // 5, 3, 5) msgY = height - msgH-1 inputH = 1 inputY = msgY + msgH + healthY = 0 healthH = self._limitHeight(2, healthY) groundY = healthY + healthH @@ -54,6 +56,7 @@ class Screen: "field": self.makeWin(0, 0, sideX - 1, msgY), "msg": self.makeWin(0, msgY, sideX - 1, msgH), "textinput": self.makeWin(0, inputY, sideX - 1, inputH), + "health": self.makeWin(sideX, healthY, sideW, healthH), "ground": self.makeWin(sideX, groundY, sideW, groundH), "inventory": self.makeWin(sideX, invY, sideW, invH), -- cgit