View Single Post
05-01-11, 06:22 PM   #4
stako
A Deviate Faerie Dragon
 
stako's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 11
Bumping because GetBindingText is protected now. Can't figure out what to do.

Edit: Secure hook ActionButton_UpdateHotkeys and do something like this:
Code:
local function styleHotKeys(self, actionButtonType)
	local ho = _G[self:GetName().."HotKey"]
	local text = ho:GetText()
	text = text:replace( "-", "" )
	text = text:replace( "Mouse Wheel Down", "WD" )
	text = text:replace( "Mouse Wheel Up", "WU" )
	ho:SetText(text)
end

Last edited by stako : 05-01-11 at 06:31 PM.
  Reply With Quote