diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 07cf9d625..6047aa1e8 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -148,6 +148,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("fgcom-settings", getprop("/sim/fgcom/enabled")); # frame-per-second display var fps = props.globals.getNode("/sim/rendering/fps-display", 1); diff --git a/Translations/en/menu.xml b/Translations/en/menu.xml index 1b7e775fc..c1268ad71 100644 --- a/Translations/en/menu.xml +++ b/Translations/en/menu.xml @@ -74,6 +74,7 @@ Multiplayer Multiplayer Settings + FGCom Settings Chat Dialog Chat Menu Pilot List @@ -106,7 +107,7 @@ Print Visible Scene Info Hide/Show Rendering Buffers Select Rendering Buffers - User-interface options + User-interface options Help diff --git a/gui/dialogs/fgcom.xml b/gui/dialogs/fgcom.xml new file mode 100644 index 000000000..a4be3a43a --- /dev/null +++ b/gui/dialogs/fgcom.xml @@ -0,0 +1,412 @@ + + + + fgcom + vbox + false + + + + + + + + + + + hbox + + 1 + + + + + + + + 1 + + + + + + + + + table + left + + + 0 + 0 + + right + + + 0 + 1 + 2 + left + enabled + + /sim/fgcom/enabled + + dialog-apply + enabled + + + + + 2 + 0 + + right + + + 2 + 1 + 2 + left + mic-vol + + 0 + 1.0 + 0.1 + /sim/fgcom/mic-level + + dialog-apply + mic-vol + + + + + 3 + 0 + + right + + + 3 + 1 + 2 + left + speaker-vol + + 0 + 1.0 + 0.1 + /sim/fgcom/speaker-level + + dialog-apply + speaker-vol + + + + + + + + + hbox + + 1 + + + + + + + + 1 + + + + + table + left + + + 0 + 0 + right + + + + /sim/fgcom/enabled + 0 + + + + + 0 + 1 + 2 + left + reg-enabled + + /sim/fgcom/register/enabled + + + /sim/fgcom/enabled + 0 + + + + dialog-apply + reg-enabled + + + + + 1 + 0 + right + + + + /sim/fgcom/enabled + 0 + + + + + username + 1 + 1 + 2 + left + 125 + true + /sim/fgcom/register/username + + + /sim/fgcom/enabled + 0 + + + + dialog-apply + username + + + + + 2 + 0 + right + + + + /sim/fgcom/enabled + 0 + + + + + password + 2 + 1 + 2 + left + 125 + true + /sim/fgcom/register/password + + + /sim/fgcom/enabled + 0 + + + + dialog-apply + password + + + + + + + + + hbox + + 1 + + + + + + + + 1 + + + + + table + left + + + 0 + 0 + + right + + + 0 + 1 + 2 + left + test + + /sim/fgcom/test + + dialog-apply + test + + + + + server + 1 + 0 + 6 + 275 + false + /sim/fgcom/selected-server + /sim/gui/dialogs/multiplay/fgcom-servers + + dialog-apply + server + + + nasal + + + + dialog-apply + test + + + + + + + + + + hbox + 10 + + true + + + + + + true + + + + + diff --git a/gui/menubar.xml b/gui/menubar.xml index 0930119e8..4e63aba40 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -446,6 +446,15 @@ + + fgcom-settings + + dialog-show + fgcom + + false + + mp-chat