View Single Post
12/18/18, 06:12 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
I'd probably just use the ZO_AlphaAnimation class on an empty texture control with a color.

Something like this:
Lua Code:
  1. local overlay = GuiRoot:CreateControl("$(parent)MyOverlay", CT_TEXTURE)
  2. overlay:SetColor(r, g, b, startAlpha)
  3. overlay:SetAnchorFill(GuiRoot)
  4.  
  5. local animation = ZO_AlphaAnimation:New(overlay)
  6. animation:PingPong(startAlpha, endAlpha, duration, loopCount, callback)
  Reply With Quote