UI.CreateFrame()

From Riftui Wiki

Jump to: navigation, search

Creates a new frame. Frames are the blocks of which all addon UIs are made. Any frames must have a context to be drawn in and a parent. You have to create a context before you can draw any frames. See UI.CreateContext().

Contents

Signature

frame = UI.CreateFrame(type, name, parent)

Parameters:

Return Value

frame (frame) - A reference to the newly created frame.

Example:

local context = UI.CreateContext("Context")
local frame = UI.CreateFrame("Frame", "MyFrame", context)
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox