1
0
Fork 0

Make the tooltips toggleable in acconfig

This commit is contained in:
Jonathan Redpath 2022-08-09 21:37:44 +01:00
parent 072dd9c4ac
commit 0166f1edc1
4 changed files with 1254 additions and 1 deletions

View file

@ -4,7 +4,7 @@
<PropertyList include="Aircraft/Generic/Human/Include/walker-include.xml">
<sim>
<toggle-tooltips type="bool">false</toggle-tooltips>
<animation>
<fire-services type="bool">0</fire-services>
</animation>

View file

@ -54,6 +54,7 @@ setprop("/systems/acconfig/options/keyboard-mode", 0);
setprop("/systems/acconfig/options/fgcamera-keys-enabled", 0);
setprop("/systems/acconfig/options/weight-kgs", 1);
setprop("/systems/acconfig/options/adirs-skip", 0);
setprop("/systems/acconfig/options/toggle-tooltips", 1);
setprop("/systems/acconfig/options/allow-oil-consumption", 0);
setprop("/systems/acconfig/options/atis-server", "faa");
setprop("/systems/acconfig/options/wxr-server", "noaa");
@ -225,6 +226,7 @@ var readSettings = func {
setprop("/options/system/weight-kgs", getprop("/systems/acconfig/options/weight-kgs"));
setprop("/options/system/save-state", getprop("/systems/acconfig/options/save-state"));
setprop("/controls/adirs/skip", getprop("/systems/acconfig/options/adirs-skip"));
setprop("/options/system/toggle-tooltips", getprop("/systems/acconfig/options/toggle-tooltips"));
setprop("/systems/apu/oil/allow-oil-consumption", getprop("/systems/acconfig/options/allow-oil-consumption"));
setprop("/sim/model/autopush/route/show", getprop("/systems/acconfig/options/autopush/show-route"));
setprop("/sim/model/autopush/route/show-wingtip", getprop("/systems/acconfig/options/autopush/show-wingtip"));
@ -241,6 +243,7 @@ var writeSettings = func {
setprop("/systems/acconfig/options/weight-kgs", getprop("/options/system/weight-kgs"));
setprop("/systems/acconfig/options/save-state", getprop("/options/system/save-state"));
setprop("/systems/acconfig/options/adirs-skip", getprop("/controls/adirs/skip"));
setprop("/systems/acconfig/options/toggle-tooltips", getprop("/options/system/toggle-tooltips"));
setprop("/systems/acconfig/options/allow-oil-consumption", getprop("/systems/apu/oil/allow-oil-consumption"));
setprop("/systems/acconfig/options/autopush/show-route", getprop("/sim/model/autopush/route/show"));
setprop("/systems/acconfig/options/autopush/show-wingtip", getprop("/sim/model/autopush/route/show-wingtip"));

View file

@ -304,6 +304,26 @@
<live>true</live>
</checkbox>
<checkbox>
<label>Display tooltips on switches</label>
<halign>left</halign>
<property>/options/system/toggle-tooltips</property>
<binding>
<command>property-toggle</command>
<property>/options/system/toggle-tooltips</property>
</binding>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
acconfig.writeSettings();
</script>
</binding>
<live>true</live>
</checkbox>
<checkbox>
<label>Allow APU Oil Consumption</label>
<halign>left</halign>

File diff suppressed because it is too large Load diff