adapt widgets to new refresh/repaint API

This commit is contained in:
Hans-Werner Hilse
2014-11-30 00:12:00 +00:00
parent 229c5ad61c
commit 82c26b1f18
24 changed files with 127 additions and 93 deletions

View File

@@ -154,16 +154,16 @@ function Button:onTapSelectButton()
if self.enabled and self.callback then
UIManager:scheduleIn(0.0, function()
self[1].invert = true
UIManager.update_regions_func = function()
return {self[1].dimen}
end
UIManager.repaint_all = true -- FIXME: Why?
UIManager:setDirty(self.show_parent, "partial")
UIManager:setDirty(self.show_parent, function()
return "partial", self[1].dimen
end)
end)
UIManager:scheduleIn(0.1, function()
self.callback()
self[1].invert = false
UIManager:setDirty(self.show_parent, "partial")
UIManager:setDirty(self.show_parent, function()
return "partial", self[1].dimen
end)
end)
end
return true