last problem i promise, im trying to anchor frames to open bags as i create them.
if i set it explicitly to ContainerFrame1 then it works,
but then all the frames are anchored to the same bag i want to anchor each frame to its respective bag, anyone see where ive gone wrong?
Code:
for i = 1, NUM_CONTAINER_FRAMES do
local contname = "ContainerFrame"..i
local bagbg = CreateFrame("Frame", bagbg, contname)--ContainerFrame1)--this is the problem
bagbg:SetPoint("TOPRIGHT", contname, "TOPRIGHT", -5, -2)
bagbg:SetPoint("BOTTOMLEFT", contname, "BOTTOMLEFT", 5, 0)
bagbg:SetBackdrop( {
bgFile = BLANK_TEXTURE,
edgeFile = BLANK_TEXTURE,
tile = false, tileSize = 0, edgeSize = 1,
insets = { left = -1, right = -1, top = -1, bottom = -1 }
})
bagbg:SetBackdropColor( 0.3,0.3,0.3,0.8)
end