Riftui

Riftui (https://www.riftui.com/forums/index.php)
-   Help/Support (https://www.riftui.com/forums/forumdisplay.php?f=3)
-   -   Mouse Over events (https://www.riftui.com/forums/showthread.php?t=219)

Zoc 02-09-12 10:21 PM

Mouse Over events
 
Hey,

I'm looking for a way to register OnMouseOver events on Texture object.

I'm willing to be able to see item information on the bag addon I'm trying to create ( http://www.riftui.com/downloads/info180-zBag.html ).

Thanks in advance! :)

adelea 02-10-12 01:40 AM

I think its the MouseIn and MouseOut events you need :

texFrame = UI.CreateFrame("Texture", "TextureFrame", context)
texFrame:SetTexture(...)

function texFrame.event:MouseIn()
print("Mouse over texture frame")
end

function texFrame.event:MouseOut()
print("Mouse left texture frame")
end

Zoc 02-10-12 03:58 AM

It works! Thank you! :D


All times are GMT -6. The time now is 03:41 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2022 MMOUI