HeroLib

HeroLib

2M Downloads

Integration with Bartender

Colorado4Wheeler opened this issue ยท 3 comments

commented

I was digging into the KeyBindings.lua code for the HRLib and see there appears to be some kind of support for Bartender but it doesn't seem like there's much - just one button (by the looks of the code) plus none of my BT key binds show up. Is there something extra I need to do to get my BT key binds to be visible in HR? I've keybound a number of bars and icons in BT and have used it for years so I would love to be able to utilize that.

commented

An update on this...

I commented out the entire bartender IF statement and it works but not when you load the add-on, only when I drag something on a Bartender bar (even if I just put it right back where it came from) as if the drag action forces a refresh where I can now see the keybind.

Now my setup is maybe different than anticipated as I don't key bind bars 1 & 2, I let the system handle the default keys (1-0, - =) but key bind the other bars with shift, alt and control, those still don't come up at all.

commented

In the shadowlands branch, I did this and it works with the Bartender4 alpha for 9.0:

@@ -33,7 +33,7 @@ local function ParseBar(Bar, Override)
end
if Button.icon:IsShown() and ButtonTexture and ButtonHotKey and strbyte(ButtonHotKey) ~= 226 then
--If button is a macro check that the macro casts a spell else ignore

  •    if _G.ElvUI then
    
  •    if _G.ElvUI or _G.Bartender4 then
         local buttonActionType, buttonActionId = GetActionInfo(Button._state_action)
       else
         local buttonActionType, buttonActionId = GetActionInfo(Button:GetPagedID())
    
commented

Closed since it seems to be working now.