Display XML Format: Difference between revisions

From Rise: The Vieneo Province

 
(6 intermediate revisions by the same user not shown)
Line 11: Line 11:
=====busvalue=====
=====busvalue=====
[[Bus Values]]
[[Bus Values]]
====Floating Point Attributes====
=====modulate=====
=====modulate=====
Multiplies the busvalue by the value specified
Multiplies the busvalue by the value specified
Line 19: Line 20:


===Condition===
===Condition===
Must be contained inside a component. Multiple conditions are allowed in each component.
Supported only for floating point values. Must be contained inside a component. Multiple conditions are allowed in each component. System only shows the first matching condition for a particular component.


  <Condition>...</Condition>
  <Condition>...</Condition>
Line 35: Line 36:
  <Text x="0" y="0" color="ffff00ff" width="40" height="24" align="left">TVM velocity target: %+.3f km/s</Text>
  <Text x="0" y="0" color="ffff00ff" width="40" height="24" align="left">TVM velocity target: %+.3f km/s</Text>
  <Text x="0" y="0" color="ffff00ff" width="40" height="24" font="0">TVM velocity target: %+.3f km/s</Text>
  <Text x="0" y="0" color="ffff00ff" width="40" height="24" font="0">TVM velocity target: %+.3f km/s</Text>
<Text x="0" y="0" color="ffff00ff" width="40" height="24" font="0">IVR: %S</Text>


====Attributes====
====Attributes====
X and Y location attributes, Z depth (default is 1.0 which renders on top of everything else), color, width, height, and text alignment.
X and Y location attributes, Z depth (default is 1.0 which renders on top of everything else), color, width, and height.


=====font=====
=====font=====
Line 65: Line 67:


====Attributes====
====Attributes====
X and Y location attributes, Z depth (default is 0.0 which renders below everything else), color, width, and height.
*X and Y location attributes, Z depth (default is 0.0 which renders below everything else)
*color
*width, height, top (defaults to 0) and left (defaults to 0)
*xScale and yScale (defaults to 1.0)


====Value====
====Value====
The value is the path (if it is relative it is from the program folder) to a image or bitmap.
The value is the path (if it is relative it is from the program folder) to a image or bitmap.

Latest revision as of 20:43, 28 April 2020

Element

Component

Must be contained inside of an element. Multiple components are allowed in an element.

<Component busval="TvmDesiredClosingSpeed">...</Component>
<Component busval="NormalAcceleration.y">...</Component>

Attributes

Bias, Modulation, Absolute only change the displayed value not the real value. All logic in condition is based off the original value.

busvalue

Bus Values

Floating Point Attributes

modulate

Multiplies the busvalue by the value specified

bias

Adds the value specified to the busvalue (after modulate operation, if applicable)

abs

Show absolute value of the number. Omitted or 0 is default and will show a negative sign for negative values.

Condition

Supported only for floating point values. Must be contained inside a component. Multiple conditions are allowed in each component. System only shows the first matching condition for a particular component.

<Condition>...</Condition>
<Condition min="2">...</Condition>
<Condition max="449.9">...</Condition>
<Condition min="-8.4" max="8.4">...</Condition>

Attributes

  • min - show content if the value is below this setting
  • max - show content if the value is above this setting

Text

Must be contained inside a condition. Multiple text nodes can be used in each condition.

<Text x="0" y="0" color="ffff00ff" width="40" height="24" align="left">TVM velocity target: %+.3f km/s</Text>
<Text x="0" y="0" color="ffff00ff" width="40" height="24" font="0">TVM velocity target: %+.3f km/s</Text>
<Text x="0" y="0" color="ffff00ff" width="40" height="24" font="0">IVR: %S</Text>

Attributes

X and Y location attributes, Z depth (default is 1.0 which renders on top of everything else), color, width, and height.

font

Use an ID declared at the top. It will default to the font for the page, screen, etc.

align

The "align" attribute supports one of the values below. The default is "left". If "center" or "right" are specified then a width is required.

  • left
  • center
  • right
valign

The "valign" attribute supports one of the values below. The default is "top". If "center" or "bottom" are specified then a height is required.

  • top
  • center
  • bottom

Value

The value is a C++ string format ... you can have label text and or a format specifier for the associated bus value (component) and text after the format specifier (like units)

Full Format Specifiers Specification

Sprite

Must be contained inside a condition. Multiple text nodes can be used in each condition.

<Sprite x="0" y="0" z="0.9" width="421" height="320">Textures/Instruments/MFD-background.png</Sprite>

Attributes

  • X and Y location attributes, Z depth (default is 0.0 which renders below everything else)
  • color
  • width, height, top (defaults to 0) and left (defaults to 0)
  • xScale and yScale (defaults to 1.0)

Value

The value is the path (if it is relative it is from the program folder) to a image or bitmap.