diff options
| author | troido <troido@protonmail.com> | 2018-09-05 12:52:06 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-05 12:52:06 +0200 |
| commit | c273d75cd7c8483f9a0f61e4e9ebe3066de48b4d (patch) | |
| tree | f14120d4c90fb08aec13770dbb5e37cb0cd340fb /asciifarm/client/display/screen.py | |
| parent | 7a11c5be7b4627c38945e55e25552bd5de728967 (diff) | |
return item in devtools and improve spacing
Diffstat (limited to 'asciifarm/client/display/screen.py')
| -rw-r--r-- | asciifarm/client/display/screen.py | 3 |
1 files changed, 3 insertions, 0 deletions
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), |
