From ee20ac32148000c631ba3bf5ca658a90d4056530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Mon, 6 Apr 2020 00:55:43 +0200 Subject: [PATCH] Add appending time stamps before console lines --- src/ui/Ui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/Ui.py b/src/ui/Ui.py index 98d26ee..a2b63c1 100644 --- a/src/ui/Ui.py +++ b/src/ui/Ui.py @@ -66,19 +66,19 @@ class Ui(): consoleLines = [] if self.healthBar.value != statistics.hp: self.healthBar.updateFill(statistics.hp) - consoleLines.append("Health: " + str(statistics.hp)) + consoleLines.append(self.timer.getPrettyTime() + " - Health: " + str(statistics.hp)) if self.hungerBar.value != statistics.hunger: self.hungerBar.updateFill(statistics.hunger) - consoleLines.append("Hunger: " + str(statistics.hunger)) + consoleLines.append(self.timer.getPrettyTime() + " - Hunger: " + str(statistics.hunger)) if self.staminaBar.value != statistics.stamina: self.staminaBar.updateFill(statistics.stamina) - consoleLines.append("Stamina: " + str(statistics.stamina)) + consoleLines.append(self.timer.getPrettyTime() + " - Stamina: " + str(statistics.stamina)) if self.thirstBar.value != statistics.thirst: self.thirstBar.updateFill(statistics.thirst) - consoleLines.append("Stamina: " + str(statistics.thirst)) + consoleLines.append(self.timer.getPrettyTime() + " - Stamina: " + str(statistics.thirst)) if len(consoleLines) > 0: self.console.addLinesToConsoleAndScrollToDisplayThem(consoleLines)