From 308087ca5f6054d1b3d9c39e9cac984673a0449e Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 31 Dec 2019 11:30:17 +0100 Subject: [PATCH] actionbar: allow to hook into core functions --- modules/actionbar.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index a4a26b3b..6ac861a7 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -634,7 +634,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () end for id in pairs(updatecache) do - ButtonFullUpdate(buttoncache[id]) + pfUI.bars.ButtonFullUpdate(buttoncache[id]) updatecache[id] = nil end @@ -1057,6 +1057,9 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () -- create actionbars pfUI.bars = bars + pfUI.bars.update = updatecache + pfUI.bars.buttons = buttoncache + pfUI.bars.ButtonFullUpdate = ButtonFullUpdate pfUI.bars.UpdateGrid = function(self, state, typ) if not typ then