unitframes: allow to disable specific unitframes

This commit is contained in:
shagu
2018-07-01 22:01:30 +02:00
parent 7a6d2a7e8d
commit bb1cc05d26
+9
View File
@@ -762,6 +762,15 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
f:UpdateFrameSize()
f:EnableScripts()
if f.config.visible == "1" then
pfUI.uf:RefreshUnit(f, "all")
f:EnableScripts()
f:UpdateFrameSize()
else
f:UnregisterAllEvents()
f:Hide()
end
table.insert(pfUI.uf.frames, f)
return f
end