WoW:API UIFrameFlash: Difference between revisions

name required
m (catfix, Replaced: {{framexml → <br>{{framexml)
(name required)
Line 31: Line 31:
* If you try to flash an already flashing frame, the function fails silently. You may use [[API UIFrameIsFading|UIFrameIsFading (frame)]] to detect if a frame is already flashing, and [[API UIFrameFlashRemoveFrame|UIFrameFlashRemoveFrame (frame)]] to stop the flashing cycle prematurely (make sure to set the desired alpha value manually afterwards).
* If you try to flash an already flashing frame, the function fails silently. You may use [[API UIFrameIsFading|UIFrameIsFading (frame)]] to detect if a frame is already flashing, and [[API UIFrameFlashRemoveFrame|UIFrameFlashRemoveFrame (frame)]] to stop the flashing cycle prematurely (make sure to set the desired alpha value manually afterwards).
* Once flashDuration expires, the frame's alpha is bluntly set to either 1 or 0 (depending on showWhenDone). Make sure to set a flashDuration value to coincide with the end of a fade in (if you want the frame to remain visible) or fade out (if not). Otherwise, things will look awkward.
* Once flashDuration expires, the frame's alpha is bluntly set to either 1 or 0 (depending on showWhenDone). Make sure to set a flashDuration value to coincide with the end of a fade in (if you want the frame to remain visible) or fade out (if not). Otherwise, things will look awkward.
* The frame MUST have a name, otherwise one of the internal functions causes an error.
Anonymous user