Originally Posted by Spyro
Didn't know the backdrop borders have parentkeys.
Do the corners have parentkeys too?
Currently I'm accesing them with GetRegions() lol.
|
These are the default names:
TopLeftCorner
TopRightCorner
BottomLeftCorner
BottomRightCorner
TopEdge
BottomEdge
LeftEdge
RightEdge
Center
However, the pieces are accessed via:
Lua Code:
local function GetNineSlicePiece(container, pieceName)
if container.GetNineSlicePiece then
local piece = container:GetNineSlicePiece(pieceName);
if piece then
return piece, true;
end
end
local piece = container[pieceName];
if piece then
return piece, true;
else
piece = container:CreateTexture()
container[pieceName] = piece;
return piece, false;
end
end
The only two places I found using GetNineSlicePiece were for Blizzard_BFAMissionUI and Blizzard_CovenantMissionUI which had keys:
TopLeftCorner
TopRightCorner
BotLeftCorner
BotRightCorner
TopBorder
BottomBorder
LeftBorder
RightBorder