WoW:API UIFrameFadeIn: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{framexmlfunc|FrameXML/UIParent.lua}})
m (stupid typo)
Line 6: Line 6:
  UIFrameFadeOut(frame, timeToFade, startAlpha, endAlpha)
  UIFrameFadeOut(frame, timeToFade, startAlpha, endAlpha)


timeToFade in seconds, alpha from 0 to 1.  Convenience functions to set up a given frame and have it faded in ou out by UIFrameFadeUpdate.
timeToFade in seconds, alpha from 0 to 1.  Convenience functions to set up a given frame and have it faded in and out by UIFrameFadeUpdate.


When the fade is finished...
When the fade is finished...

Revision as of 07:32, 30 March 2007

WoW API < UIFrameFadeIn

"I" iconThis function is implemented in Lua here FrameXML/UIParent.lua.

Template:Stub/api

UIFrameFadeIn(frame, timeToFade, startAlpha, endAlpha)
UIFrameFadeOut(frame, timeToFade, startAlpha, endAlpha)

timeToFade in seconds, alpha from 0 to 1. Convenience functions to set up a given frame and have it faded in and out by UIFrameFadeUpdate.

When the fade is finished...

[frame].fadeInfo.finishedFunc(
  [frame].fadeInfo.finishedArg1, 
  [frame].fadeInfo.finishedArg2, 
  [frame].fadeInfo.finishedArg3, 
  [frame].fadeInfo.finishedArg4
) 

...will be called, and then [frame].fadeInfo.finishedFunc is set to nil