I’m using this to disable the flash that occurs on all buttons when you use an ability. If anyone can improve it, please let me know.
local frame=CreateFrame("Frame");
frame:RegisterEvent("PLAYER_LOGIN");
frame:SetScript("OnEvent",function(self,event,...)
if (event=="PLAYER_LOGIN") then
local array = {"ActionButton", "MultiBarBottomLeftButton", "MultiBarBottomRightButton", "MultiBar5Button", "MultiBar6Button", "MultiBar7Button", "MultiBarRightButton", "MultiBarLeftButton"}
for i=1, NUM_ACTIONBAR_BUTTONS do
for _, v in pairs(array) do
local button = _G[v..i]
button.CooldownFlash.Flipbook:Hide()
end
end
end
end)