WoW:Layer: Difference between revisions

537 bytes added ,  29 March 2009
copied from XML user interface, added another api reference
m (catfix)
(copied from XML user interface, added another api reference)
Line 7: Line 7:
HIGHLIGHT - Level 4. Place your text, objects, and buttons in this level. <br>
HIGHLIGHT - Level 4. Place your text, objects, and buttons in this level. <br>


    * Elements in the HIGHLIGHT Layer are automatically shown or hidden when the mouse enters or leaves!
*Elements in the '''HIGHLIGHT''' Layer are '''automatically shown or hidden''' when the mouse enters or leaves.
    * For Highlighting to work you need enableMouse="true" in your <Frame> attributes.
*For Highlighting to work you need '''enableMouse="true"''' in your ''<Frame>'' attributes.


[[Category:Interface customization]]
Layer can be set on creation using the [[XML_properties#layers|''<Layers>'']] tag in XML, or the "layer" parameter in [[API Frame CreateTexture|Frame:CreateTexture]](). To change the layer after creation, use the [[API LayeredRegion SetDrawLayer|LayeredRegion:SetDrawLayer]]() function.
 
''Note: The above are capitalized for a reason. See example:''<BR />
 
<Layers>
  <Layer level="BACKGROUND">
    ...
  </Layer>
  <Layer level="ARTWORK">
    ...
  </Layer>
  <Layer level="OVERLAY">
    ...
  </Layer>
</Layers>[[Category:Interface customization]]
Anonymous user