diff options
| author | troido <troido@protonmail.com> | 2018-09-09 17:20:40 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-09 17:20:40 +0200 |
| commit | e5962f67f90b85fdbcde8da348d471ef7a4db2cd (patch) | |
| tree | 21c4df2dcc48128612b7be95435326a4a7f9ff84 /asciifarm/client/display/screen.py | |
| parent | 9fe119a95b4cd8ab23ea30db9a72645063da264f (diff) | |
changed selector for menus. All inventory menus now use the same list
Diffstat (limited to 'asciifarm/client/display/screen.py')
| -rw-r--r-- | asciifarm/client/display/screen.py | 8 |
1 files changed, 5 insertions, 3 deletions
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) } |
