shadow properties

This commit is contained in:
airstruck
2015-11-02 23:38:51 -05:00
parent f436093380
commit 997f9c8d12
103 changed files with 88 additions and 62 deletions

View File

@@ -1,5 +1,4 @@
return function (self)
self.value = 0
self.flow = 'x' -- TODO: support vertical progress?
@@ -8,8 +7,14 @@ return function (self)
width = 0,
}
self:onReshape(function (event)
self:onChange(function ()
self:reshape()
end)
self:onReshape(function ()
local x1, y1, x2, y2 = self:getRectangle(true, true)
bar.width = self.value * (x2 - x1)
local min = bar.minimumWidth
x1 = x1 + min
bar.width = self.value * (x2 - x1) + min
end)
end