From d6db41f31d00dae7861a8bf60f71d6556c6b4bbc Mon Sep 17 00:00:00 2001 From: sydadams Date: Thu, 15 Oct 2009 03:25:05 +0000 Subject: [PATCH] Reorganized the rendering menu --- gui/dialogs/display.xml | 104 ++++++++++++++++++++++++++ gui/dialogs/rendering.xml | 103 ++++++++++++++++++++------ gui/dialogs/shader-options.xml | 131 ++++++--------------------------- gui/dialogs/view.xml | 13 +--- gui/menubar.xml | 20 +---- 5 files changed, 209 insertions(+), 162 deletions(-) create mode 100644 gui/dialogs/display.xml diff --git a/gui/dialogs/display.xml b/gui/dialogs/display.xml new file mode 100644 index 000000000..73c9c07db --- /dev/null +++ b/gui/dialogs/display.xml @@ -0,0 +1,104 @@ + + + + display + false + vbox + + + + + + + + + vbox + center + + + left + + /sim/rendering/fps-display + + dialog-apply + + + + + left + + /sim/multiplay/chat-display + + dialog-apply + + + + + left + + /sim/view-name-popup + + dialog-apply + + + + + left + + + property-toggle + /sim/panel/visibility + + + + + left + + /sim/allow-toggle-cockpit + + dialog-apply + + + + + + + + + + + + + hbox + true + + + + true + + + diff --git a/gui/dialogs/rendering.xml b/gui/dialogs/rendering.xml index 3b90ab927..cde74d930 100644 --- a/gui/dialogs/rendering.xml +++ b/gui/dialogs/rendering.xml @@ -15,24 +15,6 @@ vbox center - - left - - /sim/rendering/fps-display - - dialog-apply - - - - - left - - /sim/multiplay/chat-display - - dialog-apply - - - left @@ -98,21 +80,39 @@ left - - /sim/rendering/lightning-enable + + /sim/rendering/random-vegetation dialog-apply - + + + + + @@ -154,13 +154,70 @@ dialog-apply - + + 8 + vbox + + + 8 + left + + /sim/rendering/clouds3d-enable + + dialog-apply + + + + + hbox + right + + + 0 + 1.0 + /sim/rendering/clouds3d-density + + dialog-apply + + + + + %.2f + true + /sim/rendering/clouds3d-density + + + + + hbox + right + + + 100.0 + 20000.0 + /sim/rendering/clouds3d-vis-range + + dialog-apply + + + + + %.fm + true + /sim/rendering/clouds3d-vis-range + + + + + + + hbox true diff --git a/gui/dialogs/shader-options.xml b/gui/dialogs/shader-options.xml index fc58c114d..b76e572cb 100644 --- a/gui/dialogs/shader-options.xml +++ b/gui/dialogs/shader-options.xml @@ -17,127 +17,40 @@ - - - - vbox center - - - left - - /sim/rendering/random-vegetation - - dialog-apply - - - - - left - - /sim/rendering/crop-shader - - dialog-apply - - - - - left - - /sim/rendering/landmass-shader - - dialog-apply - - - - - - - - - - - - 8 - vbox - - - 8 - left - - /sim/rendering/clouds3d-enable - - dialog-apply - - - hbox - right - - - 0 - 1.0 - /sim/rendering/clouds3d-density + left + + left + + /sim/rendering/crop-shader dialog-apply - - - - %.2f - true - /sim/rendering/clouds3d-density - - - - - hbox - right - - - 100.0 - 20000.0 - /sim/rendering/clouds3d-vis-range + + + left + + /sim/rendering/landmass-shader dialog-apply - - - - %.fm - true - /sim/rendering/clouds3d-vis-range - + - - - - - - - - - vbox - center - - + + hbox left - - /sim/rendering/water-shader - - dialog-apply - - - - - - - - - - + + left + + /sim/rendering/water-shader + + dialog-apply + + + diff --git a/gui/dialogs/view.xml b/gui/dialogs/view.xml index e6823ae19..d1c1a2ad7 100644 --- a/gui/dialogs/view.xml +++ b/gui/dialogs/view.xml @@ -11,18 +11,7 @@ - - left - - /sim/view-name-popup - - dialog-apply - - - - - - + var group = cmdarg().getNode("group"); var ac = getprop("/sim/aircraft"); diff --git a/gui/menubar.xml b/gui/menubar.xml index 569a4f224..eee1daa46 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -93,18 +93,10 @@ - - - property-toggle - /sim/panel/visibility - - - - - + dialog-show - view + display @@ -116,14 +108,6 @@ - - - - dialog-show - shader-options - - -