Added logs to the layout, clear logs on new game (tests still aren't fixed)

This commit is contained in:
Nicolas Margulies
2020-11-19 12:55:06 +01:00
parent 6e71146aa2
commit 589f825765
4 changed files with 13 additions and 5 deletions

View File

@ -47,7 +47,9 @@ class DisplayManager:
self.mapdisplay.refresh(0, 0, self.rows * 4 // 5, self.cols,
resize_pad=False)
self.statsdisplay.refresh(self.rows * 4 // 5, 0,
self.rows // 5, self.cols)
self.rows // 10, self.cols)
self.logsdisplay.refresh(self.rows * 9 // 10, 0,
self.rows // 10, self.cols)
if self.game.state == GameMode.MAINMENU:
self.mainmenudisplay.refresh(0, 0, self.rows, self.cols)
if self.game.state == GameMode.SETTINGS: