Frame.Event:LeftClick()

From Riftui Wiki

Jump to: navigation, search

This function is triggered when the left mouse button is both pressed and released inside the frame.

Contents

Signature

function frame.Event:LeftClick()
       ...
end

Parameters

None

Return Value

None

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
 
-- Overload the LeftClick function --
function frame.Event:LeftClick()
       -- Print out LeftClick! --
       print("LeftClick!")
end
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox