From 70df24894d1cb0f2897442c64a3b7e460ed6ff78 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Tue, 30 Jan 2024 09:08:20 +0200 Subject: Adding level-info on statusline. --- tui/tui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tui/tui.py') diff --git a/tui/tui.py b/tui/tui.py index 3369a61..5514ea3 100644 --- a/tui/tui.py +++ b/tui/tui.py @@ -42,7 +42,7 @@ class Tui(): if self.suppress: self.draw = SuppressDraw() else: - self.draw = AnsiDraw(height=self.height) + self.draw = AnsiDraw(height=self.height, name=self.level_name) def matrix_selector(self, matrix, x, y): """ valinta matriisita """ @@ -78,7 +78,7 @@ class Tui(): self.draw.matrix(matrix, x, y) self.draw.status_line( f"{self.level_name}: " + - f"{'K' if self.suppress else 'Peli ohitse! Kuolit!':<30}" + "K " if self.suppress else f"{'Kuolit!':<30}" ) self.kbd.read_action() @@ -87,7 +87,7 @@ class Tui(): self.draw.matrix(matrix, x, y) self.draw.status_line( f"{self.level_name}: " + - f"{'V' if self.suppress else 'Peli ohitse! Voitit!':<30}" + "V " if self.suppress else "{'Voitit!':<30}" ) self.kbd.read_action() -- cgit v1.2.3