mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +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("type1", "target")
|
||||
f:SetAttribute("type2", "showmenu")
|
||||
|
||||
RegisterStateDriver(f, 'visibility', "show")
|
||||
RegisterStateDriver(f, 'visibility', string.format("[target=%s%s,exists] show; hide", f.label, f.id))
|
||||
else
|
||||
f:SetScript("OnClick", pfUI.uf.OnClick)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user