diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 1c03f56e4..b67524861 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -147,6 +147,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func { menuEnable("rembrandt-buffers-choice", getprop("/sim/rendering/rembrandt/enabled")); menuEnable("stereoscopic-options", !getprop("/sim/rendering/rembrandt/enabled")); menuEnable("sound-config", getprop("/sim/sound/working")); + menuEnable("swift_connection", getprop("/sim/swift/available")); # frame-per-second display var fps = props.globals.getNode("/sim/rendering/fps-display", 1); diff --git a/Translations/default/menu.xml b/Translations/default/menu.xml index 1001faabd..e5ee85f78 100644 --- a/Translations/default/menu.xml +++ b/Translations/default/menu.xml @@ -85,6 +85,7 @@ Pilot List MPCarrier Selection Lag Settings + swift Connection Debug diff --git a/gui/dialogs/swift_connection.xml b/gui/dialogs/swift_connection.xml new file mode 100644 index 000000000..69c1a8adf --- /dev/null +++ b/gui/dialogs/swift_connection.xml @@ -0,0 +1,133 @@ + + + + + swift_connection + vbox + false + + + + + hbox + + 1 + + + + + + + + 1 + + + + + + + + + hbox + center + 10 + + + + + + + + + hbox + 4 + 1 + + 2 + right + + + + 150 + left + /sim/swift/adress + + + /sim/swift/serverRunning + + + + + 2 + right + + + + 55 + left + /sim/swift/port + + + /sim/swift/serverRunning + + + + + + + + hbox + center + 10 + + + + diff --git a/gui/menubar.xml b/gui/menubar.xml index 4432a9c2e..a08eb6851 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -649,6 +649,14 @@ lag-adjust + + + swift_connection + + dialog-show + swift_connection + +