Display XML Format: Difference between revisions
From Rise: The Vieneo Province
(→Text) |
(→Text) |
||
| Line 31: | Line 31: | ||
<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" | <Text x="0" y="0" color="ffff00ff" width="40" height="24" font="0">TVM velocity target: %+.3f km/s</Text> | ||
====Attributes==== | ====Attributes==== | ||
| Line 38: | Line 38: | ||
=====font===== | =====font===== | ||
Use an ID declared at the top. It will default to the font for the page, screen, etc. | Use an ID declared at the top. It will default to the font for the page, screen, etc. | ||
====Value==== | ====Value==== | ||
Revision as of 14:23, 18 November 2018
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
busvalue
modulate
Multiplies the busvalue by the value specified
bias
Adds the value specified to the busvalue (after modulate operation, if applicable)
Condition
Must be contained inside a component. Multiple conditions are allowed in each 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>
Attributes
X and Y location attributes, color, width and height, alignment seem self-explanatory
font
Use an ID declared at the top. It will default to the font for the page, screen, etc.
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)