Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ivac2:firdef_label_layout_xml [2016/03/26 22:41]
splendor.bouman
ivac2:firdef_label_layout_xml [2017/04/08 14:27]
Line 1: Line 1:
-====== label.xml ====== 
  
-The label.xml files constructs the label. Multiple label files may exist with different names to construct different label layouts, for example app.xml and acc.xml 
- 
-The ''​(label_name).xml''​ file is located in the ''​fir/​labels/''​ directory 
- 
-^Root Element|labels|| 
-^Element|label|| 
-^Attribute^Format^Remarks^ 
-|type|string|Label state - see above list| 
-|font|font to use - defined in sddfonts.xml| 
- 
-^Root Element|label|| 
-^Element|line|| 
-|Defines a line in the label||| 
- 
-^Root Element|line|| 
-^Element|field|| 
-^Attribute^Format^Remarks^ 
-|id|string|ID of label field (must be present in [[ivac2:​firdef_labelfields_xml|labelfields.xml]]| 
-|unselected|boolean|show field when label is **not** selected| 
- 
-<code xml> 
-<​labels>​ 
- <​airborne>​ 
-  <​default>​ 
-   <​line>​ 
-    <!-- STATUS LINE - MUST BE DEFINED !! --> 
-    <field id="​alert" ​   tag="" ​     unselected="​true"​ prefix="" ​  /> 
-    <field id="​warning" ​ tag="" ​     unselected="​true"​ prefix="​ " ​ /> 
-    <field id="​rof" ​     tag="" ​     unselected="​true"​ prefix="​ " ​ format="​ROF" ​ /> 
-    <field id="​dupe" ​    ​tag="" ​     unselected="​true"​ prefix="​ " ​ format="​DUPE"​ /> 
-   </​line>​ 
-   <​line>​ 
-    <field id="​callsign"​ tag="" ​    ​unselected="​true" ​ prefix="" ​ action="​CALLSIGNMENU"​ info="​CALLSIGNMENU"​ doubleaction="​NEXTME"​ /> 
-    <field id="​si" ​     tag="​SI"​ unselected="​true" ​ prefix="​ " action="​NEXT" ​        ​info="​NEXT" ​        ​doubleaction="​NEXTME"​ /> 
-    <field id="​atyp" ​    ​tag="" ​    ​unselected="​true" ​ prefix="​ " action="​FLIGHTPLAN"​ /> 
-    <field id="​wtc" ​     tag="" ​    ​unselected="​false" ​ prefix="​ " /> 
-    <field id="​tssr" ​    ​tag="" ​    ​unselected="​false"​ prefix="​ " action="​ASSR"​ /> 
-   </​line>​ 
-   <​line>​ 
-    <field id="​afl" ​     tag="​***" ​ unselected="​true" ​ prefix="" ​  ​format="​%02d"​ units="​FL"​ /> 
-    <field id="​ic" ​      ​tag="" ​    ​unselected="​true" ​ prefix=""​ /> 
-    <field id="​gs" ​      ​tag="​---" ​   unselected="​true" ​ prefix="​ " ​  ​format="​N%03d"​ units="​N"​ /> 
-    <field id="​xcop" ​    ​tag="​COPX" ​  ​unselected="​false"​ prefix="​ " action="​XCOP"​ info="​EXPLT"​ /> 
-    <field id="​rfl" ​     tag="​RFL" ​   unselected="​false"​ prefix="​ " action="​RFL"​ format="​%03d"​ units="​FL"​ /> 
-   </​line>​ 
-   <​line>​ 
-    <field id="​cfl" ​     tag="​CFL" ​ unselected="​true" ​ prefix="" ​ action="​CFL"​ format="​%03d"​ units="​FL"​ /> 
-    <field id="​xfl" ​     tag="​XFL" ​   unselected="​false"​ prefix="​ " action="​XFL" ​ info="​EXPLT"​ format="​%03d"​ units="​FL"​ /> 
-    <field id="​cwp" ​     tag="​AHDG" ​  ​unselected="​true" ​ prefix="​ " ​ action="​CWP"​ /> 
-    <field id="​asp" ​     tag="​ASP" ​  ​unselected="​true" ​ prefix="​ " ​  ​action="​ASP"​ format="/​%03d"​ units="​KTS"​ /> 
-    <field id="​ades" ​    ​tag="" ​      ​unselected="​false"​ prefix="​ " action="​FLIGHTPLAN"/>​ 
-   </​line>​ 
-   <​line>​ 
-    <field id="​text" ​    ​tag="​OP_TEXT" ​  ​unselected="​false"​ prefix="" ​ action="​TEXT" ​ /> 
-   </​line>​ 
-  </​default>​ 
- </​airborne>​ 
- </​label>​ 
-</​labels>​ 
-</​code>​ 
- 
-''​Note that this file has not been finalised, format changes may occur''​ 
- 
----- 
- 
-[[ivac2:​firdef|Back]]