Give action bars click-through option

One of the massive problems with the default blizzard bars is that they are not click-through. I have been moving toward a no-weakaura setup over season 3 and this is the one thing driving me crazy. The real estate just below your character is extremely important to gameplay and currently, that area is a mouse no-go zone.

1 Like

Not sure if Sunn viewport addon is going to work in Midnight but it’s great for moving bars and stuff out of the playable space.

https://imgur.com/a/viewport-addon-difference-rWIcW4Z

1 Like

I spent some time this AM with ChatGPT to get this working as a script that you can paste into macros. Here’s what worked for me.

Macro 1: what bar am I actually looking at? Disable that one!. The reason you need this first one is, for example, my Action Bar 6 is actually “MultiBar5Button”, according to this macro. It’s maddening, and why the second macro didn’t work at first - because the bars aren’t labeled consistent with the Layout Editor descipritions:

To use: hover your mouse over a button in the action bar you want to make click through, then run the script. You could add the script to a macro, put the macro on a bound key and hit the key, or you could just hover the mouse, then copy/paste into the chat box:

/run local f=GetMouseFoci and GetMouseFoci()[1]; if not f or not f.GetName then print(“NMFF”); return end; local n=f:GetName():gsub(‘Button%d+’,‘Button’); for i=1,12 do local b=_G[n..i]; if b then b:EnableMouse(false) end end print(“DoB:”, n)

Because it will disable the buttons on that bar, you will need to reload your ui with /reload if this is not the one-step version you want.

NMFF = No Mouse Focus Found and DoB = description of bar. I had to keep them short to stay within the script length constraints.

Now that you know what Bar it is that you want to disable, you can feed that info into the following script to toggle the bar:

Macro 2: toggle the click through aspect of the buttons on that bar
/run local enabled=_G[“MultiBar5Button1”]:IsMouseEnabled(); for i=1,12 do local b=_G[“MultiBar5Button”..i]; if b then b:EnableMouse(not enabled) end end print(“Bar 6 click-through:”, enabled and “ENABLED” or “DISABLED”)

So in my case the “Action Bar 6” that I wanted as click through contains buttons labled the game as “MultiBar5Button” (and then the button number).

Hope that makes sense.