NkGenie - Rift Button

From Riftui Wiki

Jump to: navigation, search

The nkExtRiftButton widget is an extension of the standard Rift API button. It doesn't really any additional functionality so it's main advantage is that it's definition fits into the rest of the nkGenie usage and reduces the number of lines of code for definition.

UI.CreateFrame('nkExtRiftButton', name, parent, {})

Supported parameters

The following parameters are supported for UI:CreateFrame() and frame:update()

Parameter Description
width The width of the button
label The label of the button
func The function to be called if the button is clicked. Use format: func = function () .. end
anchors The position of the button widget. See How to position widgets
layer The layer of the button versus parent

Supported Methods

getElement()

This method retrieves the underlying Rift UI element.

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox