Frame:SetMouseoverUnit()

From Riftui Wiki

Jump to: navigation, search

Sets the mouseover unit id for the frame.

Contents

Signature

frame:SetMouseoverUnit(unitID)

Parameters

UnitID (UnitID) - the id of the unit you want the frame to mouseover

Return Value

None

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
-- Retrieves the player unit details --
local playerDetails = Inspect.Unit.Detail("player")
-- Set mouseover unit id --
frame:SetMouseoverUnit(playerDetails.id)
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox