diff options
| author | troido <troido@protonmail.com> | 2018-09-09 14:52:59 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-09 14:52:59 +0200 |
| commit | 9fe119a95b4cd8ab23ea30db9a72645063da264f (patch) | |
| tree | 82c4ee67fb43cfb31a475ae598ac3abf902b307e /asciifarm/client/display/screen.py | |
| parent | 5bd11fd1914ea6744852b78047b207e521a304f1 (diff) | |
switchable menus are now somewhat usable and presentable
Diffstat (limited to 'asciifarm/client/display/screen.py')
| -rw-r--r-- | asciifarm/client/display/screen.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/asciifarm/client/display/screen.py b/asciifarm/client/display/screen.py index 31b50c8..438e818 100644 --- a/asciifarm/client/display/screen.py +++ b/asciifarm/client/display/screen.py @@ -43,13 +43,11 @@ class Screen: healthY = 0 healthH = self._limitHeight(2, healthY) - groundY = healthY + healthH - groundH = self._limitHeight(6, groundY) - invY = groundY + groundH - invH = self._limitHeight(9, invY) - eqY = invY + invH - eqH = self._limitHeight(5, eqY) - infoY = eqY + eqH + indexY = healthY + healthH + indexH = self._limitHeight(4, indexY) + listY = indexY + indexH + 1 + listH = self._limitHeight(12, listY) + infoY = listY + listH infoH = self._limitHeight(20, infoY) self.windows = { @@ -58,9 +56,10 @@ class Screen: "textinput": self.makeWin(0, inputY, sideX - 1, inputH), "health": self.makeWin(sideX, healthY, sideW, healthH), - "ground": self.makeWin(sideX, groundY, sideW, invH), - "inventory": self.makeWin(sideX, groundY, sideW, invH), - "equipment": self.makeWin(sideX, eqY, sideW, eqH), + "switch": self.makeWin(sideX, indexY, sideW, indexH), + "ground": self.makeWin(sideX, listY, sideW, listH), + "inventory": self.makeWin(sideX, listY, sideW, listH), + "equipment": self.makeWin(sideX, listY, sideW, listH), "info": self.makeWin(sideX, infoY, sideW, infoH) } |
