From b1403b3066946ec3ef4c79a4041888b2ffb14870 Mon Sep 17 00:00:00 2001 From: PlayeRom Date: Sun, 21 Aug 2022 21:38:19 +0200 Subject: [PATCH] Add Towrope Configuration dialog --- addon-menubar-items.xml | 7 + gui/dialogs/towrope-configuration.xml | 342 ++++++++++++++++++++++++++ 2 files changed, 349 insertions(+) create mode 100644 gui/dialogs/towrope-configuration.xml diff --git a/addon-menubar-items.xml b/addon-menubar-items.xml index 9c3dcf2..246f8dd 100644 --- a/addon-menubar-items.xml +++ b/addon-menubar-items.xml @@ -36,6 +36,13 @@ route-aerotow + + + + dialog-show + towrope-config + + diff --git a/gui/dialogs/towrope-configuration.xml b/gui/dialogs/towrope-configuration.xml new file mode 100644 index 0000000..4b96f9d --- /dev/null +++ b/gui/dialogs/towrope-configuration.xml @@ -0,0 +1,342 @@ + + + + towrope-config + vbox + 5 + false + 680 + + + + hbox + + true + + + + + + true + + + + + + + + + hbox + + + table + + + + 0 + 0 + right + + + + 0 + 1 + right + + true + %.0f m + /sim/hitches/aerotow/tow/length + + 0.2 + 0.9 + 0.2 + + + + + + 1 + 0 + right + + + + 1 + 1 + right + + true + %.0f N + /sim/hitches/aerotow/tow/brake-force + + 0.2 + 0.9 + 0.2 + + + + + + 2 + 0 + right + + + + 2 + 1 + right + + true + %.0f N + /sim/hitches/aerotow/tow/elastic-constant + + 0.2 + 0.9 + 0.2 + + + + + + 3 + 0 + right + + + + 3 + 1 + right + + true + %.0f mm + /sim/hitches/aerotow/rope/rope-diameter-mm + + 0.2 + 0.9 + 0.2 + + + + + + 4 + 0 + right + + + + 4 + 1 + right + + true + %.3f kg/m + /sim/hitches/aerotow/tow/weight-per-m-kg-m + + 0.2 + 0.9 + 0.2 + + + + + true + + + + + + table + + + + 0 + 1 + right + + + + 0 + 2 + true + fill + 300 + tow_length + /sim/hitches/aerotow/tow/length + 20 + 200 + 5 + + dialog-apply + + + + 0 + 3 + left + + + + + + 1 + 1 + right + + + + 1 + 2 + true + fill + 300 + break_force + /sim/hitches/aerotow/tow/brake-force + 100 + 100000 + 100 + + dialog-apply + + + + 1 + 3 + left + + + + + + 2 + 1 + right + + + + 2 + 2 + true + fill + 300 + elastic_constant + /sim/hitches/aerotow/tow/elastic-constant + 0 + 1500000 + 200 + + dialog-apply + + + + 2 + 3 + left + + + + + + 3 + 1 + right + + + + 3 + 2 + true + fill + 300 + rope_diameter + /sim/hitches/aerotow/rope/rope-diameter-mm + 0 + 50 + 1 + + dialog-apply + + + + 3 + 3 + left + + + + + + 4 + 1 + right + + + + 4 + 2 + true + fill + 300 + weight_per_m + /sim/hitches/aerotow/tow/weight-per-m-kg-m + 0 + 1 + 0.001 + + dialog-apply + + + + 4 + 3 + left + + + + + + + + + + hbox + + true + + + + + true + + +