From 982d689be7cdcea463a2288cf92d97cc02829b76 Mon Sep 17 00:00:00 2001 From: Joshua Davidson <joshuadavidson2000@gmail.com> Date: Fri, 28 Sep 2018 22:23:50 -0400 Subject: [PATCH] MCDU: Make MCDU popup dialogs work in MCDU reworked nasal --- Systems/mcdu1-dlg.xml | 142 +++++++++++++++++++++--------------------- Systems/mcdu2-dlg.xml | 142 +++++++++++++++++++++--------------------- 2 files changed, 142 insertions(+), 142 deletions(-) diff --git a/Systems/mcdu1-dlg.xml b/Systems/mcdu1-dlg.xml index e3d6d50e..f0c6388f 100644 --- a/Systems/mcdu1-dlg.xml +++ b/Systems/mcdu1-dlg.xml @@ -56,7 +56,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.lskbutton("1");</script> + <script>mcdu.lskbutton("1", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -72,7 +72,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.lskbutton("2");</script> + <script>mcdu.lskbutton("2", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -88,7 +88,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.lskbutton("3");</script> + <script>mcdu.lskbutton("3", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -104,7 +104,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.lskbutton("4");</script> + <script>mcdu.lskbutton("4", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -120,7 +120,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.lskbutton("5");</script> + <script>mcdu.lskbutton("5", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -136,7 +136,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.lskbutton("6");</script> + <script>mcdu.lskbutton("6", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -152,7 +152,7 @@ </group> <canvas> - <name>mcdu1</name> + <name>mcdu</name> <valign>fill</valign> <halign>fill</halign> <stretch>false</stretch> @@ -161,17 +161,17 @@ <nasal> <load> <![CDATA[ - var mcdu1_canvas_dlg = canvas.get(cmdarg()); - var root = mcdu1_canvas_dlg.createGroup(); + var mcdu_canvas_dlg = canvas.get(cmdarg()); + var root = mcdu_canvas_dlg.createGroup(); root.setScale(0.285, 0.25); - mcdu1_canvas_dlg.setColorBackground(0, 0, 0, 1.0); + mcdu_canvas_dlg.setColorBackground(0, 0, 0, 1.0); root.createChild("image").set("src", "canvas://by-index/texture[10]"); ]]> </load> <unload> <![CDATA[ - mcdu1_canvas_dlg.del(); - mcdu1_canvas_dlg = nil; + mcdu_canvas_dlg.del(); + mcdu_canvas_dlg = nil; root = nil; ]]> </unload> @@ -191,7 +191,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.rskbutton("1");</script> + <script>mcdu.rskbutton("1", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -207,7 +207,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.rskbutton("2");</script> + <script>mcdu.rskbutton("2", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -223,7 +223,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.rskbutton("3");</script> + <script>mcdu.rskbutton("3", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -239,7 +239,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.rskbutton("4");</script> + <script>mcdu.rskbutton("4", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -255,7 +255,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.rskbutton("5");</script> + <script>mcdu.rskbutton("5", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -271,7 +271,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu1.rskbutton("6");</script> + <script>mcdu.rskbutton("6", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -310,7 +310,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.pagebutton("perf");</script> + <script>mcdu.pagebutton("perf", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -326,7 +326,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.pagebutton("init");</script> + <script>mcdu.pagebutton("init", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -342,7 +342,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.pagebutton("data");</script> + <script>mcdu.pagebutton("data", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -376,7 +376,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.pagebutton("f-pln");</script> + <script>mcdu.pagebutton("f-pln", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -392,7 +392,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.pagebutton("radnav");</script> + <script>mcdu.pagebutton("radnav", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -408,7 +408,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.pagebutton("fuel-pred");</script> + <script>mcdu.pagebutton("fuel-pred", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -436,7 +436,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.pagebutton("mcdu");</script> + <script>mcdu.pagebutton("mcdu", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -480,7 +480,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.arrowbutton("left");</script> + <script>mcdu.arrowbutton("left", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -498,7 +498,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.arrowbutton("right");</script> + <script>mcdu.arrowbutton("right", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -524,7 +524,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.arrowbutton("up");</script> + <script>mcdu.arrowbutton("up", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -542,7 +542,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu1.arrowbutton("down");</script> + <script>mcdu.arrowbutton("down", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -564,7 +564,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("1");</script> + <script>mcdu.button("1", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -582,7 +582,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("4");</script> + <script>mcdu.button("4", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -600,7 +600,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("7");</script> + <script>mcdu.button("7", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -618,7 +618,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("DOT");</script> + <script>mcdu.button("DOT", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -636,7 +636,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("2");</script> + <script>mcdu.button("2", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -654,7 +654,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("5");</script> + <script>mcdu.button("5", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -672,7 +672,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("8");</script> + <script>mcdu.button("8", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -690,7 +690,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("0");</script> + <script>mcdu.button("0", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -708,7 +708,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("3");</script> + <script>mcdu.button("3", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -726,7 +726,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("6");</script> + <script>mcdu.button("6", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -744,7 +744,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("9");</script> + <script>mcdu.button("9", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -762,7 +762,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("PLUSMINUS");</script> + <script>mcdu.button("PLUSMINUS", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -785,7 +785,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("A");</script> + <script>mcdu.button("A", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -803,7 +803,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("F");</script> + <script>mcdu.button("F", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -821,7 +821,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("K");</script> + <script>mcdu.button("K", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -839,7 +839,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("P");</script> + <script>mcdu.button("P", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -857,7 +857,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("U");</script> + <script>mcdu.button("U", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -875,7 +875,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("Z");</script> + <script>mcdu.button("Z", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -893,7 +893,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("B");</script> + <script>mcdu.button("B", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -911,7 +911,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("G");</script> + <script>mcdu.button("G", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -929,7 +929,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("L");</script> + <script>mcdu.button("L", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -947,7 +947,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("Q");</script> + <script>mcdu.button("Q", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -965,7 +965,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("V");</script> + <script>mcdu.button("V", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -983,7 +983,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("SLASH");</script> + <script>mcdu.button("SLASH", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1001,7 +1001,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("C");</script> + <script>mcdu.button("C", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1019,7 +1019,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("H");</script> + <script>mcdu.button("H", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1037,7 +1037,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("M");</script> + <script>mcdu.button("M", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1055,7 +1055,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("R");</script> + <script>mcdu.button("R", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1073,7 +1073,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("W");</script> + <script>mcdu.button("W", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1091,7 +1091,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("SP");</script> + <script>mcdu.button("SP", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1109,7 +1109,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("D");</script> + <script>mcdu.button("D", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1127,7 +1127,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("I");</script> + <script>mcdu.button("I", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1145,7 +1145,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("N");</script> + <script>mcdu.button("N", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1163,7 +1163,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("S");</script> + <script>mcdu.button("S", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1181,7 +1181,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("X");</script> + <script>mcdu.button("X", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1199,7 +1199,7 @@ <pref-width>25</pref-width> <!--binding> <command>nasal</command> - <script>mcdu1.button("OVFY");</script> + <script>mcdu.button("OVFY", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1217,7 +1217,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("E");</script> + <script>mcdu.button("E", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1235,7 +1235,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("J");</script> + <script>mcdu.button("J", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1253,7 +1253,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("O");</script> + <script>mcdu.button("O", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1271,7 +1271,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("T");</script> + <script>mcdu.button("T", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1289,7 +1289,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("Y");</script> + <script>mcdu.button("Y", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1307,7 +1307,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu1.button("CLR");</script> + <script>mcdu.button("CLR", 0);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> diff --git a/Systems/mcdu2-dlg.xml b/Systems/mcdu2-dlg.xml index fbbd8786..db65118b 100644 --- a/Systems/mcdu2-dlg.xml +++ b/Systems/mcdu2-dlg.xml @@ -56,7 +56,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.lskbutton("1");</script> + <script>mcdu.lskbutton("1", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -72,7 +72,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.lskbutton("2");</script> + <script>mcdu.lskbutton("2", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -88,7 +88,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.lskbutton("3");</script> + <script>mcdu.lskbutton("3", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -104,7 +104,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.lskbutton("4");</script> + <script>mcdu.lskbutton("4", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -120,7 +120,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.lskbutton("5");</script> + <script>mcdu.lskbutton("5", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -136,7 +136,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.lskbutton("6");</script> + <script>mcdu.lskbutton("6", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -152,7 +152,7 @@ </group> <canvas> - <name>mcdu2</name> + <name>mcdu</name> <valign>fill</valign> <halign>fill</halign> <stretch>false</stretch> @@ -161,17 +161,17 @@ <nasal> <load> <![CDATA[ - var mcdu2_canvas_dlg = canvas.get(cmdarg()); - var root = mcdu2_canvas_dlg.createGroup(); + var mcdu_canvas_dlg = canvas.get(cmdarg()); + var root = mcdu_canvas_dlg.createGroup(); root.setScale(0.285, 0.25); - mcdu2_canvas_dlg.setColorBackground(0, 0, 0, 1.0); + mcdu_canvas_dlg.setColorBackground(0, 0, 0, 1.0); root.createChild("image").set("src", "canvas://by-index/texture[11]"); ]]> </load> <unload> <![CDATA[ - mcdu2_canvas_dlg.del(); - mcdu2_canvas_dlg = nil; + mcdu_canvas_dlg.del(); + mcdu_canvas_dlg = nil; root = nil; ]]> </unload> @@ -191,7 +191,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.rskbutton("1");</script> + <script>mcdu.rskbutton("1", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -207,7 +207,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.rskbutton("2");</script> + <script>mcdu.rskbutton("2", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -223,7 +223,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.rskbutton("3");</script> + <script>mcdu.rskbutton("3", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -239,7 +239,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.rskbutton("4");</script> + <script>mcdu.rskbutton("4", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -255,7 +255,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.rskbutton("5");</script> + <script>mcdu.rskbutton("5", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -271,7 +271,7 @@ <pref-width>30</pref-width> <binding> <command>nasal</command> - <script>mcdu2.rskbutton("6");</script> + <script>mcdu.rskbutton("6", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -310,7 +310,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.pagebutton("perf");</script> + <script>mcdu.pagebutton("perf", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -326,7 +326,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.pagebutton("init");</script> + <script>mcdu.pagebutton("init", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -342,7 +342,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.pagebutton("data");</script> + <script>mcdu.pagebutton("data", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -376,7 +376,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.pagebutton("f-pln");</script> + <script>mcdu.pagebutton("f-pln", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -392,7 +392,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.pagebutton("radnav");</script> + <script>mcdu.pagebutton("radnav", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -408,7 +408,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.pagebutton("fuel-pred");</script> + <script>mcdu.pagebutton("fuel-pred", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -436,7 +436,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.pagebutton("mcdu");</script> + <script>mcdu.pagebutton("mcdu", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -480,7 +480,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.arrowbutton("left");</script> + <script>mcdu.arrowbutton("left", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -498,7 +498,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.arrowbutton("right");</script> + <script>mcdu.arrowbutton("right", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -524,7 +524,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.arrowbutton("up");</script> + <script>mcdu.arrowbutton("up", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -542,7 +542,7 @@ <pref-width>40</pref-width> <binding> <command>nasal</command> - <script>mcdu2.arrowbutton("down");</script> + <script>mcdu.arrowbutton("down", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -564,7 +564,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("1");</script> + <script>mcdu.button("1", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -582,7 +582,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("4");</script> + <script>mcdu.button("4", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -600,7 +600,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("7");</script> + <script>mcdu.button("7", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -618,7 +618,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("DOT");</script> + <script>mcdu.button("DOT", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -636,7 +636,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("2");</script> + <script>mcdu.button("2", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -654,7 +654,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("5");</script> + <script>mcdu.button("5", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -672,7 +672,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("8");</script> + <script>mcdu.button("8", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -690,7 +690,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("0");</script> + <script>mcdu.button("0", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -708,7 +708,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("3");</script> + <script>mcdu.button("3", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -726,7 +726,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("6");</script> + <script>mcdu.button("6", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -744,7 +744,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("9");</script> + <script>mcdu.button("9", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -762,7 +762,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("PLUSMINUS");</script> + <script>mcdu.button("PLUSMINUS", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -785,7 +785,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("A");</script> + <script>mcdu.button("A", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -803,7 +803,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("F");</script> + <script>mcdu.button("F", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -821,7 +821,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("K");</script> + <script>mcdu.button("K", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -839,7 +839,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("P");</script> + <script>mcdu.button("P", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -857,7 +857,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("U");</script> + <script>mcdu.button("U", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -875,7 +875,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("Z");</script> + <script>mcdu.button("Z", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -893,7 +893,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("B");</script> + <script>mcdu.button("B", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -911,7 +911,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("G");</script> + <script>mcdu.button("G", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -929,7 +929,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("L");</script> + <script>mcdu.button("L", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -947,7 +947,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("Q");</script> + <script>mcdu.button("Q", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -965,7 +965,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("V");</script> + <script>mcdu.button("V", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -983,7 +983,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("SLASH");</script> + <script>mcdu.button("SLASH", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1001,7 +1001,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("C");</script> + <script>mcdu.button("C", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1019,7 +1019,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("H");</script> + <script>mcdu.button("H", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1037,7 +1037,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("M");</script> + <script>mcdu.button("M", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1055,7 +1055,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("R");</script> + <script>mcdu.button("R", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1073,7 +1073,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("W");</script> + <script>mcdu.button("W", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1091,7 +1091,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("SP");</script> + <script>mcdu.button("SP", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1109,7 +1109,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("D");</script> + <script>mcdu.button("D", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1127,7 +1127,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("I");</script> + <script>mcdu.button("I", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1145,7 +1145,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("N");</script> + <script>mcdu.button("N", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1163,7 +1163,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("S");</script> + <script>mcdu.button("S", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1181,7 +1181,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("X");</script> + <script>mcdu.button("X", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1199,7 +1199,7 @@ <pref-width>25</pref-width> <!--binding> <command>nasal</command> - <script>mcdu2.button("OVFY");</script> + <script>mcdu.button("OVFY", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1217,7 +1217,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("E");</script> + <script>mcdu.button("E", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1235,7 +1235,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("J");</script> + <script>mcdu.button("J", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1253,7 +1253,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("O");</script> + <script>mcdu.button("O", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1271,7 +1271,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("T");</script> + <script>mcdu.button("T", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1289,7 +1289,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("Y");</script> + <script>mcdu.button("Y", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property> @@ -1307,7 +1307,7 @@ <pref-width>25</pref-width> <binding> <command>nasal</command> - <script>mcdu2.button("CLR");</script> + <script>mcdu.button("CLR", 1);</script> <condition> <greater-than-equals> <property>systems/electrical/bus/ac1</property>