This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Our first step of the new Authors Portal is Live! Learn more or click here to check it out!
DO you use the blizzard action bar?
OKe great i got it to work now, is there any chance u know why it does a-... instead of a-m4 ?
also a-` instead of a--
I used your text instead of mine in the addon.
Or what do i need to do with it ?
Thnx for the reply but that doesnt work either :(
Hey,
Im trying to get my addon/script working again that changes my keybind names but i cant get it to work . Maybe some1 here can figure it out.
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")
Thanks in advance
DO you use the blizzard action bar?
OKe great i got it to work now, is there any chance u know why it does a-... instead of a-m4 ?
also a-` instead of a--
I used your text instead of mine in the addon.
Or what do i need to do with it ?
Thnx for the reply but that doesnt work either :(
Hey,
Im trying to get my addon/script working again that changes my keybind names but i cant get it to work . Maybe some1 here can figure it out.
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")
Thanks in advance