Frame:GetAlpha()

From Riftui Wiki

Jump to: navigation, search

Returns the alpha multiplier for the frame. 0 is transparent, 1 is opaque.

Contents

Signature

alpha = frame:GetAlpha()

Parameters

None

Return Value

alpha (number) - number between 0 and 1.

Example

-- Print out Context bottom Y position --
local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
-- Print the current alpha multiplier --
print(frame:GetAlpha())
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox