From fabf21cf8d45ca9e3e67a2603959092f1fa047e8 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 15 Feb 2006 10:33:38 +0000 Subject: [PATCH] add Nasal console to debug menu. Usage: enter Nasal code, press to leave edit field!, press to execute; as an example try screen.log.write("hello world"), or f16.canopy.open() in the F16, or bo105.doors[3].move(0.3) in the Bo105 etc. --- gui/dialogs/nasal-console.xml | 65 +++++++++++++++++++++++++++++++++++ gui/menubar.xml | 8 +++++ 2 files changed, 73 insertions(+) create mode 100644 gui/dialogs/nasal-console.xml diff --git a/gui/dialogs/nasal-console.xml b/gui/dialogs/nasal-console.xml new file mode 100644 index 000000000..ff968cce5 --- /dev/null +++ b/gui/dialogs/nasal-console.xml @@ -0,0 +1,65 @@ + + + + -20 + -20 + nasal-console + vbox + + + + + + + + + fill + 120 + 400 + 20 + true + /sim/gui/dialogs/nasal-console/code + + + + hbox + 8 + + + + fill + + 0.5 + 0.5 + 0.5 + + + + + hbox + 0 + + + + + + + diff --git a/gui/menubar.xml b/gui/menubar.xml index e03b34ac2..669bf14d1 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -403,6 +403,14 @@ + + + + dialog-show + nasal-console + + +