-
Notifications
You must be signed in to change notification settings - Fork 24
Definitions
Tim West edited this page Jan 22, 2018
·
3 revisions
Aurora has its own drop-in replacement for Blizzards frame backdrop API. It uses the same arguments as the original, but with three additional methods:
frame:GetBackdropBorderLayer()frame:GetBackdropTexture(texture)frame:SetBackdropBorderLayer(layer, sublevel)
SetBackdropBorderLayer allows you to adjust the texture layer and sublevel that the backdrop border is rendered on.
GetBackdropTexture provides access to the underlying textures that make up the backdrop. texture is a string of value "l", "r", "t", and "b" for each side, "tl", "tr", "bl", and "br" for the corners, and "bg" for the background.
All colors in Aurora are defined as tables using the ColorMixin. While using the mixin is not required, all color tables must follow this structure:
local t = {
r = 0, -- Number: 0 - 1
g = 1, -- Number: 0 - 1
b = 1, -- Number: 0 - 1
a = 1, -- Number: 0 - 1 (optional)
colorStr = "ff00ffff", -- String: argb hex (optional)
}