Wikia

WoWWiki

Watchlist Recent changes

API Region IsVisible

Main Menue



Return whether or not an object is actually visible on-screen (ignoring the possibility that the object could be dragged off the edge of the screen).

visible = MyObject:IsVisible();

Returns Edit

visible
Boolean - 1 (true) if the object is visible, nil (false) if not.

Example Edit

if(MyFrame:IsVisible()) then
  MyAddon_UpdateSomeText(MyFrame);
end

Details Edit

Gets the visible state of an object, meaning if it's shown and all it's parents are shown aswell.
If :Hide() is called on a frame, then all of it's children are hidden also. In this case, its children are "shown" (if they were prior to the Hide() call), but not "visible".
FrameXML uses this in a couple of places to tell whether or not the entire UI has been hidden for screenshot purposes (visible is false while shown is true)

Pages on WoWWiki

94,169pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,617photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki