1
0
Fork 0

added arial_black and condensed fonts for the Primus 1000 PFD

This commit is contained in:
sydadams 2007-07-15 21:28:52 +00:00
parent 05b3db2d31
commit 16db10581a
7 changed files with 2741 additions and 2375 deletions

View file

@ -1,19 +1,26 @@
###### Primus 1000 system ######## ###### Primus 1000 system ########
FDMODE = props.globals.getNode("/instrumentation/primus1000/fdmode",1); var FDMODE = props.globals.getNode("/instrumentation/primus1000/fdmode",1);
NavPtr1=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr",1); var NavPtr1=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr",1);
NavPtr2=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr",1); var NavPtr2=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr",1);
NavPtr1_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr-hdg-offset",1); var NavPtr1_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr-hdg-offset",1);
NavPtr2_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr-hdg-offset",1); var NavPtr2_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr-hdg-offset",1);
RAmode=props.globals.getNode("/instrumentation/primus1000/ra-mode",1); var RAmode=props.globals.getNode("/instrumentation/primus1000/ra-mode",1);
DC550 = props.globals.getNode("/instrumentation/primus1000/dc550",1); var DC550 = props.globals.getNode("/instrumentation/primus1000/dc550",1);
var fms_enabled =0;
NavDist=props.globals.getNode("/instrumentation/primus1000/nav-dist-nm",1); NavDist=props.globals.getNode("/instrumentation/primus1000/nav-dist-nm",1);
NavType=props.globals.getNode("/instrumentation/primus1000/nav-type",1);
NavString=props.globals.getNode("/instrumentation/primus1000/nav-string",1);
NavID=props.globals.getNode("/instrumentation/primus1000/nav-id",1);
FMSMode=props.globals.getNode("/instrumentation/primus1000/fms-mode",1);
APoff=props.globals.getNode("/autopilot/locks/passive-mode",1); APoff=props.globals.getNode("/autopilot/locks/passive-mode",1);
Hyd1=props.globals.getNode("systems/hydraulic/pump-psi[0]",1); Hyd1=props.globals.getNode("systems/hydraulic/pump-psi[0]",1);
Hyd2=props.globals.getNode("systems/hydraulic/pump-psi[1]",1); Hyd2=props.globals.getNode("systems/hydraulic/pump-psi[1]",1);
FuelPph1=props.globals.getNode("engines/engine[0]/fuel-flow_pph",1); FuelPph1=props.globals.getNode("engines/engine[0]/fuel-flow_pph",1);
FuelPph2=props.globals.getNode("engines/engine[1]/fuel-flow_pph",1); FuelPph2=props.globals.getNode("engines/engine[1]/fuel-flow_pph",1);
FuelDensity = 6.0; FuelDensity = 6.0;
FMS_VNAV =["VNV","FMS"];
NAV_SRC = ["VOR1","VOR2","ILS1","ILS2","FMS"];
get_pointer_offset = func{ get_pointer_offset = func{
var test=arg[0]; var test=arg[0];
@ -37,15 +44,31 @@ get_pointer_offset = func{
update_pfd = func{ update_pfd = func{
NavPtr1_offset.setValue(get_pointer_offset(NavPtr1.getValue())); NavPtr1_offset.setValue(get_pointer_offset(NavPtr1.getValue()));
NavPtr2_offset.setValue(get_pointer_offset(NavPtr2.getValue())); NavPtr2_offset.setValue(get_pointer_offset(NavPtr2.getValue()));
var id = " ";
if(props.globals.getNode("/instrumentation/nav/data-is-valid").getBoolValue()){ var nm_calc=0.0;
nm_calc = getprop("/instrumentation/nav/nav-distance"); if(fms_enabled ==0){
if(props.globals.getNode("/instrumentation/nav/data-is-valid").getBoolValue()){
nm_calc = getprop("/instrumentation/nav/nav-distance");
if(nm_calc == nil){nm_calc = 0.0;}
nm_calc = 0.000539 * nm_calc;
if(getprop("/instrumentation/nav/has-gs")){NavType.setValue(2);}
id = getprop("instrumentation/nav/nav-id");
if(id ==nil){id= " ";}
}
}else{
nm_calc = getprop("/autopilot/route-manager/wp/dist");
if(nm_calc == nil){nm_calc = 0.0;} if(nm_calc == nil){nm_calc = 0.0;}
nm_calc = 0.000539 * nm_calc; id = getprop("autopilot/route-manager/wp/id");
NavDist.setValue(nm_calc); if(id ==nil){id= " ";}
} }
NavDist.setValue(nm_calc);
var ns= NavType.getValue();
setprop("/instrumentation/primus1000/nav-string",NAV_SRC[ns]);
setprop("/instrumentation/primus1000/nav-id",id);
} }
update_mfd = func{ update_mfd = func{
} }
@ -79,6 +102,18 @@ update_eicas = func{
update_fuel(); update_fuel();
} }
setlistener("/instrumentation/primus1000/dc550/fms", func {
var mode = cmdarg().getValue();
FMSMode.setValue(FMS_VNAV[mode]);
if(mode){NavType.setValue(4);
fms_enabled=1;
}else{
NavType.setValue(0);
fms_enabled=0;
}
});
update_p1000 = func { update_p1000 = func {
update_pfd(); update_pfd();
@ -99,6 +134,9 @@ setlistener("/sim/signals/fdm-initialized", func {
DC550.getNode("ttg",1).setBoolValue(0); DC550.getNode("ttg",1).setBoolValue(0);
DC550.getNode("et",1).setBoolValue(0); DC550.getNode("et",1).setBoolValue(0);
DC550.getNode("fms",1).setBoolValue(0); DC550.getNode("fms",1).setBoolValue(0);
FMSMode.setValue(" VNV");
NavType.setIntValue(0);
NavString.setValue("VOR1");
RAmode.setValue(0.0); RAmode.setValue(0.0);
NavDist.setValue(0.0); NavDist.setValue(0.0);
Hyd1.setValue(0.0); Hyd1.setValue(0.0);

View file

@ -1,138 +1,217 @@
<!-- <!--
Syd Adams Syd Adams
Primus 1000 MFD hotspots Primus 1000 MFD hotspots
--> -->
<PropertyList> <PropertyList>
<name>MFD hotspots</name> <name>MFD hotspots</name>
<w-base>180</w-base> <w-base>180</w-base>
<h-base>240</h-base> <h-base>240</h-base>
<w>180</w> <w>180</w>
<h>240</h> <h>240</h>
<layers> <layers>
</layers> <layer>
<actions> <name>NAV/SRC</name>
<type>text</type>
<font>arial_black</font>
<point-size>7</point-size>
<color>
<red>0.9</red>
<green>0.2</green>
<blue>0.6</blue>
</color>
<chunks>
<chunk>
<type>text-value</type>
<property>/instrumentation/primus1000/nav-string</property>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>48</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>100</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>NAV/DST</name>
<type>text</type>
<font>arial_black</font>
<point-size>7</point-size>
<color>
<red>0.9</red>
<green>0.2</green>
<blue>0.6</blue>
</color>
<chunks>
<chunk>
<type>number-value</type>
<property>/instrumentation/primus1000/nav-dist-nm</property>
<format>%3.1f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>48</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>93</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>NAV/ID</name>
<type>text</type>
<font>arial_black</font>
<point-size>7</point-size>
<color>
<red>0.9</red>
<green>0.2</green>
<blue>0.6</blue>
</color>
<chunks>
<chunk>
<type>text-value</type>
<property>/instrumentation/primus1000/nav-id</property>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>48</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>86</offset>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<!-- <!--
<action> <action>
<name>bezel outline</name> <name>bezel outline</name>
<button>0</button> <button>0</button>
<x>-90</x> <x>-90</x>
<y>-120</y> <y>-120</y>
<w>180</w> <w>180</w>
<h>240</h> <h>240</h>
</action> </action>
--> -->
<action>
<name>Alt decrease</name>
<button>0</button>
<x>67</x>
<y>-110</y>
<w>8</w>
<h>14</h>
<binding>
<command>property-adjust</command>
<property>autopilot/settings/target-altitude-ft</property>
<step>-100</step>
<min>0</min>
<max>99999</max>
<wrap>0</wrap>
</binding>
</action>
<action> <action>
<name>Alt decrease</name> <name>Alt increase</name>
<button>0</button> <button>0</button>
<x>67</x> <x>75</x>
<y>-110</y> <y>-110</y>
<w>8</w> <w>8</w>
<h>14</h> <h>14</h>
<binding> <binding>
<command>property-adjust</command> <command>property-adjust</command>
<property>autopilot/settings/target-altitude-ft</property> <property>autopilot/settings/target-altitude-ft</property>
<step>-100</step> <step>100</step>
<min>0</min> <min>0</min>
<max>99999</max> <max>99999</max>
<wrap>0</wrap> <wrap>0</wrap>
</binding> </binding>
</action> </action>
<action> <action>
<name>Alt increase</name> <name>mode1</name>
<button>0</button> <button>0</button>
<x>75</x> <x>-70</x>
<y>-110</y> <y>-110</y>
<w>8</w> <w>14</w>
<h>14</h> <h>10</h>
<binding> <binding>
<command>property-adjust</command> </binding>
<property>autopilot/settings/target-altitude-ft</property> </action>
<step>100</step>
<min>0</min>
<max>99999</max>
<wrap>0</wrap>
</binding>
</action>
<action> <action>
<name>mode1</name> <name>mode2</name>
<button>0</button> <button>0</button>
<x>-70</x> <x>-50</x>
<y>-110</y> <y>-110</y>
<w>14</w> <w>18</w>
<h>10</h> <h>10</h>
<binding> <binding>
</binding> </binding>
</action> </action>
<action>
<name>mode3</name>
<button>0</button>
<x>-28</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action> <action>
<name>mode2</name> <name>mode4</name>
<button>0</button> <button>0</button>
<x>-50</x> <x>-7</x>
<y>-110</y> <y>-110</y>
<w>18</w> <w>18</w>
<h>10</h> <h>10</h>
<binding> <binding>
</binding> </binding>
</action> </action>
<action>
<name>mode5</name>
<button>0</button>
<x>14</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action> <action>
<name>mode3</name> <name>mode6</name>
<button>0</button> <button>0</button>
<x>-28</x> <x>36</x>
<y>-110</y> <y>-110</y>
<w>18</w> <w>18</w>
<h>10</h> <h>10</h>
<binding> <binding>
</binding> </binding>
</action> </action>
</actions>
<action>
<name>mode4</name>
<button>0</button>
<x>-7</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode5</name>
<button>0</button>
<x>14</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode6</name>
<button>0</button>
<x>36</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
</actions>
</PropertyList> </PropertyList>

View file

@ -1,133 +1,208 @@
<!-- <!--
Syd Adams Syd Adams
Primus 1000 PFD hotspots Primus 1000 PFD hotspots
--> -->
<PropertyList> <PropertyList>
<name>PFD hotspots</name> <name>PFD hotspots</name>
<w-base>180</w-base> <w-base>180</w-base>
<h-base>240</h-base> <h-base>240</h-base>
<w>180</w> <w>180</w>
<h>240</h> <h>240</h>
<layers> <layers>
</layers> <layer>
<actions> <name>NAV/FMS</name>
<type>text</type>
<font>arial_black</font>
<point-size>4.5</point-size>
<color>
<red>0.9</red>
<green>0.2</green>
<blue>0.6</blue>
</color>
<chunks>
<chunk>
<type>text-value</type>
<property>/instrumentation/primus1000/fms-mode</property>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>28</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>74</offset>
</transformation>
</transformations>
</layer>
<!-- ************* SELECT BARO / RA MODE *****************--> <layer>
<!-- <name>NAV/SRC</name>
<action> <type>text</type>
<name>bezel outline</name> <font>arial_black</font>
<button>0</button> <point-size>5</point-size>
<x>-90</x> <color>
<y>-120</y> <red>0.1</red>
<w>180</w> <green>0.9</green>
<h>240</h> <blue>0.4</blue>
</action> </color>
--> <chunks>
<chunk>
<type>text-value</type>
<property>/instrumentation/primus1000/nav-string</property>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>35</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-1</offset>
</transformation>
</transformations>
</layer>
<action> <layer>
<name>select ra / baro alt mode</name> <name>NAV/DST</name>
<button>0</button> <type>text</type>
<x>-58</x> <font>arial_black</font>
<y>-103</y> <point-size>5</point-size>
<w>18</w> <color>
<h>12</h> <red>0.1</red>
<binding> <green>0.9</green>
<command>property-toggle</command> <blue>0.4</blue>
<property>/instrumentation/primus1000/ra-mode</property> </color>
<min>0</min> <chunks>
<max>1</max> <chunk>
</binding> <type>number-value</type>
</action> <property>/instrumentation/primus1000/nav-dist-nm</property>
<format>%3.1f</format>
</chunk>
</chunks>
<transformations>
<transformation>
<type>x-shift</type>
<offset>35</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-5</offset>
</transformation>
</transformations>
</layer>
<!-- reset baro --> </layers>
<action> <actions>
<name>reset inhg</name> <!--select BARO/RA MODE-->
<button>0</button>
<x>44</x>
<y>-103</y>
<w>18</w>
<h>12</h>
<binding>
<command>property-assign</command>
<property>instrumentation/altimeter/setting-inhg</property>
<value>29.92</value>
</binding>
</action>
<!-- adjust inhg --> <action>
<action> <name>select ra / baro alt mode</name>
<name>calibrate inhg down fine</name> <button>0</button>
<button>0</button> <x>-58</x>
<x>67</x> <y>-103</y>
<y>-110</y> <w>18</w>
<w>8</w> <h>12</h>
<h>14</h> <binding>
<binding> <command>property-toggle</command>
<command>property-adjust</command> <property>/instrumentation/primus1000/ra-mode</property>
<property>/instrumentation/altimeter/setting-inhg</property> <min>0</min>
<step>-0.01</step> <max>1</max>
<min>26.0</min> </binding>
<max>33.0</max> </action>
<wrap>false</wrap>
</binding>
</action>
<action> <!--reset baro-->
<name>calibrate inhg down coarse</name>
<button>1</button>
<x>67</x>
<y>-110</y>
<w>8</w>
<h>14</h>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step>-0.1</step>
<min>26.0</min>
<max>33.0</max>
<wrap>false</wrap>
</binding>
</action>
<action> <action>
<name>calibrate inhg up fine</name> <name>reset inhg</name>
<button>0</button> <button>0</button>
<x>75</x> <x>44</x>
<y>-110</y> <y>-103</y>
<w>8</w> <w>18</w>
<h>14</h> <h>12</h>
<binding> <binding>
<command>property-adjust</command> <command>property-assign</command>
<property>/instrumentation/altimeter/setting-inhg</property> <property>instrumentation/altimeter/setting-inhg</property>
<step>0.01</step> <value>29.92</value>
<min>26.0</min> </binding>
<max>33.0</max> </action>
<wrap>false</wrap>
</binding>
</action>
<action> <!--adjust inhg-->
<name>calibrate inhg up coarse</name>
<button>1</button>
<x>75</x>
<y>-110</y>
<w>8</w>
<h>14</h>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step>0.1</step>
<min>26.0</min>
<max>33.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<name>calibrate inhg down fine</name>
<button>0</button>
<x>67</x>
<y>-110</y>
<w>8</w>
<h>14</h>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step>-0.01</step>
<min>26.0</min>
<max>33.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<name>calibrate inhg down coarse</name>
<button>1</button>
<x>67</x>
<y>-110</y>
<w>8</w>
<h>14</h>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step>-0.1</step>
<min>26.0</min>
<max>33.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<name>calibrate inhg up fine</name>
<button>0</button>
<x>75</x>
<y>-110</y>
<w>8</w>
<h>14</h>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step>0.01</step>
<min>26.0</min>
<max>33.0</max>
<wrap>false</wrap>
</binding>
</action>
<action>
<name>calibrate inhg up coarse</name>
<button>1</button>
<x>75</x>
<y>-110</y>
<w>8</w>
<h>14</h>
<binding>
<command>property-adjust</command>
<property>/instrumentation/altimeter/setting-inhg</property>
<step>0.1</step>
<min>26.0</min>
<max>33.0</max>
<wrap>false</wrap>
</binding>
</action>
</actions>
</actions>
</PropertyList> </PropertyList>

File diff suppressed because it is too large Load diff

View file

@ -753,58 +753,6 @@ Primus 1000 Primary Flight Display
</axis> </axis>
</animation> </animation>
<animation>
<type>textranslate</type>
<object-name>inhgtxt</object-name>
<property>instrumentation/altimeter/setting-inhg</property>
<factor>0.01</factor>
<step>10</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>inhgtxt.001</object-name>
<property>instrumentation/altimeter/setting-inhg</property>
<factor>0.1</factor>
<step>1</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>inhgtxt.002</object-name>
<property>instrumentation/altimeter/setting-inhg</property>
<factor>1.0</factor>
<step>0.1</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>textranslate</type>
<object-name>inhgtxt.003</object-name>
<property>instrumentation/altimeter/setting-inhg</property>
<factor>10.0</factor>
<step>0.01</step>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>crstext</object-name> <object-name>crstext</object-name>
@ -935,18 +883,6 @@ Primus 1000 Primary Flight Display
</axis> </axis>
</animation> </animation>
<animation>
<type>textranslate</type>
<object-name>altmsg</object-name>
<property>instrumentation/primus1000/ra-mode</property>
<factor>0.0305</factor>
<axis>
<x>0</x>
<y>-1</y>
<z>0</z>
</axis>
</animation>
<animation> <animation>
<type>textranslate</type> <type>textranslate</type>
<object-name>crsmsg</object-name> <object-name>crsmsg</object-name>

BIN
Fonts/arial_black.txf Normal file

Binary file not shown.

BIN
Fonts/condensed.txf Normal file

Binary file not shown.