CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on Keybind text

    DO you use the blizzard action bar?

    Posted in: Lua Code Discussion
  • 0

    posted a message on Keybind text

    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--

    Posted in: Lua Code Discussion
  • 0

    posted a message on Keybind text

    I used your text instead of mine in the addon.

    Or what do i need to do with it ?

    Posted in: Lua Code Discussion
  • 0

    posted a message on Keybind text

    Thnx for the reply but that doesnt work either :(

    Posted in: Lua Code Discussion
  • 0

    posted a message on Keybind text

    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

    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.