Difference between revisions of "Object Element"
imported>JRoush |
imported>JRoush m (Menu Element moved to Object Element: menu vs. <menu> - too confusing) |
Revision as of 12:19, 19 December 2009
Object Elements are a subgroup of the elements in the Oblivion XML schema. They define all of the "objects" in the menu - the background and images, the buttons, the text - anything visible is an object element.
Object Elements are generally identified with a name (using the name trait), and can be interacted with by the player and by certain OBSE scripting functions.
Image
Defines a rectangular region with an associated texture. Every visible aspect of the menus and HUD, except for text, is an <image> element.
Property Elements
Rect
Defines a rectangular region (similar to an Image element), but without any visible effects. Even so, a <Rect> element may have a Visible element as a child, which if set to false will hide the <Rect> element and all of its children.
Property Elements
Text
Self explanatory. Note, however, that the width and height property elements have no effect on the size of the text - this is determined solely by the font property.
Property Elements
Menu
Menu elements are a bit special. The root element of a every menu file must be of this type, and no other <menu> elements are parsed, no matter where they appear in the file.
Property Elements