mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 19:30:49 +00:00
unitframes: add securefunc visibility change
This commit is contained in:
@@ -772,6 +772,8 @@ function pfUI.uf:EnableScripts()
|
|||||||
f:SetAttribute("unit", f.label .. f.id)
|
f:SetAttribute("unit", f.label .. f.id)
|
||||||
f:SetAttribute("type1", "target")
|
f:SetAttribute("type1", "target")
|
||||||
f:SetAttribute("type2", "showmenu")
|
f:SetAttribute("type2", "showmenu")
|
||||||
|
|
||||||
|
RegisterStateDriver(f, 'visibility', "show")
|
||||||
else
|
else
|
||||||
f:SetScript("OnClick", pfUI.uf.OnClick)
|
f:SetScript("OnClick", pfUI.uf.OnClick)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user