Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API UIFrameFadeUpdate

From WoW Classic Wiki

Template:Stub/Begin This article or section is a World of Warcraft API stub.   You can help expand it by clicking  edit this page  above.

  • Please see How to edit API pages for a list of boilerplates and page tags to use for different types of API related pages.
  • Please be aware of the new rules of API pages as, we no longer just slap "{{WoW API}}" at the bottom of pages.

Template:Stub/End

UIFrameFadeUpdate(elapsed)

Used by the UI to fade frames in and out. Keeps a table of frames its currently fading. Each frame in that table has a table of fadeInfo.

Fading frame attribute listing
============================================================
frame.timeToFade  [Num]		Time it takes to fade the frame in or out
frame.mode  ["IN", "OUT"]	Fade mode
frame.finishedFunc [func()]	Function that is called when fading is finished
frame.finishedArg1 [ANYTHING]	Argument to the finishedFunc
frame.finishedArg2 [ANYTHING]	Argument to the finishedFunc
frame.finishedArg3 [ANYTHING]	Argument to the finishedFunc
frame.finishedArg4 [ANYTHING]	Argument to the finishedFunc
frame.fadeHoldTime [Num]	Time to hold the faded state

all of the finished* entries must be set for each individual fade, and are used by UIFrameFlashUpdate (and related) to reverse/restart fade direction when something is flashing.