Quantcast WoWInterface - View Single Post - SecureHandlerAttributeTemplate optimization
View Single Post
03-24-19, 03:04 AM   #12
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 114
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