Sim: Add MCDU dialogs!
This commit is contained in:
parent
6dd36477ba
commit
30bf47f753
7 changed files with 2695 additions and 7 deletions
|
@ -328,6 +328,24 @@
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<label>Show Left MCDU</label>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>
|
||||||
|
canvas_mcdu.showMCDU1();
|
||||||
|
</script>
|
||||||
|
</binding>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<label>Show Right MCDU</label>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>
|
||||||
|
canvas_mcdu.showMCDU2();
|
||||||
|
</script>
|
||||||
|
</binding>
|
||||||
|
</item>
|
||||||
</menu>
|
</menu>
|
||||||
</default>
|
</default>
|
||||||
</menubar>
|
</menubar>
|
||||||
|
|
|
@ -1741,13 +1741,13 @@ var MCDU_update_fast = maketimer(0.125, func {
|
||||||
});
|
});
|
||||||
|
|
||||||
var showMCDU1 = func {
|
var showMCDU1 = func {
|
||||||
var dlg = canvas.Window.new([512, 432], "dialog").set("resize", 1);
|
var mcdu1_dlg = gui.Dialog.new("sim/gui/dialogs/mcdu1/dialog", "Aircraft/IDG-A32X/Systems/mcdu1-dlg.xml");
|
||||||
dlg.setCanvas(MCDU1_display);
|
mcdu1_dlg.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
var showMCDU2 = func {
|
var showMCDU2 = func {
|
||||||
var dlg = canvas.Window.new([512, 432], "dialog").set("resize", 1);
|
var mcdu2_dlg = gui.Dialog.new("sim/gui/dialogs/mcdu2/dialog", "Aircraft/IDG-A32X/Systems/mcdu2-dlg.xml");
|
||||||
dlg.setCanvas(MCDU2_display);
|
mcdu2_dlg.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
setlistener("/MCDU[0]/page", func {
|
setlistener("/MCDU[0]/page", func {
|
||||||
|
|
|
@ -9,7 +9,20 @@
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
|
|
||||||
<path>res/MCDU1.ac</path>
|
<path>res/MCDU1.ac</path>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>mcdu1.screen</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>canvas_mcdu.showMCDU1();</script>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>radnav</object-name>
|
<object-name>radnav</object-name>
|
||||||
|
|
|
@ -9,7 +9,20 @@
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
|
|
||||||
<path>res/MCDU2.ac</path>
|
<path>res/MCDU2.ac</path>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>mcdu2.screen</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>canvas_mcdu.showMCDU2();</script>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>radnav</object-name>
|
<object-name>radnav</object-name>
|
||||||
|
|
1322
Systems/mcdu1-dlg.xml
Normal file
1322
Systems/mcdu1-dlg.xml
Normal file
File diff suppressed because it is too large
Load diff
1322
Systems/mcdu2-dlg.xml
Normal file
1322
Systems/mcdu2-dlg.xml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1 +1 @@
|
||||||
4661
|
4662
|
Reference in a new issue