View Single Post
06-27-19, 01:43 AM   #24
Zam89
A Deviate Faerie Dragon
Join Date: Mar 2019
Posts: 18
Hi have also a new error with this and I do not know why.

Code:
7x FrameXML\ContainerFrame.lua:987: Action[SetPoint] failed because[SetPoint would result in anchor family connection]: attempted from: ContainerFrame1Item1:SetPoint.
[C]: in function `SetPoint'
FrameXML\ContainerFrame.lua:987: in function `ContainerFrame_GenerateFrame'
FrameXML\ContainerFrame.lua:118: in function `ToggleBag'
FrameXML\ContainerFrame.lua:140: in function `ToggleBackpack'
FrameXML\ContainerFrame.lua:364: in function `OpenBackpack'
FrameXML\ContainerFrame.lua:1546: in function `ToggleAllBags'
[string "OPENALLBAGS"]:1: in function <[string "OPENALLBAGS"]:1>
It happend to the Bags:
I can move the Bags around and after I have moved the Bags and open them again the error Pops up.


This is where we set the ContainerFrame1Item1:
GwBagFrame is the Frame (XML)


Code:
local gwbf = GwBagFrame
local cfm = "ContainerFrame" .. tostring(BAG_INDEX)
local slot = _G[cfm .. "Item" .. i]
slot:ClearAllPoints()
slot:SetFrameLevel(43)
slot:SetPoint("TOPLEFT", gwbf, "TOPLEFT", x, -y)
slot:SetPoint("TOPRIGHT", gwbf, "TOPLEFT", x + BAG_ITEM_SIZE, -y)
slot:SetPoint("BOTTOMLEFT", gwbf, "TOPLEFT", x, -y - BAG_ITEM_SIZE)
slot:SetPoint("BOTTOMRIGHT", gwbf, "TOPLEFT", x + BAG_ITEM_SIZE, -y - BAG_ITEM_SIZE)
Any Idea why this happend only after draging the Frame?
  Reply With Quote