Difference between revisions of "Category:Oblivion XML"
added the oblivion schema section
imported>JRoush (blurb on file locations) |
imported>JRoush (added the oblivion schema section) |
||
Line 15: | Line 15: | ||
<!-- this is a comment --> | <!-- this is a comment --> | ||
To learn more about XML syntax, read the [http://www.w3.org/XML/ complete specification] or one of the tutorials provided by the World Wide Web Consortium. | To learn more about XML syntax, read the [http://www.w3.org/XML/ complete specification] or one of the tutorials provided by the World Wide Web Consortium. | ||
=== Oblivion XML Schema === | |||
XML is a general syntax - the meaning of specific elements depends entirely on the program parsing the file. | |||
The elements recognized by the Oblivion parser can be divided into three basic categories. [[Menu Element|"Menu" Elements]] define actual objects in the menu, such as buttons or text. [[Value Element|"Value" Elements]] are always children of Menu Elements, evaluated by Oblivion to parameters like the position or color of their parent. [[Operator Element|"Operator" Elements]] are always the children of Value Elements, which Oblivion uses to construct algebraic expressions for the value of their parent. | |||
Oblivion only recognizes three element [[Traits]]: "name", "src", and "trait". | |||
=== Oblivion Menu Files === | === Oblivion Menu Files === | ||
Menu xml data is stored in the ''Oblivion\Data\Menus'' directory. Each menu is stored in it's own file. Oblivion reloads a menu from disk every time it is opened, so to the file | Menu xml data is stored in the ''Oblivion\Data\Menus'' directory. Each menu is stored in it's own file. Oblivion reloads a menu from disk every time it is opened, so changes to the file can be seen by closing and re-opening the menu - a very useful trick for editing. Note, however, that some menus are never closed (e.g. the HUD). These menus can be reloaded in game using "Reload ''menuname''" [[:Category:Console Functions|console function]]. |