WoW:API Frame SetFrameLevel: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
Set the level of this frame (determines which of overlapping frames shows on top). Higher numbers always show up on top of lower numbers.
Set the level of this frame (determines which of overlapping frames shows on top). Higher numbers always show up on top of lower numbers.
== Frame Levels -- by Apoco == These are the frame levels.  The name in ( ) is what it would be called in the XML file.
=== Level: ===
*0 (BACKGROUND)
: Places it in the background of your frame:
Example:
frame:SetFrameLevel(0);
*1 (ARTWORK):
: Places it here the artwork of your frame.
Example:
frame:SetFrameLevel(1);
*2 (OVERLAY):
: Place here your text, objects and buttons in this level, this is the top level.
Example:
frame:SetFrameLevel(2);

Revision as of 14:25, 23 August 2005

Set the level of this frame (determines which of overlapping frames shows on top). Higher numbers always show up on top of lower numbers.

== Frame Levels -- by Apoco == These are the frame levels. The name in ( ) is what it would be called in the XML file.

Level:

  • 0 (BACKGROUND)
Places it in the background of your frame:

Example:

frame:SetFrameLevel(0);
  • 1 (ARTWORK):
Places it here the artwork of your frame.

Example:

frame:SetFrameLevel(1);
  • 2 (OVERLAY):
Place here your text, objects and buttons in this level, this is the top level.

Example:

frame:SetFrameLevel(2);