Difference between revisions of "Object Element"
Jump to navigation
Jump to search
no edit summary
imported>JRoush m (→Image) |
imported>JRoush |
||
Line 1: | Line 1: | ||
Object Elements are a subgroup of the elements in the [[:Category: Oblivion XML|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 [[Trait|name trait]]), and can be interacted with by the player and by certain OBSE scripting functions. | |||
== Image == | == Image == | ||
Defines a rectangular region with an associated [[Portal:Texturing|texture]]. Every visible aspect of the menus and HUD, except for text, is an <image> element. | Defines a rectangular region with an associated [[Portal:Texturing|texture]]. Every visible aspect of the menus and HUD, except for text, is an <image> element. | ||
''' | '''Property Elements''' | ||
*[[Property Element#General|General]] | *[[Property Element#General|General]] | ||
*[[Property Element#Sizeable|Sizeable]] | *[[Property Element#Sizeable|Sizeable]] | ||
Line 14: | Line 16: | ||
Defines a rectangular region (similar to an Image element), but without any visible effects. Even so, a <Rect> element may have a [[Property Element#Rendered|Visible]] element as a child, which if set to false will hide the <Rect> element and all of its children. | Defines a rectangular region (similar to an Image element), but without any visible effects. Even so, a <Rect> element may have a [[Property Element#Rendered|Visible]] element as a child, which if set to false will hide the <Rect> element and all of its children. | ||
''' | '''Property Elements''' | ||
*[[Property Element#General|General]] | *[[Property Element#General|General]] | ||
*[[Property Element#Sizeable|Sizeable]] | *[[Property Element#Sizeable|Sizeable]] | ||
Line 22: | Line 24: | ||
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. | 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''' | ||
*[[Property Element#General|General]] | *[[Property Element#General|General]] | ||
*[[Property Element#Sizeable|Sizeable]] | *[[Property Element#Sizeable|Sizeable]] | ||
Line 29: | Line 31: | ||
== Menu == | == Menu == | ||
Menu elements | 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''' | ||
*[[Property Element#General|General]] | *[[Property Element#General|General]] | ||
*[[Property Element#Menu|Menu]] | *[[Property Element#Menu|Menu]] | ||
[[Category:Oblivion XML]] | [[Category:Oblivion XML]] |