From d528531fbabe029e3cdfdc21d2705bb056dd835f Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Sun, 31 Jan 2021 14:11:54 +0100 Subject: [PATCH] Add simple dialog for default light switches (/controls/lighting/) according to README.properties. --- Translations/default/menu.xml | 1 + gui/dialogs/light-switches.xml | 130 +++++++++++++++++++++++++++++++++ gui/menubar.xml | 7 ++ 3 files changed, 138 insertions(+) create mode 100644 gui/dialogs/light-switches.xml diff --git a/Translations/default/menu.xml b/Translations/default/menu.xml index 511d853a0..ef18e9e79 100644 --- a/Translations/default/menu.xml +++ b/Translations/default/menu.xml @@ -67,6 +67,7 @@ Radio Settings GPS Settings Instrument Settings + Light switches --- Failures --- Random Failures System Failures diff --git a/gui/dialogs/light-switches.xml b/gui/dialogs/light-switches.xml new file mode 100644 index 000000000..1d0821ca3 --- /dev/null +++ b/gui/dialogs/light-switches.xml @@ -0,0 +1,130 @@ + + + light-switches + vbox + true + 200 + + + hbox + + 1 + + + + + + 1 + + + + + + left + + /controls/lighting/beacon + true + + dialog-apply + + + + left + + /controls/lighting/nav-lights + true + + dialog-apply + + + + left + + /controls/lighting/taxi-light + true + + dialog-apply + + + + left + + /controls/lighting/landing-lights + true + + dialog-apply + + + + left + + /controls/lighting/strobe + true + + dialog-apply + + + + left + + /controls/lighting/logo-lights + true + + dialog-apply + + + + left + + /controls/lighting/turn-off-lights + true + + dialog-apply + + + + left + + /controls/lighting/formation-lights + true + + dialog-apply + + + + left + + /controls/lighting/panel-norm + true + + dialog-apply + + + + left + + /controls/lighting/instruments-norm + true + + dialog-apply + + + + left + + /controls/lighting/dome-norm + true + + dialog-apply + + + diff --git a/gui/menubar.xml b/gui/menubar.xml index 7ca517523..9b3892b43 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -485,6 +485,13 @@ dialog-show instruments + + + light-switches + + dialog-show + light-switches +