Add value field in Bar class

This commit is contained in:
Michał Czekański 2020-04-06 00:06:19 +02:00
parent 73ef580489
commit 30896285db

View File

@ -13,6 +13,7 @@ class UiBar(UiElement):
self.outlineColor = outlineColor self.outlineColor = outlineColor
self.outlineThickness = outlineThickness self.outlineThickness = outlineThickness
self.filledBarColor = filledBarColor self.filledBarColor = filledBarColor
self.value = initialFilledPercent
self.__genBar__() self.__genBar__()
@ -27,4 +28,5 @@ class UiBar(UiElement):
def updateFill(self, filledPercent): def updateFill(self, filledPercent):
self.filledPercent = filledPercent / 100 self.filledPercent = filledPercent / 100
self.value = filledPercent
self.__genBar__() self.__genBar__()