Hide bars except on mouseover

Hi all,

I have my ui set up how I want it using the stock UI.

The only thing I am missing is a way to hide my bars but reveal them if I move my mouse over them.

I really like hidden bars because it keeps my eyes on my weakauras in the centre of the screen, where I can also see the fight. Visible bars distract me.

It seems I can hide my bars in or out of combat, or completely hide them, but I want to be able to mouseover quickly if I have forgotten a keybind. A very minimal addon to just add that functionality would be awesome.

An alternative solution would be if I can show my keybinds on my weakauras, but I haven’t been able to figure that out either.

1 Like

Bartender and Dominos have that functionality.

I’m worried they will overwrite everything - when you install them so they take over your whole ui so you have to set everything up again?

Frustrating that we still need bartender when the whole point of the ui was to make addon unnecessary :frowning:

1 Like

Faint cooldown flashes still show at times, but this will make the first 3 bars and the pet bar “hide” (alpha 0) when the cursor is higher than 150px (unadjusted for scale) from the bottom of the screen, and “show” (alpha 1) otherwise.

-- list of frames to hide/show go here (not actually hidden, just alpha set to 0)
local frames = {MainMenuBar, MultiBarBottomLeft, MultiBarBottomRight, PetActionBar}
local yoff = 150 -- threshold where cursor going below will show bars
local wait = 0.2 -- seconds to wait between checks for cursor position

local shown
local f = CreateFrame("Frame")
f.timer = 0
f:SetScript("OnUpdate",function(self,elapsed)
  f.timer = f.timer + elapsed
  if f.timer > wait then
    f.timer = 0
    local show = select(2,GetCursorPosition())<yoff
    if show~=shown then
      shown = show
      for _,frame in ipairs(frames) do
        frame:SetAlpha(show and 1 or 0)
      end
    end
  end
end)

Animation for fadein/fadeout and handling those cooldown flashes is doable, but I don’t have time for that.

1 Like

This sounds very promising and I appreciate you so much right now!

Umm where do I put all this code and run it?

Blizz makes a point to not include advanced features in the base UI. Morgan Day basically said as much in his interview with Max this week.

https://addon.bool.no/

2 Likes

https://www.curseforge.com/wow/addons/blizzhudtweaks
https://www.curseforge.com/wow/addons/mouseoveractionbars-mouseover-action-bars

6 Likes

Thank you! OMG this opens a can of worms though - am software dev irl, and have tried to avoid even looking at wow addons.

must not fall into addon making wormhole

1 Like