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>
<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> <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>
<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> <action>
<name>mode1</name> <name>mode1</name>
<button>0</button> <button>0</button>
<x>-70</x> <x>-70</x>
<y>-110</y> <y>-110</y>
<w>14</w> <w>14</w>
<h>10</h> <h>10</h>
<binding> <binding>
</binding> </binding>
</action> </action>
<action>
<action> <name>mode2</name>
<name>mode2</name> <button>0</button>
<button>0</button> <x>-50</x>
<x>-50</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>
<action> <name>mode3</name>
<name>mode3</name> <button>0</button>
<button>0</button> <x>-28</x>
<x>-28</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>
<action> <name>mode4</name>
<name>mode4</name> <button>0</button>
<button>0</button> <x>-7</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>
<action> <name>mode5</name>
<name>mode5</name> <button>0</button>
<button>0</button> <x>14</x>
<x>14</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>
<action> <name>mode6</name>
<name>mode6</name> <button>0</button>
<button>0</button> <x>36</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>
</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>
<!-- ************* SELECT BARO / RA MODE *****************--> <font>arial_black</font>
<!-- <point-size>4.5</point-size>
<action> <color>
<name>bezel outline</name> <red>0.9</red>
<button>0</button> <green>0.2</green>
<x>-90</x> <blue>0.6</blue>
<y>-120</y> </color>
<w>180</w> <chunks>
<h>240</h> <chunk>
</action> <type>text-value</type>
--> <property>/instrumentation/primus1000/fms-mode</property>
</chunk>
<action> </chunks>
<name>select ra / baro alt mode</name> <transformations>
<button>0</button> <transformation>
<x>-58</x> <type>x-shift</type>
<y>-103</y> <offset>28</offset>
<w>18</w> </transformation>
<h>12</h> <transformation>
<binding> <type>y-shift</type>
<command>property-toggle</command> <offset>74</offset>
<property>/instrumentation/primus1000/ra-mode</property> </transformation>
<min>0</min> </transformations>
<max>1</max> </layer>
</binding>
</action>
<!-- 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> <layer>
<name>reset inhg</name> <name>NAV/DST</name>
<button>0</button> <type>text</type>
<x>44</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-assign</command> <blue>0.4</blue>
<property>instrumentation/altimeter/setting-inhg</property> </color>
<value>29.92</value> <chunks>
</binding> <chunk>
</action> <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 --> </layers>
<action>
<name>calibrate inhg down fine</name> <actions>
<button>0</button> <!--select BARO/RA MODE-->
<x>67</x>
<y>-110</y> <action>
<w>8</w> <name>select ra / baro alt mode</name>
<h>14</h> <button>0</button>
<binding> <x>-58</x>
<command>property-adjust</command> <y>-103</y>
<property>/instrumentation/altimeter/setting-inhg</property> <w>18</w>
<step>-0.01</step> <h>12</h>
<min>26.0</min> <binding>
<max>33.0</max> <command>property-toggle</command>
<wrap>false</wrap> <property>/instrumentation/primus1000/ra-mode</property>
</binding> <min>0</min>
</action> <max>1</max>
</binding>
<action> </action>
<name>calibrate inhg down coarse</name>
<button>1</button> <!--reset baro-->
<x>67</x>
<y>-110</y> <action>
<w>8</w> <name>reset inhg</name>
<h>14</h> <button>0</button>
<binding> <x>44</x>
<command>property-adjust</command> <y>-103</y>
<property>/instrumentation/altimeter/setting-inhg</property> <w>18</w>
<step>-0.1</step> <h>12</h>
<min>26.0</min> <binding>
<max>33.0</max> <command>property-assign</command>
<wrap>false</wrap> <property>instrumentation/altimeter/setting-inhg</property>
</binding> <value>29.92</value>
</action> </binding>
</action>
<action>
<name>calibrate inhg up fine</name> <!--adjust inhg-->
<button>0</button>
<x>75</x> <action>
<y>-110</y> <name>calibrate inhg down fine</name>
<w>8</w> <button>0</button>
<h>14</h> <x>67</x>
<binding> <y>-110</y>
<command>property-adjust</command> <w>8</w>
<property>/instrumentation/altimeter/setting-inhg</property> <h>14</h>
<step>0.01</step> <binding>
<min>26.0</min> <command>property-adjust</command>
<max>33.0</max> <property>/instrumentation/altimeter/setting-inhg</property>
<wrap>false</wrap> <step>-0.01</step>
</binding> <min>26.0</min>
</action> <max>33.0</max>
<wrap>false</wrap>
<action> </binding>
<name>calibrate inhg up coarse</name> </action>
<button>1</button>
<x>75</x> <action>
<y>-110</y> <name>calibrate inhg down coarse</name>
<w>8</w> <button>1</button>
<h>14</h> <x>67</x>
<binding> <y>-110</y>
<command>property-adjust</command> <w>8</w>
<property>/instrumentation/altimeter/setting-inhg</property> <h>14</h>
<step>0.1</step> <binding>
<min>26.0</min> <command>property-adjust</command>
<max>33.0</max> <property>/instrumentation/altimeter/setting-inhg</property>
<wrap>false</wrap> <step>-0.1</step>
</binding> <min>26.0</min>
</action> <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.