WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Rename keybinds (https://www.wowinterface.com/forums/showthread.php?t=58291)

sundertw 10-15-20 12:06 PM

Rename keybinds
 
Evening all,

Im trying to get this addon to work again but i have no idea how :(
Broke since 9.0.1

local function updatehotkey(self, actionButtonType)
local hotkey = _G[self:GetName() .. 'HotKey']
local text = hotkey:GetText()


text = string.gsub(text, '(Mouse Button 4)', 'm4')
text = string.gsub(text, '(Mouse Button 5)', 'm5')
text = string.gsub(text, '(Middle Mouse)', 'mM')
text = string.gsub(text, '(Mouse Wheel Down)', 'DWN')
text = string.gsub(text, '(Mouse Wheel Up)', ' UP')
text = string.gsub(text, '(`)', '-')



hotkey:SetText(text)
end
hooksecurefunc("ActionButton_UpdateHotkeys", updatehotkey)

ActionBarButtonEventsFrame:GetScript("OnEvent")(ActionBarButtonEventsFrame, "UPDATE_BINDINGS")

Hope someone can help me out
THnx


All times are GMT -6. The time now is 05:25 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI