From 30896285db0165229244046c57d44a5c71ed1ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Mon, 6 Apr 2020 00:06:19 +0200 Subject: [PATCH] Add value field in Bar class --- src/ui/UiBar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/UiBar.py b/src/ui/UiBar.py index 2112573..8475395 100644 --- a/src/ui/UiBar.py +++ b/src/ui/UiBar.py @@ -13,6 +13,7 @@ class UiBar(UiElement): self.outlineColor = outlineColor self.outlineThickness = outlineThickness self.filledBarColor = filledBarColor + self.value = initialFilledPercent self.__genBar__() @@ -27,4 +28,5 @@ class UiBar(UiElement): def updateFill(self, filledPercent): self.filledPercent = filledPercent / 100 + self.value = filledPercent self.__genBar__()