From e5962f67f90b85fdbcde8da348d471ef7a4db2cd Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 9 Sep 2018 17:20:40 +0200 Subject: changed selector for menus. All inventory menus now use the same list --- asciifarm/client/display/screen.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'asciifarm/client/display/screen.py') diff --git a/asciifarm/client/display/screen.py b/asciifarm/client/display/screen.py index 438e818..666d3bc 100644 --- a/asciifarm/client/display/screen.py +++ b/asciifarm/client/display/screen.py @@ -50,6 +50,8 @@ class Screen: infoY = listY + listH infoH = self._limitHeight(20, infoY) + lists = self.makeWin(sideX, listY, sideW, listH) + self.windows = { "field": self.makeWin(0, 0, sideX - 1, msgY), "msg": self.makeWin(0, msgY, sideX - 1, msgH), @@ -57,9 +59,9 @@ class Screen: "health": self.makeWin(sideX, healthY, sideW, healthH), "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), + "ground": lists, + "inventory": lists, + "equipment": lists, "info": self.makeWin(sideX, infoY, sideW, infoH) } -- cgit