wowpedia
Main Menu


Returns the frame which follows the current frame.

nextFrame = EnumerateFrames([currentFrame])

Arguments

currentFrame
Frame?🔗 - The current frame. If omitted, returns the first frame.

Returns

nextFrame
Frame?🔗 - The frame following currentFrame. Returns nil if there are no more frames.

Example

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

local f = EnumerateFrames()
while f do
	if f:IsVisible() and f:IsMouseOver() then
		print(f:GetDebugName())
	end
	f = EnumerateFrames(f)
end

Details