Difference between revisions of "Object Element"
no edit summary
imported>JRoush m (Menu Element moved to Object Element: menu vs. <menu> - too confusing) |
Tag: Manual revert |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Object Elements are a subgroup of the elements in the [[:Category: Oblivion XML|Oblivion XML]] schema. | == Overview == | ||
Object Elements are a subgroup of the elements in the [[:Category: Oblivion XML|Oblivion XML]] schema. Every visible part of a menu - the background and images, the buttons, the text - is an object element. | |||
Object Elements are | Object Elements are usually given a name to identify them using the [[XML Attribute|Name]] attribute, e.g. the image element that holds a menu's background texture might be: | ||
<image name="background_texture"> </image> | |||
[[Operator Element|Operator Elements]] and [[:Category:UI Functions (OBSE)|OBSE menu functions]] generally refer to Objects by their name. | |||
Object Elements should not contain literal text or numbers. Instead, they should have a series of [[Property Element]]s as children, which in turn will contain the various parameters that describe the object. For example, the <text> element that holds the title of a menu might be defined like this: | |||
<text name="title_text"> <!-- [[#Text|Text]] element, [[XML Attribute|Name]] attribute is 'title_text' --> | |||
<x> 100 </x> <!-- position determined by <[[Property Element#Sizeable|x]]> & <[[Property Element#Sizeable|y]]> Property elements --> | |||
<y> 150 </y> | |||
<font> 2 </font> <!-- text font determined by <[[Property Element#Text|font]]> Property element--> | |||
<string> <!-- actual text determined by <[[Property Element#Text|string]]> Property element --> | |||
This is the Actual Title | |||
</string> | |||
</text> | |||
Below is a listing of common Object Elements, and the groups of Properties each can make use of. | |||
== Image == | == Image == | ||
Line 14: | Line 29: | ||
== 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]] | 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]] property, which if set to false will hide the <Rect> element and all of its children. | ||
'''Property Elements''' | '''Property Elements''' |