mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
bind clock, fixes to waiting list
This commit is contained in:
@@ -19,8 +19,12 @@ function UIProgressBar:getPercent()
|
||||
return self.percent
|
||||
end
|
||||
|
||||
function UIProgressBar:getPercentPixels()
|
||||
return 100 / self:getWidth()
|
||||
end
|
||||
|
||||
function UIProgressBar:updateBackground()
|
||||
local width = math.max((self.percent * self:getWidth())/100, 1)
|
||||
local width = math.round(math.max((self.percent * self:getWidth())/100, 1))
|
||||
local height = self:getHeight()
|
||||
self:setBackgroundSize({width=width, height=height})
|
||||
end
|
||||
|
Reference in New Issue
Block a user