summaryrefslogtreecommitdiff
path: root/asciifarm/client/display/screen.py
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2018-09-09 17:20:40 +0200
committertroido <troido@protonmail.com>2018-09-09 17:20:40 +0200
commite5962f67f90b85fdbcde8da348d471ef7a4db2cd (patch)
tree21c4df2dcc48128612b7be95435326a4a7f9ff84 /asciifarm/client/display/screen.py
parent9fe119a95b4cd8ab23ea30db9a72645063da264f (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.py8
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)
}