Wowpedia
Advertisement
Wowpedia
240,483
pages

Checks if mouse is over a given region.

isOver = Region:IsMouseOver([top, bottom, left, right])

Arguments

top 
Number (optional) - Top offset; positive values extend the region for which this function returns true upward, defaults to 0.
bottom 
Number (optional) - Bottom offset; negative values extend the region for which this function returns true downward, defaults to 0.
left 
Number (optional) - Left offset; negative values extend the region for which this function returns true towards the left, defaults to 0.
right 
Number (optional) - Right offset; positive values extend the region for which this function returns true towards the right, defaults to 0.

Returns

isOver 
Boolean - True if the mouse cursor is currently over the region (as modified by the offset arguments); false otherwise.
Advertisement