I'm trying to make the button change when the mouse hovers over it — that part works, but the tooltip doesn't show up. Does anyone have any tips?
LUA:
function createShop()
if shop then return end
shop = g_ui.displayUI('shop')
shop:hide()
shopButton = modules.client_topmenu.addRightButton('shopButton', tr('Shop'), '/images/topbuttons/shop', toggle, false, 8)
shopButton.onHoverChange = function(self, hovered)
if hovered then
self:setIcon('/images/topbuttons/shop')
else
self:setIcon('/images/topbuttons/shop1')
end
end
connect(shop.categories, { onChildFocusChange = changeCategory })
end