Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:XML/Layers
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Summary == [[XML/Layers|Layers]] are the primary 'Drawing' mechanism in the WoW UI, and allow WoW to display all of its visible UI elements on the screen. Layers work by defining a list of <[[XML/Layer|Layer]]> elements, each of which define a 'Z order' level, and define which LayoutFrames should be drawn at that 'level'. A layer works by listing [[XML/Texture|Texture]] and [[XML/FontString|FontString]] elements each of which can draw itself based on how its defined. The cumulative effect of all the Layers in the Layer list, combined with their FontString and Texture elements, will render the all the visible elements for a [[XML/Frame|Frame]] at runtime. === Example === <[[XML/Frame|Frame]] name="MyFrame"> <Layers> <Layer> <[[XML/Texture|Texture]]> <Size x="100" y="100" /> <HitRectInsets> <[[XML/AbsInset|AbsInset]] left="0" right="-100" top="0" bottom="0"/> </HitRectInsets> <Color a="1" r="1" g="1" b="1" /> </Texture> <Texture> <Size x="100" y="100" /> <Color a="1" r="1" g="1" b="1" /> </Texture> </Layer> </Layers> </Frame> This example will show a frame with several textures.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)