move tooltip and messagebox to modules

This commit is contained in:
Eduardo Bart
2011-11-03 20:28:10 -02:00
parent a9bf1cee36
commit 6aadf896da
8 changed files with 38 additions and 15 deletions

View File

@@ -23,17 +23,7 @@ Button < UIButton
color: #999999
background-color: #ffffff88
ToolTipButton < UIButton
onHoverChange: |
function(self, hovered)
if hovered then
ToolTip.display(self:getStyle().tooltip)
else
ToolTip:hide()
end
end
TopButton < ToolTipButton
TopButton < UIButton
background-color: white
size: 26 25
text-translate: 0 0