diff --git a/gui/dialogs/AIcarrier.xml b/gui/dialogs/AIcarrier.xml index fda87ccb0..07d25ce9d 100644 --- a/gui/dialogs/AIcarrier.xml +++ b/gui/dialogs/AIcarrier.xml @@ -4,20 +4,33 @@ AIcarrier false vbox - + - - left - - - 0.9 - 0.9 - 0.9 - 1 - - + + hbox + 1 + + + + + + 1 + + + + + hbox @@ -170,6 +183,8 @@ + + hbox 6 @@ -218,4 +233,4 @@ true - \ No newline at end of file + diff --git a/gui/dialogs/ai.xml b/gui/dialogs/ai.xml index 56898b8c9..d8515d6f2 100644 --- a/gui/dialogs/ai.xml +++ b/gui/dialogs/ai.xml @@ -1,29 +1,33 @@ - + ai false vbox + + hbox + 1 + + + - + 1 - - - - + + @@ -72,6 +76,8 @@ + + hbox 6 diff --git a/gui/dialogs/airports.xml b/gui/dialogs/airports.xml index e1ed9a93c..75fb36749 100644 --- a/gui/dialogs/airports.xml +++ b/gui/dialogs/airports.xml @@ -5,9 +5,27 @@ vbox true - - - + + hbox + 1 + + + + + + 1 + + + @@ -97,6 +115,8 @@ + + hbox 10 diff --git a/gui/dialogs/autopilot.xml b/gui/dialogs/autopilot.xml index efa228b08..59f543407 100644 --- a/gui/dialogs/autopilot.xml +++ b/gui/dialogs/autopilot.xml @@ -16,17 +16,17 @@ /autopilot/settings/true-heading-deg /autopilot/settings/vertical-speed-fpm --> - + hbox 1 - + - + 1 - + + diff --git a/gui/dialogs/cockpit-view.xml b/gui/dialogs/cockpit-view.xml index 87d7b9171..a26a06468 100644 --- a/gui/dialogs/cockpit-view.xml +++ b/gui/dialogs/cockpit-view.xml @@ -8,25 +8,24 @@ hbox 1 - + - + 1 - + - + @@ -63,7 +62,7 @@ center - + /sim/rendering/redout/enabled @@ -74,7 +73,7 @@ 0 0 - + /sim/rendering/redout/enabled @@ -87,7 +86,7 @@ %2.1f true /sim/rendering/redout/parameters/blackout-onset-g - + /sim/rendering/redout/enabled @@ -101,7 +100,7 @@ dialog-apply - + /sim/rendering/redout/enabled @@ -110,7 +109,7 @@ 1 0 - + /sim/rendering/redout/enabled @@ -123,7 +122,7 @@ %2.1f true /sim/rendering/redout/parameters/blackout-complete-g - + /sim/rendering/redout/enabled @@ -137,7 +136,7 @@ dialog-apply - + /sim/rendering/redout/enabled @@ -148,7 +147,7 @@ center - + /sim/rendering/redout/enabled @@ -159,7 +158,7 @@ 0 0 - + /sim/rendering/redout/enabled @@ -172,7 +171,7 @@ %2.1f true /sim/rendering/redout/parameters/redout-onset-g - + /sim/rendering/redout/enabled @@ -186,7 +185,7 @@ dialog-apply - + /sim/rendering/redout/enabled @@ -207,7 +206,7 @@ %2.1f true /sim/rendering/redout/parameters/redout-complete-g - + /sim/rendering/redout/enabled @@ -221,10 +220,21 @@ dialog-apply - + /sim/rendering/redout/enabled + + + + diff --git a/gui/dialogs/display.xml b/gui/dialogs/display.xml index dc7c39118..fbbfaabd1 100644 --- a/gui/dialogs/display.xml +++ b/gui/dialogs/display.xml @@ -5,29 +5,26 @@ false vbox - hbox - 1 - + 1 + - - 1 - - - + + 1 + + @@ -82,4 +79,15 @@ + + + + diff --git a/gui/dialogs/formation.xml b/gui/dialogs/formation.xml index 4cf76a276..a2bbf810b 100644 --- a/gui/dialogs/formation.xml +++ b/gui/dialogs/formation.xml @@ -7,17 +7,29 @@ vbox + + hbox + 1 - - left - - - 0.5 - 0.5 - 0.5 - 1 - - + + + + + 1 + + + + + hbox @@ -182,7 +194,7 @@ left - + + @@ -262,7 +280,7 @@ - @@ -341,7 +359,7 @@ @@ -92,18 +112,18 @@ - + 11 right - + runway - 12 + 12 85 - + /sim/gui/dialogs/location-on-ground/use_runway sim/gui/dialogs/location-on-ground/runway @@ -114,7 +134,7 @@ runway - + 20 /sim/gui/dialogs/location-on-ground/use_parkpos @@ -124,22 +144,24 @@ - + 21 right - + 22 - + /sim/gui/dialogs/location-on-ground/use_parkpos /sim/gui/dialogs/location-on-ground/parkpos + + hbox 10 diff --git a/gui/dialogs/pilot_offset.xml b/gui/dialogs/pilot_offset.xml index e359b1692..fec11ce33 100644 --- a/gui/dialogs/pilot_offset.xml +++ b/gui/dialogs/pilot_offset.xml @@ -4,6 +4,30 @@ pilot_offset vbox + + hbox + 1 + + + + + + 1 + + + + + + hbox @@ -19,7 +43,7 @@ /sim/current-view/x-offset-m dialog-apply - + %-0.2f m @@ -27,7 +51,7 @@ /sim/current-view/x-offset-m - + vbox @@ -71,11 +95,13 @@ + + hbox true + + + + + + table - - 0 - 280 - 75 + 0 + 1 + - 300 + 0 + 4 + - 450 + 0 + 6 - - - 0 - 240 + + + 0 + 7 + + + 1 + 0 + right com1-selected - 75 - 0 + 1 + 1 75 25 @@ -50,8 +78,8 @@ + - + - + - + - - - 400 - 60 - + + true + + diff --git a/gui/dialogs/random-failures.xml b/gui/dialogs/random-failures.xml index 2fdec4efe..3366a53c2 100644 --- a/gui/dialogs/random-failures.xml +++ b/gui/dialogs/random-failures.xml @@ -9,7 +9,7 @@ - - - + + hbox + 1 - + + + + + 1 + + + + + + left @@ -166,17 +185,17 @@ true - + true - + vbox left top true - + center @@ -332,7 +351,7 @@ - + - + center hbox vbox - + left @@ -46,14 +45,14 @@ left - + vbox 1 - + @@ -144,9 +143,9 @@ precipitation - + @@ -180,7 +179,7 @@ random-vegetation - + hbox @@ -191,9 +190,9 @@ true - + @@ -218,7 +217,7 @@ 3d-clouds - + @@ -286,14 +285,14 @@ /sim/rendering/clouds3d-vis-range - + vbox 1 - + @@ -380,7 +379,7 @@ urban-effects - + left @@ -497,10 +496,21 @@ /sim/rendering/quality-level - + + + + + gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets")); diff --git a/gui/dialogs/replay.xml b/gui/dialogs/replay.xml index aa7056b54..17dfb2112 100644 --- a/gui/dialogs/replay.xml +++ b/gui/dialogs/replay.xml @@ -4,15 +4,34 @@ false vbox - - - + + hbox + 1 + + + + + + 1 + + + + # Populate the view combo box with a list of the available views - var combo = cmdarg().getNode("group").getNode("combo"); + var combo = cmdarg().getChildren("group")[1].getNode("combo"); combo.removeChildren("value"); var current_view = getprop("/sim/current-view/view-number"); @@ -29,7 +48,7 @@ if (v.getIndex() == current_view) { setprop("/sim/replay/view-name", name); } - + combo.getNode("value[" ~ i ~ "]", 1).setValue(name); i = i + 1; } @@ -38,25 +57,25 @@ table - + 00 right - + 01 left /sim/replay/duration - + 10 right - + 11 left @@ -65,8 +84,8 @@ dialog-apply - - + + 20 right @@ -81,7 +100,7 @@ dialog-apply - + @@ -90,7 +109,7 @@ left - + table @@ -99,31 +118,31 @@ center - + 11 left - + 20 center - + 21 left - + 30 center - + 31 left @@ -132,7 +151,7 @@ - + hbox true @@ -141,7 +160,7 @@ true true - dialog-apply + dialog-apply nasal @@ -151,10 +170,10 @@ - replay + replay - dialog-close + dialog-close true @@ -163,7 +182,7 @@ true Esc - dialog-close + dialog-close true diff --git a/gui/dialogs/scenario.xml b/gui/dialogs/scenario.xml index 3b05adada..d0d32f594 100644 --- a/gui/dialogs/scenario.xml +++ b/gui/dialogs/scenario.xml @@ -30,7 +30,7 @@ true - + true @@ -49,6 +49,13 @@ + + + + + + + hbox @@ -64,6 +71,7 @@ + hbox @@ -172,7 +180,7 @@ scnNode.setValue( src.getNode("name",1).getValue() ); i+=1; } - } + } } var path = getprop("/sim/fg-root") ~ "/AI"; diff --git a/gui/dialogs/sound.xml b/gui/dialogs/sound.xml index 4b58249d4..337661c72 100644 --- a/gui/dialogs/sound.xml +++ b/gui/dialogs/sound.xml @@ -8,9 +8,27 @@ 400 vbox - - - + + hbox + 1 + + + + + + 1 + + + @@ -49,7 +67,7 @@ 10 - + 0 1 @@ -139,7 +157,7 @@ /sim/sound/enabled - + 3 1 @@ -173,7 +191,7 @@ /sim/sound/enabled - + 4 1 @@ -219,7 +237,7 @@ /sim/sound/enabled - + 5 1 @@ -262,7 +280,7 @@ hbox 10 - + + @@ -57,6 +75,8 @@ + + hbox 10 @@ -66,10 +86,10 @@ true true - dialog-apply + dialog-apply - dialog-close + dialog-close true @@ -77,7 +97,7 @@ Apply true - dialog-apply + dialog-apply true @@ -85,7 +105,7 @@ Reset true - dialog-update + dialog-update true @@ -93,7 +113,7 @@ Cancel Esc - dialog-close + dialog-close diff --git a/gui/dialogs/stereoscopic-view-options.xml b/gui/dialogs/stereoscopic-view-options.xml index b873861fa..a5c55fd90 100644 --- a/gui/dialogs/stereoscopic-view-options.xml +++ b/gui/dialogs/stereoscopic-view-options.xml @@ -105,4 +105,16 @@ + + + + + diff --git a/gui/dialogs/system-failures.xml b/gui/dialogs/system-failures.xml index 77e6b4799..64be83cc4 100644 --- a/gui/dialogs/system-failures.xml +++ b/gui/dialogs/system-failures.xml @@ -10,12 +10,12 @@ # Code to populate the engine entries. var groups = cmdarg().getChildren("group"); - var group = groups[3].getChildren("group")[2]; + var group = groups[1].getChildren("group")[2]; var engines = props.globals.getNode("/engines"); var row = 4; var engine = 0; var i = 0; - + group.removeChildren("checkbox"); group.removeChildren("input"); group.removeChildren("text"); @@ -28,66 +28,78 @@ target = group.getNode("text[" ~ i ~ "]", 1); props.copy(group.getNode("mtbf-label"), target); i += 1; - + foreach (var e; engines.getChildren("engine")) { - if ((e.getChild("starter") != nil) or (e.getChild("running") != nil)) { + if (((e.getChild("starter") != nil) and (e.getChild("starter") != "")) or + ((e.getChild("running") != nil) and (e.getChild("running") != "")) ) { row = row + 1; - + # Set up the label target = group.getNode("text[" ~ i ~ "]", 1); props.copy(group.getNode("text-template"), target); target.getNode("row").setValue(row); - + if (size(engines.getChildren("engine")) == 1) { target.getNode("label").setValue("Engine"); } else { # Engines are indexed from 1 in the GUI. target.getNode("label").setValue("Engine " ~ (engine + 1)); } - + # Now the checkbox target = group.getNode("checkbox[" ~ i ~ "]", 1); - props.copy(group.getChild("checkbox-template"), target); + props.copy(group.getChild("checkbox-template"), target); target.getNode("row").setValue(row); var failure = "/sim/failure-manager/engines/engine[" ~ engine ~ "]/serviceable"; target.getNode("property").setValue(failure); - + # Finally the MTBF target = group.getNode("input[" ~ i ~ "]", 1); props.copy(group.getChild("input-template"), target); target.getNode("row").setValue(row); i += 1; - + var mtbf = "/sim/failure-manager/engines/engine[" ~ engine ~ "]/mtbf"; target.getNode("property").setValue(mtbf); engine += 1; } } - - + + hbox + 1 + + + 1 + + - - hbox - - + - - hbox + left - - - - + + + + hbox @@ -103,7 +115,7 @@ 0 - + 0 2 @@ -192,57 +204,57 @@ right - + 5 1 /sim/failure-manager/controls/flight/aileron/serviceable - + 5 2 /sim/failure-manager/controls/flight/aileron/mtbf - + 6 0 right - + 6 1 /sim/failure-manager/controls/flight/elevator/serviceable - + 6 2 /sim/failure-manager/controls/flight/elevator/mtbf - + 7 0 right - + 7 1 /sim/failure-manager/controls/flight/rudder/serviceable - + 7 2 /sim/failure-manager/controls/flight/rudder/mtbf - + @@ -252,7 +264,7 @@ table center top - + 0 0 @@ -264,58 +276,58 @@ 2 - + 1 0 right - + 1 1 /gear/serviceable - + 1 2 /sim/failure-manager/controls/gear/gear-down/mcbf - + 2 0 right - + 2 1 /sim/failure-manager/controls/flight/flaps/serviceable - + 2 2 /sim/failure-manager/controls/flight/flaps/mcbf - + 3 0 right - + 3 1 /sim/failure-manager/controls/flight/speedbrake/serviceable - + 3 2 @@ -324,46 +336,48 @@ - + table center top - + 0 0 - + 0 2 - + 0 right - + 1 - + 2 - + + + hbox diff --git a/gui/dialogs/timeofday.xml b/gui/dialogs/timeofday.xml index 7d79fefc4..50688ff21 100644 --- a/gui/dialogs/timeofday.xml +++ b/gui/dialogs/timeofday.xml @@ -9,18 +9,17 @@ hbox 1 - + - + 1 - + - - 6 - - - - 6 - - true @@ -261,4 +252,15 @@ + + + + diff --git a/gui/dialogs/view.xml b/gui/dialogs/view.xml index b105ee1db..7d71cc515 100644 --- a/gui/dialogs/view.xml +++ b/gui/dialogs/view.xml @@ -5,15 +5,37 @@ false vbox + + hbox + 1 + + + + + + 1 + + + + + + - - - + - var group = cmdarg().getNode("group"); + var group = cmdarg().getChildren("group")[1]; var ac = getprop("/sim/aircraft"); group.removeChildren("checkbox"); group.removeChildren("hrule"); @@ -64,6 +86,8 @@ + + + @@ -55,7 +56,7 @@ hbox - + /sim/gui/dialogs/weather-scenario/state @@ -73,7 +74,7 @@ 0 1 - + /sim/gui/dialogs/weather-scenario/state @@ -83,7 +84,7 @@ 0 2 80 - + /sim/gui/dialogs/weather-scenario/state @@ -92,7 +93,7 @@ 0 3 - + /sim/gui/dialogs/weather-scenario/state @@ -405,7 +406,7 @@ hbox - + /sim/gui/dialogs/weather-scenario/state @@ -423,7 +424,7 @@ 0 0 - + /sim/gui/dialogs/weather-scenario/state @@ -432,7 +433,7 @@ 0 1 - + /sim/gui/dialogs/weather-scenario/state @@ -477,7 +478,7 @@ 0 3 - + /sim/gui/dialogs/weather-scenario/state @@ -526,7 +527,7 @@ vbox - + vbox @@ -1140,7 +1141,7 @@ hbox - + /sim/gui/dialogs/weather-scenario/state @@ -1159,7 +1160,7 @@ 0 0 - + /sim/gui/dialogs/weather-scenario/state @@ -1169,7 +1170,7 @@ 1 2 - + /sim/gui/dialogs/weather-scenario/state @@ -1178,7 +1179,7 @@ 0 3 - + /sim/gui/dialogs/weather-scenario/state @@ -1187,7 +1188,7 @@ 0 4 - + /sim/gui/dialogs/weather-scenario/state @@ -1196,7 +1197,7 @@ 0 5 - + /sim/gui/dialogs/weather-scenario/state @@ -1436,7 +1437,7 @@ - + @@ -1548,9 +1549,20 @@ - + + + + +