From 6e3c62361865dbc593565ebc04df99696e7f75e7 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 15 Aug 2022 19:53:17 +0800 Subject: [PATCH] Systems: added magic bush tyre --- Nasal/plate.nas | 2 +- gui/dialogs/config-dialog.xml | 43 +++++++++++++++++++++++++++++ gui/dialogs/vehicle-dialog.xml | 50 ++++++++++++++++++++++++++++++++-- 3 files changed, 91 insertions(+), 4 deletions(-) diff --git a/Nasal/plate.nas b/Nasal/plate.nas index f8c9d40..0c31499 100644 --- a/Nasal/plate.nas +++ b/Nasal/plate.nas @@ -7,7 +7,7 @@ #format) to that folder and it will show up in the dialog. var path = props.getNode("/",1).getValue("sim/aircraft-dir") ~ '/Models/plate/texture'; -var plateSelector = TextureSelector.new("Plate-Selector", path, ".png", 1, 1, "sim/gui/dialogs/vehicle_config/dialog", "group[5]/combo/"); +var plateSelector = TextureSelector.new("Plate-Selector", path, ".png", 1, 1, "sim/gui/dialogs/vehicle_config/dialog", "group[7]/combo/"); var Plate = { new: func() { diff --git a/gui/dialogs/config-dialog.xml b/gui/dialogs/config-dialog.xml index 8271cc0..5409b78 100755 --- a/gui/dialogs/config-dialog.xml +++ b/gui/dialogs/config-dialog.xml @@ -220,7 +220,50 @@ <label>To repair Airbag, reinitialize safety system</label> </text> </group> + <hrule/> + <text> + <label>Magic Bush Tyre</label> + </text> + <group> + <layout>hbox</layout> + <button> + <halign>left</halign> + <legend>Enable</legend> + <pref-width>120</pref-width> + <pref-height>28</pref-height> + <enable> + <and> + <not> + <property>/sim/freeze/replay-state</property> + </not> + </and> + </enable> + <binding> + <command>nasal</command> + <script>followme.reduceRollingFriction()</script> + </binding> + </button> + <button> + <halign>left</halign> + <legend>Disable</legend> + <pref-width>120</pref-width> + <pref-height>28</pref-height> + <enable> + <and> + <not> + <property>/sim/freeze/replay-state</property> + </not> + </and> + </enable> + <binding> + <command>nasal</command> + <script>followme.resumeRollingFriction()</script> + </binding> + </button> + </group> + <hrule/> + <group> <layout>vbox</layout> <text><label>Plate</label></text> diff --git a/gui/dialogs/vehicle-dialog.xml b/gui/dialogs/vehicle-dialog.xml index 9656deb..abd7fdd 100755 --- a/gui/dialogs/vehicle-dialog.xml +++ b/gui/dialogs/vehicle-dialog.xml @@ -97,12 +97,13 @@ </button> + </group> <text> - <label>Advanced Steering</label> + <label>*Experimental Features</label> </text> <text> - <label>*Experimental</label> + <label>Advanced Steering</label> </text> <group> <layout>hbox</layout> @@ -141,7 +142,50 @@ </binding> </button> </group> - + <!-- + <text> + <label>L Gear</label> + </text> + <group> + <layout>hbox</layout> + <button> + <halign>left</halign> + <legend>Enable</legend> + <pref-width>150</pref-width> + <pref-height>28</pref-height> + <enable> + <and> + <not> + <property>/sim/freeze/replay-state</property> + </not> + <not> + <property>/controls/engines/engine/isInLGear</property> + </not> + </and> + </enable> + <binding> + <command>enableLGear</command> + </binding> + </button> + <button> + <halign>left</halign> + <legend>Disable</legend> + <pref-width>150</pref-width> + <pref-height>28</pref-height> + <enable> + <and> + <not> + <property>/sim/freeze/replay-state</property> + </not> + <property>/controls/engines/engine/isInLGear</property> + </and> + </enable> + <binding> + <command>disableLGear</command> + </binding> + </button> + </group> + --> <hrule/> <text> <label>Keyboard braking intensity</label>