Jump to content

Question

7 answers to this question

Recommended Posts

  • 0

banana, n foi tb =/

 

eu colokei assim:

 

function onHoverChange(hovered)

if hovered then

healthInfoButton:setOpacity(1.0)

else

healthInfoButton:setOpacity(0.8)

end

end

 

 

E colokei \/ no init e no terminate

onHoverChange = onHoverChange
Link to comment
https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1524155
Share on other sites

  • 0

connect(UIItem, { onHoverChange = BotModule.checkItem })

 

function BotModule.checkItem(widget, hovered)
 if not CandyBot.isEnabled() then
return
 end

 local widget = widget or g_ui.getHoveredWidget()
 if not widget then
g_tooltip.hide()
return
 end
 if hovered == nil then
hovered = true
 end

 local item = widget:getItem()
 if item and hovered and g_keyboard.isKeyPressed('Insert') then
BotModule.showItemInfo(item)
 else
g_tooltip.hide()
 end
end

 

quer um concelho? baixa o notepad++ e começa a usar a opçao Localizar/Localizar em Arquivos ... :p

Edited by Slicer
Link to comment
https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1524159
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...