Make Button update regional

This commit is contained in:
NiLuJe
2014-11-11 03:03:25 +01:00
parent 39244aa0cb
commit 7a812ff86d
2 changed files with 3 additions and 1 deletions

View File

@@ -153,6 +153,9 @@ end
function Button:onTapSelectButton()
if self.enabled and self.callback then
self[1].invert = true
UIManager.update_regions_func = function()
return {self[1].dimen}
end
UIManager:setDirty(self.show_parent, "partial")
UIManager:scheduleIn(0.1, function()
self.callback()

View File

@@ -43,7 +43,6 @@ function IconButton:onTapClickButton()
UIManager.update_regions_func = function()
return {self[1].dimen}
end
UIManager:setDirty(self.show_parent, "partial")
-- make sure button reacts before doing callback
UIManager:scheduleIn(0.1, function()