Thread: Hiding keybinds

  1. #1
    Mechagnome ovideozn's Avatar
    Join Date
    Oct 2008
    Location
    Bucharest
    Posts
    700

    Hiding keybinds

    I once saw an addon that was removing the Keybind text from icons on the action bar, but I forgot its name and I couldn't find it on google either. I know that more complex addons like Bartender can do this, but I want something as lightweight as possible, as my loading time is already high enough due to the ammount of addons I use.
    Can anybody help me ?

  2. #2

    Re: Hiding keybinds

    Threw together a quick few lines of code for you:
    Code:
    local nf = function() end
    for n,bar in ipairs({"Action", "MultiBarBottomLeft", "MultiBarBottomRight", "MultiBarRight"}) do
    	for btnnum=1, 12 do
    		local btn = bar.."Button"..btnnum
    		if _G[btn] then
    			_G[btn.."HotKey"]:Hide()
    			_G[btn.."HotKey"].Show = nf
    		end
    	end
    end
    How to use this
    UI & AddOns expert | Interface & Macros moderator - My work

  3. #3
    Mechagnome ovideozn's Avatar
    Join Date
    Oct 2008
    Location
    Bucharest
    Posts
    700

    Re: Hiding keybinds

    Thanks, it works!
    I'll mess with it tomorrow so that it only removes the text from some of the bars/buttons

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •