RiftSlider Frame

From Riftui Wiki

Jump to: navigation, search

A RiftSlider is a special type of Frame that renders a native Rift slider.

Contents

Creation

See UI.CreateFrame()

Methods

Inherits all functions from Frame and includes new methods:

Events

Inherits all Events from Frame and includes new events:

Example

-- Create our context
local context = UI.CreateContext("SampleContext")
-- Create our slider
local slider = UI.CreateFrame("RiftSlider", "SampleSlider", context)
-- Put the slider in the middle of the screen
slider:SetPoint("CENTER", UIParent, "CENTER")
-- When the state is changed, check the slider's position and respond accordingly.
function slider.Event:SliderChange ()
 print(slider:GetPosition())
end
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox