From 0fc653795096ded3e6eac7a09a5ad8e5fb5202a7 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 18 Jul 2019 20:55:08 +0200 Subject: [PATCH] actionbar: set tbc visibility states for pet bar --- modules/actionbar.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index f1084ad3..8130c3ba 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -1135,6 +1135,10 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () -- update to the current page bars[1]:SetAttribute("state", bars[1]:GetAttribute("state-page")) + + -- set state driver for pet bars + bars[12]:SetAttribute("unit", "pet") + RegisterStateDriver(bars[12], 'visibility', "[pet] show; hide") end -- handle drag-drop grid