diff options
| author | troido <troido@protonmail.com> | 2018-09-06 18:51:15 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-06 18:51:15 +0200 |
| commit | 5bd11fd1914ea6744852b78047b207e521a304f1 (patch) | |
| tree | d60947313eb14470be2e91b1f4975ab933059278 /asciifarm/client/display/screen.py | |
| parent | 6c3ff03ab92c2d4493355fdbb31a7ababbba97f4 (diff) | |
made menus switchable so not all menus need to be in view all the time
Diffstat (limited to 'asciifarm/client/display/screen.py')
| -rw-r--r-- | asciifarm/client/display/screen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/asciifarm/client/display/screen.py b/asciifarm/client/display/screen.py index 7b609c4..31b50c8 100644 --- a/asciifarm/client/display/screen.py +++ b/asciifarm/client/display/screen.py @@ -58,11 +58,12 @@ class Screen: "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), + "ground": self.makeWin(sideX, groundY, sideW, invH), + "inventory": self.makeWin(sideX, groundY, sideW, invH), "equipment": self.makeWin(sideX, eqY, sideW, eqH), "info": self.makeWin(sideX, infoY, sideW, infoH) } + def makeWin(self, x, y, width, height): if width < 1 or height < 1: |
