Noninhouh 118 Posted May 22, 2013 Report Share Posted May 22, 2013 Existe alguma função para o .lua ou para o .otui que funcione como o $hover? tipo, eu to querendo que qd passe o mouse por cima a opacity seja 1.0 , e qd n esteja com o mouse em cima, a opacity seja 0.7 Link to comment https://xtibia.com/forum/topic/214864-hover-icon/ Share on other sites More sharing options...
0 Darckx13 26 Posted May 22, 2013 Report Share Posted May 22, 2013 n da pra usa o if hovered then setopacity? Link to comment https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1523784 Share on other sites More sharing options...
0 Noninhouh 118 Posted May 23, 2013 Author Report Share Posted May 23, 2013 (edited) n foi =/ fiz tipo assim: if hovered then audioButton:setOpacity(1.0) else audioButton:setOpacity(0.8) end Edited May 23, 2013 by Noninhouh Link to comment https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1523794 Share on other sites More sharing options...
0 BananaFight 196 Posted May 23, 2013 Report Share Posted May 23, 2013 Henrique: void UIWidget::onHoverChange(bool hovered) { callLuaField("onHoverChange", hovered); } só da connect nisso Link to comment https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1524106 Share on other sites More sharing options...
0 Darckx13 26 Posted May 23, 2013 Report Share Posted May 23, 2013 Banana explica melhor para que serve, assim vc não resolve so a duvida dele mas a de quem tiver a mesma duvida que ele e quem quiser usar de outras formas Link to comment https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1524108 Share on other sites More sharing options...
0 BananaFight 196 Posted May 23, 2013 Report Share Posted May 23, 2013 (edited) No int Adiciona : connect(LocalPlayer, { onHoverChange = onHoverChange }) e depois cria a função function onHoverChange(hovered) if hovered.. end Edited May 23, 2013 by BananaFight Link to comment https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1524121 Share on other sites More sharing options...
0 Noninhouh 118 Posted May 24, 2013 Author Report Share Posted May 24, 2013 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 More sharing options...
0 Slicer 1070 Posted May 24, 2013 Report Share Posted May 24, 2013 (edited) 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 ... Edited May 24, 2013 by Slicer Link to comment https://xtibia.com/forum/topic/214864-hover-icon/#findComment-1524159 Share on other sites More sharing options...
Question
Noninhouh 118
Existe alguma função para o .lua ou para o .otui que funcione como o $hover?
tipo, eu to querendo que qd passe o mouse por cima a opacity seja 1.0 , e qd n esteja com o mouse em cima, a opacity seja 0.7
Link to comment
https://xtibia.com/forum/topic/214864-hover-icon/Share on other sites
7 answers to this question
Recommended Posts