mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 12:30:50 +00:00
unitframes: add proper visibility condition for tbc
This commit is contained in:
+1
-2
@@ -772,8 +772,7 @@ 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', string.format("[target=%s%s,exists] show; hide", f.label, f.id))
|
||||||
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