Frame:SetAlpha()

From Riftui Wiki

Jump to: navigation, search

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

Contents

Signature

frame:SetAlpha(alpha)

Parameters

alpha (number) - A between 0 and 1.

Return Value

None

Example

local context = UI.CreateContext("SampleContext")
local frame = UI.CreateFrame("Frame", "SampleFrame", context)
-- Set alpha to 90% --
frame:SetAlpha(0.9)
-- Print the current alpha multiplier --
print(frame:GetAlpha())
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox