Thread: Hiding keybinds

  1. #1
    Deleted

    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
    Deleted

    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

  3. #3
    Deleted

    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
  •