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__()