Quantcast Mouse Over events - Riftui
Reply
Thread Tools Display Modes
Unread 02-09-12, 10:21 PM   #1
Zoc
Bomani Harbinger
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 6
Question 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!
Zoc is offline   Reply With Quote
Unread 02-10-12, 01:40 AM   #2
adelea
Claw of Regulos
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 22
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
adelea is offline   Reply With Quote
Unread 02-10-12, 03:58 AM   #3
Zoc
Bomani Harbinger
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 6
Thumbs up

It works! Thank you!
Zoc is offline   Reply With Quote
Reply

Go BackRiftui » AddOns, Layouts and Macros » Help/Support » Mouse Over events

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off