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/Frame
(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/Frame|Frame]] based elements facilitate 'Layout', 'Appearance' and 'Behaviour' mechanisms for the WoW UI at runtime. When used with <[[XML/Scripts|Scripts]]> along with the <[[XML/Anchors|Anchors]]> and the <'''Size'''> element from [[XML/LayoutFrame|LayoutFrame]], allows WoW to 'Layout' all of its visible and make them interactive and responsive, including the 3D views of the world. Frame works by providing a flexible set of layout and scripting constructs. Frames also provide a sophisicated 'Z order' based layering system, both in <[[XML/Layers|Layers]]> element and between the frames themselves. === Example === <[[XML/Frame|Frame]] name="MyFrameTemplate" hidden="true" virtual="true"/> <[[XML/Frame|Frame]] name="MyFrame" inherits="MyFrameTemplate"> <[[XML/Dimension|Size]] x="400" y="400"/> <[[XML/Frames|Frames]]> <[[XML/Frame|Frame]] name="$parentChild" parentKey="child"> <[[XML/Dimension|Size]] x="200" y="100"/> <[[XML/Anchors|Anchors]]> <[[XML/Anchor|Anchor]] point="TOP"> <[[XML/Dimension|Offset]]> <[[XML/AbsDimension|AbsDimension]] x="0" y="-22" /> </Offset> </Anchor> </Anchors> </Frame> </Frames> </Frame> This example will align the top of the 'child' frame to the top of 'MyFrame', and then offset that alignment by -22 vertically. Also demonstrates use of Dimension with '''Size''' and [[XML/Anchor|Anchor]], and using '''Abs''' and '''inline''' values, as well as use of '$parent' to specify the name of the child where the child 'name' will be 'MyFrameChild' at runtime. Finally this example shows use of 'inherits' and 'virtual' where 'MyFrameTemplate' is inherited by 'MyFrame' causing 'MyFrame' to inherit 'hidden' from 'MyFrameTemplate' making 'MyFrame' hidden by default. At runtime, you can refer to the child frame as either <tt>MyFrameChild</tt> or <tt>MyFrame.child</tt>.
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)