Systems: added magic bush tyre

This commit is contained in:
Sidi Liang 2022-08-15 19:53:17 +08:00
parent 80d4c370c2
commit 6e3c623618
No known key found for this signature in database
GPG Key ID: 9785F5EECFFA5311
3 changed files with 91 additions and 4 deletions

View File

@ -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() {

View File

@ -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>

View File

@ -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>