Difference between revisions of "Object Element"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JRoush
imported>JRoush
Line 12: Line 12:


== Rect ==
== Rect ==
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 it evaluates to false, will override the Visible properties of all of the Rect's other 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.


'''Value Elements'''
'''Value Elements'''

Revision as of 00:30, 19 December 2009


Image

Defines a rectangular region with an associated texture. Every visible aspect of the menus and HUD, except for text, is an image element.

Value 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.

Value 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.

Value Elements

Menu

Menu elements (as in the specific element type <menu></menu>, rather than any element that might appear in a menu xml file) 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.

Value Elements