From 5bd11fd1914ea6744852b78047b207e521a304f1 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 6 Sep 2018 18:51:15 +0200 Subject: made menus switchable so not all menus need to be in view all the time --- asciifarm/client/display/screen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'asciifarm/client/display/screen.py') 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: -- cgit