Closed sfmict closed 1 year ago
As far as I understand the RE code; this isn't a bug. You're not supposed to be able to call certain methods on unprotected frames from within the restricted environment - this includes IsShown, Hide, and Show.
The same error
local f = CreateFrame("BUTTON", nil, UIParent, "UIPanelButtonTemplate,SecureHandlerClickTemplate")
f:SetSize(128, 22)
f:ClearAllPoints()
f:SetPoint("TOPLEFT", (UIParent:GetWidth() - f:GetWidth()) / 2, (f:GetHeight() - UIParent:GetHeight()) / 2)
local f2 = CreateFrame("BUTTON", nil, UIParent, "UIPanelButtonTemplate")
f2:SetSize(128, 22)
f2:SetPoint("TOP", f, "BOTTOM")
f:SetFrameRef("f2", f2)
f:SetAttribute("_onclick", [[
local f2 = self:GetFrameRef("f2")
f2:CallMethod("Click")
]])
In combat, only protected frames can be used as frame handles in general, no matter what you try to do with them. This is not a new requirement, and not likely to go away. But since these are insecure frames, you can just CallMethod a function on your secure frame, and hand-off any insecure processing tothat.
hmm, if that's the case, thx for the reply, sorry to disturb, closed.
This error only occurs in combat in 3.4.3 and 10.1.7
Сode to check