Thread Tools Display Modes
03-24-19, 03:04 AM   #1
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
I just came up with an idea, the code below does fix the override buttons update as well. (for rActionbar)
Not sure whether it taints or not.
Lua Code:
  1. local updater = CreateFrame("Frame")
  2. updater:RegisterEvent("UPDATE_VEHICLE_ACTIONBAR")
  3. updater:SetScript("OnEvent", function()
  4.     for i = 1, 12 do
  5.         local button = _G["ActionButton"..i]
  6.         local texture = GetActionTexture(button.action)
  7.         if texture then
  8.             button.icon:SetTexture(texture)
  9.             button.icon:Show()
  10.         else
  11.             button.icon:Hide()
  12.         end
  13.     end
  14. end)

Last edited by siweia : 03-24-19 at 04:53 AM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » SecureHandlerAttributeTemplate optimization


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off