WoW:FrameXML: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Robot: converting/fixing HTML)
No edit summary
 
(17 intermediate revisions by 12 users not shown)
Line 1: Line 1:
'''FrameXML''' is the in-house name for the part of [[Blizzard Entertainment|Blizzard]]'s standard World of Warcraft [[User Interface]] that is implemented in [[Lua]], and hence fully replacable by users via [[AddOns]].
{{uixml}}
'''FrameXML''' is the Blizzard name for the main set of Lua and XML based UI code found in the game archives and folders, used when playing the game. FrameXML is also a name often used for the Blizzard [[XML UI|UI XML]] used to define UI frames.


FrameXML, the format, defines UI constructs and [[Frame]]s using regular [[XML]] files. FrameXML is used to create most of the standard World of Warcraft [[User Interface]]. It is used for both the default WoW UI, and for WoW [[AddOn]]s including user AddOns.


For in-depth information about FrameXML, see:
== Disambiguation ==
* [[Interface Customization]]
FrameXML can often refer to:
* [[:Category:FrameXML Documentation]].
* The XML based UI definition language and facilities used in WoW
* [[HOWTO: View Blizzard's Interface Code]] - to extract all of FrameXML to regular files
* The actual 'FrameXML' folder and .toc file in the WoW game folders
* [http://wdn.wowinterface.com/latest wdn.wowinterface.com] - online FrameXML viewer


[[Category:Glossary]]
WoW UI customization is divided here as follows, starting at the highest level:
 
* [[XML UI]] - The WoW FrameXML facility, language, existing constructs and folders. Includes documentation for inheriting from predefined 'Widgets'.
* [[Widget API]] - The Lua-only 'UI Frame' API and counterpart to FrameXML. Includes documentations for interacting from Lua with the pre-defined Blizzard 'Widgets', which are defined in both XML and Lua in the Blizzard FrameXML folders.
* [[World of Warcraft API]] - The core WoW UI API exposed to Lua code
* [[Lua functions|WoW Lua]] - The WoW customized flavor of [[Lua]]
 
Here in these documents, the term [[XML UI]] is often used to refer all of the [[FrameXML]] UI based APIs, facilities, and the Blizzard and user XML based UI file and code.
 
== History ==
 
Blizzard uses XML to define nearly all of their actual UI frame elements and facilities for the WoW UI. One of the historical reasons for this is that using XML avoids having to generate Lua side 'objects' or representations of elements for every single object, table, and string, that were already defined on the 'C' side and were part of the actual render and event paths. The XML could be read and discarded, and only generating the Lua side constructs necessary for running the UI.
 
The UIOBJECT API has grown over time to support more of the same facilites as XML loader, and now has near parity with the native XML loading. There is still a siginificant savings for the default UIs to load using the XML loader. However for AddOns following best pratices, the difference can be insignificant. Many veteran AddOn developers prefer using only the UIOBJECT APi.
 
Historically, the UIOBJECT API was documented in the 'Widget API', as everything that was considered 'Frame' or default UI related was lumped together. The FrameXML documentation itself is now more clearly seperated from the Lua side UIOBJECT API documentation, in order to provide more clarity and special needs for documenting XML style UI definition constructs. Base 'WoW Addon' documentation is also now provided.
 
== See also ==
* [[XML UI]]
* [[:Category:FrameXML documentation]].
* [[WoW_development]]
* [[Viewing Blizzard's WoW user interface code]] - to extract all of FrameXML to regular files
 
== External links ==
{{elink|icon=|site=Townlong-Yak.com|link=https://www.townlong-yak.com/framexml/live|desc=FrameXML ''Build ##### (7.n.n)''|bydate=(sometimes a week or two behind current release; .lua, .toc, and .xml viewer)}}
[[Category:FrameXML documentation| ]]
[[Category:Game terms]]

Latest revision as of 06:30, 15 August 2023

XML UI

FrameXML is the Blizzard name for the main set of Lua and XML based UI code found in the game archives and folders, used when playing the game. FrameXML is also a name often used for the Blizzard UI XML used to define UI frames.

FrameXML, the format, defines UI constructs and Frames using regular XML files. FrameXML is used to create most of the standard World of Warcraft User Interface. It is used for both the default WoW UI, and for WoW AddOns including user AddOns.

Disambiguation[edit]

FrameXML can often refer to:

  • The XML based UI definition language and facilities used in WoW
  • The actual 'FrameXML' folder and .toc file in the WoW game folders

WoW UI customization is divided here as follows, starting at the highest level:

  • XML UI - The WoW FrameXML facility, language, existing constructs and folders. Includes documentation for inheriting from predefined 'Widgets'.
  • Widget API - The Lua-only 'UI Frame' API and counterpart to FrameXML. Includes documentations for interacting from Lua with the pre-defined Blizzard 'Widgets', which are defined in both XML and Lua in the Blizzard FrameXML folders.
  • World of Warcraft API - The core WoW UI API exposed to Lua code
  • WoW Lua - The WoW customized flavor of Lua

Here in these documents, the term XML UI is often used to refer all of the FrameXML UI based APIs, facilities, and the Blizzard and user XML based UI file and code.

History[edit]

Blizzard uses XML to define nearly all of their actual UI frame elements and facilities for the WoW UI. One of the historical reasons for this is that using XML avoids having to generate Lua side 'objects' or representations of elements for every single object, table, and string, that were already defined on the 'C' side and were part of the actual render and event paths. The XML could be read and discarded, and only generating the Lua side constructs necessary for running the UI.

The UIOBJECT API has grown over time to support more of the same facilites as XML loader, and now has near parity with the native XML loading. There is still a siginificant savings for the default UIs to load using the XML loader. However for AddOns following best pratices, the difference can be insignificant. Many veteran AddOn developers prefer using only the UIOBJECT APi.

Historically, the UIOBJECT API was documented in the 'Widget API', as everything that was considered 'Frame' or default UI related was lumped together. The FrameXML documentation itself is now more clearly seperated from the Lua side UIOBJECT API documentation, in order to provide more clarity and special needs for documenting XML style UI definition constructs. Base 'WoW Addon' documentation is also now provided.

See also[edit]

External links[edit]