Add value field in Bar class
This commit is contained in:
parent
73ef580489
commit
30896285db
@ -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__()
|
||||||
|
Loading…
Reference in New Issue
Block a user