From 38d3d7d7ada11ef46582149ee5bcc10173b299b5 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 29 Apr 2022 00:18:15 +0200 Subject: [PATCH] actionbar: add support to use custom macro tooltip --- modules/actionbar.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 520e9859..ba677bb7 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -401,6 +401,12 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () return end + if not match then + -- add support to specify custom tooltips via: + -- /run --showtooltip SPELLNAME + _, _, match = string.find(line, '%-%-showtooltip (.+)') + end + if not match then _, _, match = string.find(line, '^/cast (.+)') end