Jump to content
Sign in to follow this  
Spartakus

Addon to hide hotkeys from action bars?

Recommended Posts

"Title says it all. Not a huge deal but I prefer the aesthetic of clean looking action bars. Or if there's anyway someone could easily make a stand alone addon for this function, it'd be greatly appreciated. "

 

just a copy/pasta from this thread https://forum.nostalrius.org/viewtopic.php?f=63&t=28838 cause the link doesn't seem to work for me.

I know there are working macros for this but I'd like an addon.

Edited by Spartakus

Share this post


Link to post
Share on other sites

This will do that for you.

To install, copy/paste the code below into new text files and save them as HideHotKey.toc and HideHotKey.lua. Once done, move them to a new folder called HideHotKey in your AddOns folder.

HideHotKey.toc

## Interface: 11200
## Title: HideHotKey
HideHotKey.lua

HideHotKey.lua

local _G = getfenv(0)

local buttons = {
    "ActionButton",
    "BonusActionButton",
    "MultiBarBottomLeftButton",
    "MultiBarBottomRightButton",
    "MultiBarLeftButton",
    "MultiBarRightButton",
}

for b = 1, getn(buttons) do
    for i = 1, NUM_ACTIONBAR_BUTTONS do
        _G[buttons[b]..i.."HotKey"]:Hide()
        _G[buttons[b]..i.."HotKey"].Show = function() end
    end
end

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×