Difference between revisions of "Property Element"

142 bytes added ,  00:58, 19 December 2009
imported>JRoush
imported>JRoush
Line 59: Line 59:
== Text ==
== Text ==
Properties specific to the [[Menu Element#Text|Text Element]]
Properties specific to the [[Menu Element#Text|Text Element]]
*'''Red, Green, Blue''' (Numeric) Specifies the color of the text element. Values are from 0 to 255 and use html colors. Example: "red 0, green 0, blue 0" results in a black color, "red 255, green 0, blue 0" results in a red color. Any combination can be made.
*'''String''' (String) The text to be displayed.
*'''Red, Green, Blue''' (Numeric) Specifies the color of the text. Values are from 0 to 255 - the greater the value, the more of that color. Example: "red 0, green 0, blue 0" results in a black color, and "red 255, green 0, blue 0" results in a red color. Any combination can be made.
*'''Font''' (Numeric) Specifies the font for the text element. Values are from 1 to 5, associated with the Oblivion.ini fonts. When missing or with an invalid number the game will default it to 1.
*'''Font''' (Numeric) Specifies the font for the text element. Values are from 1 to 5, associated with the Oblivion.ini fonts. When missing or with an invalid number the game will default it to 1.
*'''Justify''' (Numeric) Specifies where the text begins relative to the element's position. Options are "&left;", "&center;" and "&right;". Can be used to align things but will require adjustments to the element's position when not using "&left;". Example, using "&left;" the text will start at the same position of the element. But when using "&center;" the text will be positioned in a way that puts the center of the text at the position of the element. Using "&right" will position the text in a way that puts the end of it at the same position of the element.
*'''Justify''' (Numeric) Specifies where the text begins relative to the element's X coordinate. Options are "&left;", "&center;" and "&right;":
  || Is root position of the text element
  <text>
    <string> Hello World </string>
|| (<justify> &left; </justify>)
    <justify> &right; </justify>
  Hello World.
  </text>
    || (<justify> &center; </justify>)
<text>
  Hello World.
    <string> Hello World </string>
            || (<justify> &right; </justify>)
    <justify> &center; </justify>
  Hello World.
  </text>
*String
<text>
*Wrapwidth
    <string> Hello World </string>
    <justify> &left; </justify>
</text>
 
Output ("X" marks the X position of the element):
          X
  Hello World
      Hello World
          Hello World
*'''Wrapwidth''' (Numeric) the maximum width, in pixels, of the element.  If the text is long enough to extend past this width, it is split into multiple lines.  This is the only way to control the size of a text element - the width and height properties set by the game engine to whatever the final dimensions of the element end up being.


== Menu ==
== Menu ==
Anonymous user