mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
implement button tooltips on top menu
This commit is contained in:
@@ -23,7 +23,17 @@ Button < UIButton
|
||||
color: #999999
|
||||
background-color: #ffffff88
|
||||
|
||||
TopButton < UIButton
|
||||
ToolTipButton < UIButton
|
||||
onHoverChange: |
|
||||
function(self, hovered)
|
||||
if hovered then
|
||||
ToolTip.display(self:getStyle().tooltip)
|
||||
else
|
||||
ToolTip:hide()
|
||||
end
|
||||
end
|
||||
|
||||
TopButton < ToolTipButton
|
||||
background-color: white
|
||||
size: 26 25
|
||||
text-translate: 0 0
|
||||
|
Reference in New Issue
Block a user