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 ########
FDMODE = props.globals.getNode("/instrumentation/primus1000/fdmode",1);
NavPtr1=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr",1);
NavPtr2=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr",1);
NavPtr1_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr-hdg-offset",1);
NavPtr2_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr-hdg-offset",1);
RAmode=props.globals.getNode("/instrumentation/primus1000/ra-mode",1);
DC550 = props.globals.getNode("/instrumentation/primus1000/dc550",1);
var FDMODE = props.globals.getNode("/instrumentation/primus1000/fdmode",1);
var NavPtr1=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr",1);
var NavPtr2=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr",1);
var NavPtr1_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav1ptr-hdg-offset",1);
var NavPtr2_offset=props.globals.getNode("/instrumentation/primus1000/dc550/nav2ptr-hdg-offset",1);
var RAmode=props.globals.getNode("/instrumentation/primus1000/ra-mode",1);
var DC550 = props.globals.getNode("/instrumentation/primus1000/dc550",1);
var fms_enabled =0;
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);
Hyd1=props.globals.getNode("systems/hydraulic/pump-psi[0]",1);
Hyd2=props.globals.getNode("systems/hydraulic/pump-psi[1]",1);
FuelPph1=props.globals.getNode("engines/engine[0]/fuel-flow_pph",1);
FuelPph2=props.globals.getNode("engines/engine[1]/fuel-flow_pph",1);
FuelDensity = 6.0;
FMS_VNAV =["VNV","FMS"];
NAV_SRC = ["VOR1","VOR2","ILS1","ILS2","FMS"];
get_pointer_offset = func{
var test=arg[0];
@ -37,15 +44,31 @@ get_pointer_offset = func{
update_pfd = func{
NavPtr1_offset.setValue(get_pointer_offset(NavPtr1.getValue()));
NavPtr2_offset.setValue(get_pointer_offset(NavPtr2.getValue()));
if(props.globals.getNode("/instrumentation/nav/data-is-valid").getBoolValue()){
nm_calc = getprop("/instrumentation/nav/nav-distance");
var id = " ";
var nm_calc=0.0;
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;}
nm_calc = 0.000539 * nm_calc;
NavDist.setValue(nm_calc);
}
id = getprop("autopilot/route-manager/wp/id");
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{
}
@ -79,6 +102,18 @@ update_eicas = func{
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_pfd();
@ -99,6 +134,9 @@ setlistener("/sim/signals/fdm-initialized", func {
DC550.getNode("ttg",1).setBoolValue(0);
DC550.getNode("et",1).setBoolValue(0);
DC550.getNode("fms",1).setBoolValue(0);
FMSMode.setValue(" VNV");
NavType.setIntValue(0);
NavString.setValue("VOR1");
RAmode.setValue(0.0);
NavDist.setValue(0.0);
Hyd1.setValue(0.0);

View file

@ -1,138 +1,217 @@
<!--
Syd Adams
Primus 1000 MFD hotspots
-->
<PropertyList>
<name>MFD hotspots</name>
<w-base>180</w-base>
<h-base>240</h-base>
<w>180</w>
<h>240</h>
<name>MFD hotspots</name>
<w-base>180</w-base>
<h-base>240</h-base>
<w>180</w>
<h>240</h>
<layers>
<layer>
<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>
<layers>
</layers>
<actions>
<!--
<action>
<name>bezel outline</name>
<button>0</button>
<x>-90</x>
<y>-120</y>
<w>180</w>
<h>240</h>
</action>
<action>
<name>bezel outline</name>
<button>0</button>
<x>-90</x>
<y>-120</y>
<w>180</w>
<h>240</h>
</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>
<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>
<name>Alt increase</name>
<button>0</button>
<x>75</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>
<name>Alt increase</name>
<button>0</button>
<x>75</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>
<name>mode1</name>
<button>0</button>
<x>-70</x>
<y>-110</y>
<w>14</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode1</name>
<button>0</button>
<x>-70</x>
<y>-110</y>
<w>14</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode2</name>
<button>0</button>
<x>-50</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode2</name>
<button>0</button>
<x>-50</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode3</name>
<button>0</button>
<x>-28</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode3</name>
<button>0</button>
<x>-28</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<action>
<name>mode4</name>
<button>0</button>
<x>-7</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
<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>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>
<action>
<name>mode6</name>
<button>0</button>
<x>36</x>
<y>-110</y>
<w>18</w>
<h>10</h>
<binding>
</binding>
</action>
</actions>
</PropertyList>
</actions>
</PropertyList>

View file

@ -1,133 +1,208 @@
<!--
Syd Adams
Primus 1000 PFD hotspots
-->
<PropertyList>
<name>PFD hotspots</name>
<w-base>180</w-base>
<h-base>240</h-base>
<w>180</w>
<h>240</h>
<name>PFD hotspots</name>
<w-base>180</w-base>
<h-base>240</h-base>
<w>180</w>
<h>240</h>
<layers>
</layers>
<actions>
<!-- ************* SELECT BARO / RA MODE *****************-->
<!--
<action>
<name>bezel outline</name>
<button>0</button>
<x>-90</x>
<y>-120</y>
<w>180</w>
<h>240</h>
</action>
-->
<action>
<name>select ra / baro alt mode</name>
<button>0</button>
<x>-58</x>
<y>-103</y>
<w>18</w>
<h>12</h>
<binding>
<command>property-toggle</command>
<property>/instrumentation/primus1000/ra-mode</property>
<min>0</min>
<max>1</max>
</binding>
</action>
<layers>
<layer>
<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>
<!-- reset baro -->
<layer>
<name>NAV/SRC</name>
<type>text</type>
<font>arial_black</font>
<point-size>5</point-size>
<color>
<red>0.1</red>
<green>0.9</green>
<blue>0.4</blue>
</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>
<name>reset inhg</name>
<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>
<layer>
<name>NAV/DST</name>
<type>text</type>
<font>arial_black</font>
<point-size>5</point-size>
<color>
<red>0.1</red>
<green>0.9</green>
<blue>0.4</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>35</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-5</offset>
</transformation>
</transformations>
</layer>
<!-- adjust inhg -->
<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>
</layers>
<actions>
<!--select BARO/RA MODE-->
<action>
<name>select ra / baro alt mode</name>
<button>0</button>
<x>-58</x>
<y>-103</y>
<w>18</w>
<h>12</h>
<binding>
<command>property-toggle</command>
<property>/instrumentation/primus1000/ra-mode</property>
<min>0</min>
<max>1</max>
</binding>
</action>
<!--reset baro-->
<action>
<name>reset inhg</name>
<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>
<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>

File diff suppressed because it is too large Load diff

View file

@ -753,58 +753,6 @@ Primus 1000 Primary Flight Display
</axis>
</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>
<type>textranslate</type>
<object-name>crstext</object-name>
@ -935,18 +883,6 @@ Primus 1000 Primary Flight Display
</axis>
</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>
<type>textranslate</type>
<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.