1
0
Fork 0

Add full set of hardkeys to fg1000 PUI dialog.

This commit is contained in:
Stuart Buchanan 2018-01-10 22:12:47 +00:00
parent 9556b901ee
commit a25c66850a
4 changed files with 425 additions and 118 deletions

View file

@ -51,10 +51,10 @@ handleFreqTransferHold : func (value) { return emesary.Transmitter.ReceiptStatus
handleComVol : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, handleComVol : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; },
handleComVolToggle : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; },, handleComVolToggle : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; },,
handleDTO : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, handleDTO : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; },
handleFPL : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, handleFPL : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; },
handleCLR : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, handleClear : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; },
handleCLRHold : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; }, handleClearHold : func (value) { return emesary.Transmitter.ReceiptStatus_NotProcessed; },
# By default, the FMS knobs will select a new page. # By default, the FMS knobs will select a new page.
handleFMSOuter : func (value) { return me.page.mfd._pageGroupController.handleFMSOuter(value); }, handleFMSOuter : func (value) { return me.page.mfd._pageGroupController.handleFMSOuter(value); },
@ -71,7 +71,7 @@ handleAltInner : func (value) { return emesary.Transmitter.ReceiptStatus_NotProc
RegisterWithEmesary : func() RegisterWithEmesary : func()
{ {
if (me._recipient == nil){ if (me._recipient == nil){
me._recipient = emesary.Recipient.new("MFDPageController_" ~ me.page.device.designation); me._recipient = emesary.Recipient.new(me.page.pageName ~ "Controller_" ~ me.page.device.designation);
var pfd_obj = me.page.device; var pfd_obj = me.page.device;
var controller = me; var controller = me;
me._recipient.Receive = func(notification) me._recipient.Receive = func(notification)

View file

@ -190,7 +190,6 @@ var Surround =
assert(page != nil, "Unable to find page " ~ pageToLoad); assert(page != nil, "Unable to find page " ~ pageToLoad);
me.device.selectPage(page); me.device.selectPage(page);
me.hideMenu();
}, },
incrPageGroup : func(val) { incrPageGroup : func(val) {
var incr_or_decr = (val > 0) ? 1 : -1; var incr_or_decr = (val > 0) ? 1 : -1;

View file

@ -99,6 +99,8 @@ FASCIA = {
NOSE_UP : 43, NOSE_UP : 43,
NOSE_DOWN : 44, NOSE_DOWN : 44,
JOYSTICK_PRESS : 45
}; };
var SURFACE_TYPES = { var SURFACE_TYPES = {

View file

@ -75,6 +75,19 @@
<label>VOL</label> <label>VOL</label>
<pref-width>30</pref-width> <pref-width>30</pref-width>
<property>/gui/dialogs/fg1000/nav-vol</property> <property>/gui/dialogs/fg1000/nav-vol</property>
<binding><command>dialog-apply</command></binding>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.NAV_VOL, Value: getprop("/gui/dialogs/fg1000/nav-vol") }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</dial> </dial>
<button> <button>
@ -84,22 +97,16 @@
<pref-height>30</pref-height> <pref-height>30</pref-height>
<halign>right</halign> <halign>right</halign>
<binding> <binding>
<command>property-swap</command> <command>nasal</command>
<condition> <script>
<not> var notification = notifications.PFDEventNotification.new(
<property>/instrumentation/nav-selected</property> "MFD",
</not> 1,
</condition> notifications.PFDEventNotification.HardKeyPushed,
<property>/instrumentation/nav[0]/frequencies/selected-mhz</property> { Id: fg1000.FASCIA.NAV_VOL_TOGGLE, Value: 1 }
<property>/instrumentation/nav[0]/frequencies/standby-mhz</property> );
</binding> emesary.GlobalTransmitter.NotifyAll(notification);
<binding> </script>
<command>property-swap</command>
<condition>
<property>/instrumentation/nav-selected</property>
</condition>
<property>/instrumentation/nav[1]/frequencies/selected-mhz</property>
<property>/instrumentation/nav[1]/frequencies/standby-mhz</property>
</binding> </binding>
</button> </button>
@ -114,12 +121,36 @@
<legend>&lt;&lt;</legend> <legend>&lt;&lt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.NAV_OUTER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<name>nav-decrease-KHz</name> <name>nav-decrease-KHz</name>
<legend>&lt;</legend> <legend>&lt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.NAV_INNER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
@ -127,12 +158,36 @@
<legend>&gt;</legend> <legend>&gt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.NAV_INNER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<name>nav-increase-MHz</name> <name>nav-increase-MHz</name>
<legend>&gt;&gt;</legend> <legend>&gt;&gt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.NAV_OUTER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
</group> </group>
@ -143,8 +198,16 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<default-padding>0</default-padding> <default-padding>0</default-padding>
<binding> <binding>
<command>property-toggle</command> <command>nasal</command>
<property>/instrumentation/nav-selected</property> <script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.NAV_TOGGLE, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
@ -155,6 +218,7 @@
<name>hdg</name> <name>hdg</name>
<width>20</width> <width>20</width>
<property>/gui/dialogs/fg1000/hdg</property> <property>/gui/dialogs/fg1000/hdg</property>
<binding><command>dialog-apply</command></binding>
</dial> </dial>
<button> <button>
@ -163,8 +227,16 @@
<pref-width>75</pref-width> <pref-width>75</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-toggle</command> <command>nasal</command>
<property>/instrumentation/nav-selected</property> <script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.HEADING_PRESS, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
@ -323,24 +395,72 @@
<legend>&lt;&lt;</legend> <legend>&lt;&lt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.ALT_OUTER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<name>alt-decr-small</name> <name>alt-decr-small</name>
<legend>&lt;</legend> <legend>&lt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.ALT_INNER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<name>alt-incr-small</name> <name>alt-incr-small</name>
<legend>&gt;</legend> <legend>&gt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.ALT_INNER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<name>alt-incr-large</name> <name>alt-incr-large</name>
<legend>&gt;&gt;</legend> <legend>&gt;&gt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.ALT_OUTER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
</group> </group>
@ -399,51 +519,6 @@
append(listeners, softkey_listener); append(listeners, softkey_listener);
append(listeners, setlistener("/sim/gui/dialogs/fg1000/fms-incr-large-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.FMS_OUTER, Value: 1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/fms-incr-small-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.FMS_INNER, Value: 1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/fms-decr-large-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.FMS_OUTER, Value: -1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/fms-decr-small-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.FMS_INNER, Value: -1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/range-decr-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.RANGE, Value: -1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/range-incr-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.RANGE, Value: 1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/crsr-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.FMS_CRSR, Value: 1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/ent-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.ENT, Value: 1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
append(listeners, setlistener("/sim/gui/dialogs/fg1000/clr-pressed", func(v) {
var notification = notifications.PFDEventNotification.new("MFD", 1, notifications.PFDEventNotification.HardKeyPushed, { Id: fg1000.FASCIA.CLR, Value: 1.0 });
emesary.GlobalTransmitter.NotifyAll(notification);
} ));
]]></load></nasal> ]]></load></nasal>
</canvas> </canvas>
@ -623,6 +698,7 @@
<label>VOL</label> <label>VOL</label>
<pref-width>30</pref-width> <pref-width>30</pref-width>
<property>/gui/dialogs/fg1000/com-vol</property> <property>/gui/dialogs/fg1000/com-vol</property>
<binding><command>dialog-apply</command></binding>
</dial> </dial>
<button> <button>
@ -632,22 +708,16 @@
<pref-height>30</pref-height> <pref-height>30</pref-height>
<halign>left</halign> <halign>left</halign>
<binding> <binding>
<command>property-swap</command> <command>nasal</command>
<condition> <script>
<not> var notification = notifications.PFDEventNotification.new(
<property>/instrumentation/com-selected</property> "MFD",
</not> 1,
</condition> notifications.PFDEventNotification.HardKeyPushed,
<property>/instrumentation/com[0]/frequencies/selected-mhz</property> { Id: fg1000.FASCIA.COM_VOL_TOGGLE, Value: 1.0 }
<property>/instrumentation/com[0]/frequencies/standby-mhz</property> );
</binding> emesary.GlobalTransmitter.NotifyAll(notification);
<binding> </script>
<command>property-swap</command>
<condition>
<property>/instrumentation/com-selected</property>
</condition>
<property>/instrumentation/com[1]/frequencies/selected-mhz</property>
<property>/instrumentation/com[1]/frequencies/standby-mhz</property>
</binding> </binding>
</button> </button>
@ -662,12 +732,36 @@
<legend>&lt;&lt;</legend> <legend>&lt;&lt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.COM_OUTER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<name>com-decrease-KHz</name> <name>com-decrease-KHz</name>
<legend>&lt;</legend> <legend>&lt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.COM_INNER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
@ -675,12 +769,36 @@
<legend>&gt;</legend> <legend>&gt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.COM_INNER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<name>com-increase-MHz</name> <name>com-increase-MHz</name>
<legend>&gt;&gt;</legend> <legend>&gt;&gt;</legend>
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.COM_OUTER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
</group> </group>
@ -691,8 +809,16 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<default-padding>0</default-padding> <default-padding>0</default-padding>
<binding> <binding>
<command>property-toggle</command> <command>nasal</command>
<property>/instrumentation/nav-selected</property> <script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.COM_TOGGLE, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
@ -704,6 +830,7 @@
<name>baro</name> <name>baro</name>
<width>20</width> <width>20</width>
<property>/gui/dialogs/fg1000/baro</property> <property>/gui/dialogs/fg1000/baro</property>
<binding><command>dialog-apply</command></binding>
</dial> </dial>
<text> <text>
@ -723,8 +850,16 @@
<pref-width>75</pref-width> <pref-width>75</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-toggle</command> <command>nasal</command>
<property>/instrumentation/com-selected</property> <script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.CRS_CENTER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
@ -744,9 +879,16 @@
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/range-incr-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.RANGE, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
<button> <button>
@ -755,9 +897,16 @@
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/range-decr-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.RANGE, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
</group> </group>
@ -772,6 +921,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>map-up</name> <name>map-up</name>
<legend>^</legend> <legend>^</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.JOYSTICK_VERTICAL, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<row>1</row><col>0</col> <row>1</row><col>0</col>
@ -779,6 +940,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>map-left</name> <name>map-left</name>
<legend>&lt;</legend> <legend>&lt;</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.JOYSTICK_HORIZONTAL, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<row>1</row><col>1</col> <row>1</row><col>1</col>
@ -786,6 +959,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>map-ptr</name> <name>map-ptr</name>
<legend>PTR</legend> <legend>PTR</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.JOYSTICK_PRESS, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<row>1</row><col>2</col> <row>1</row><col>2</col>
@ -793,6 +978,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>map-right</name> <name>map-right</name>
<legend>&gt;</legend> <legend>&gt;</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.JOYSTICK_HORIZONTAL, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<row>2</row><col>1</col> <row>2</row><col>1</col>
@ -800,6 +997,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>map-down</name> <name>map-down</name>
<legend>v</legend> <legend>v</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.JOYSTICK_VERTICAL, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
</group> </group>
@ -813,6 +1022,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>DTO</name> <name>DTO</name>
<legend>DTO</legend> <legend>DTO</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.DTO, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<col>1</col><row>0</row> <col>1</col><row>0</row>
@ -820,6 +1041,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>menu</name> <name>menu</name>
<legend>MENU</legend> <legend>MENU</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.MENU, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
@ -828,6 +1061,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>FPL</name> <name>FPL</name>
<legend>FPL</legend> <legend>FPL</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.FPL, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
<col>1</col><row>1</row> <col>1</col><row>1</row>
@ -835,6 +1080,18 @@
<pref-height>25</pref-height> <pref-height>25</pref-height>
<name>PROC</name> <name>PROC</name>
<legend>PROC</legend> <legend>PROC</legend>
<binding>
<command>nasal</command>
<script>
var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.PROC, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding>
</button> </button>
<button> <button>
@ -844,9 +1101,16 @@
<name>CLR</name> <name>CLR</name>
<legend>CLR</legend> <legend>CLR</legend>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/clr-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.CLR, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
<button> <button>
@ -856,9 +1120,16 @@
<name>ENT</name> <name>ENT</name>
<legend>ENT</legend> <legend>ENT</legend>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/ent-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.ENT, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
</group> </group>
@ -876,9 +1147,16 @@
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/fms-decr-large-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.FMS_OUTER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
<button> <button>
@ -887,9 +1165,16 @@
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/fms-decr-small-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.FMS_INNER, Value: -1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
<button> <button>
@ -898,9 +1183,16 @@
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/fms-incr-small-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.FMS_INNER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
<button> <button>
@ -909,9 +1201,16 @@
<pref-width>25</pref-width> <pref-width>25</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/fms-incr-large-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.FMS_OUTER, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>
</group> </group>
@ -922,9 +1221,16 @@
<pref-width>50</pref-width> <pref-width>50</pref-width>
<pref-height>25</pref-height> <pref-height>25</pref-height>
<binding> <binding>
<command>property-assign</command> <command>nasal</command>
<property>/sim/gui/dialogs/fg1000/crsr-pressed</property> <script>
<value>1</value> var notification = notifications.PFDEventNotification.new(
"MFD",
1,
notifications.PFDEventNotification.HardKeyPushed,
{ Id: fg1000.FASCIA.FMS_CRSR, Value: 1.0 }
);
emesary.GlobalTransmitter.NotifyAll(notification);
</script>
</binding> </binding>
</button> </button>