Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API EnumerateFrames

Last wiki revision 2022-11-05

Returns the frame which follows the current frame. nextFrame = EnumerateFrames([currentFrame])

  • currentFrame: - The current frame. If omitted, returns the first frame.
  • nextFrame: - The frame following . Returns if there are no more frames.

The following snippet prints the names of all visible frames under the mouse cursor.

  • This API enumerates every single non-forbidden frame whether named, unnamed, or anonymous script handlers. This includes all descendants of other frames.
  • If you're using this to search for a frame, make sure you return or break out of the while loop early so you don't continue looping after you get what you need. Not only will you save CPU time, you will also have access to the frame sooner and are less likely to cause lockups.
  • If you know the name of the frame you're looking for, don't use this function, just use the frame's name directly or get it from the _G table.
  • If you're looking for frame(s) that have specific events registered, don't use this function, just use.
  • Don't make new frames inside the while loop.
  • The order of iteration follows the order that the frames were created in.

Source

https://warcraft.wiki.gg/wiki/API_EnumerateFrames · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.