diff --git a/A320-main.xml b/A320-main.xml index d0b6112f..0f1c1f67 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -408,7 +408,7 @@ - + 80.0 diff --git a/Models/Instruments/MCDU/MCDU.nas b/Models/Instruments/MCDU/MCDU.nas index 6a55b92f..302088cf 100644 --- a/Models/Instruments/MCDU/MCDU.nas +++ b/Models/Instruments/MCDU/MCDU.nas @@ -1741,13 +1741,11 @@ var MCDU_update_fast = maketimer(0.125, func { }); var showMCDU1 = func { - var mcdu1_dlg = gui.Dialog.new("sim/gui/dialogs/mcdu1/dialog", "Aircraft/IDG-A32X/Systems/mcdu1-dlg.xml"); - mcdu1_dlg.open(); + gui.showDialog("mcdu1"); } var showMCDU2 = func { - var mcdu2_dlg = gui.Dialog.new("sim/gui/dialogs/mcdu2/dialog", "Aircraft/IDG-A32X/Systems/mcdu2-dlg.xml"); - mcdu2_dlg.open(); + gui.showDialog("mcdu2"); } setlistener("/MCDU[0]/page", func { diff --git a/Nasal/libraries.nas b/Nasal/libraries.nas index 1c821ad5..cfeed0d0 100644 --- a/Nasal/libraries.nas +++ b/Nasal/libraries.nas @@ -186,7 +186,6 @@ var systemsInit = func { systemsLoop.start(); icing.icingInit(); lightsLoop.start(); - var autopilot = gui.Dialog.new("sim/gui/dialogs/autopilot/dialog", "Aircraft/IDG-A32X/Systems/autopilot-dlg.xml"); setprop("/it-autoflight/input/fd1", 1); setprop("/it-autoflight/input/fd2", 1); libraries.ECAM.init(); diff --git a/Systems/autopilot-dlg.xml b/gui/dialogs/a3xx-autoflight-dlg.xml similarity index 100% rename from Systems/autopilot-dlg.xml rename to gui/dialogs/a3xx-autoflight-dlg.xml diff --git a/Systems/mcdu1-dlg.xml b/gui/dialogs/mcdu1-dlg.xml similarity index 100% rename from Systems/mcdu1-dlg.xml rename to gui/dialogs/mcdu1-dlg.xml diff --git a/Systems/mcdu2-dlg.xml b/gui/dialogs/mcdu2-dlg.xml similarity index 100% rename from Systems/mcdu2-dlg.xml rename to gui/dialogs/mcdu2-dlg.xml diff --git a/Systems/it-gui.xml b/gui/it-gui.xml similarity index 83% rename from Systems/it-gui.xml rename to gui/it-gui.xml index 3ac4217c..79131e30 100644 --- a/Systems/it-gui.xml +++ b/gui/it-gui.xml @@ -13,79 +13,79 @@