Default view First Officer option
This commit is contained in:
parent
1173d16508
commit
462758e08b
2 changed files with 21 additions and 20 deletions
|
@ -129,6 +129,7 @@ var revisionFile = (getprop("/sim/aircraft-dir") ~ "/revision.txt");
|
|||
var current_revision = io.readfile(revisionFile);
|
||||
print("A320-family Revision: " ~ current_revision);
|
||||
setprop("/systems/acconfig/revision", current_revision);
|
||||
setprop("/systems/acconfig/options/fo-view", 0);
|
||||
|
||||
setlistener("/systems/acconfig/new-revision", func {
|
||||
if (getprop("/systems/acconfig/new-revision") > current_revision) {
|
||||
|
|
|
@ -406,26 +406,6 @@
|
|||
</binding>
|
||||
<live>true</live>
|
||||
</checkbox -->
|
||||
|
||||
<checkbox>
|
||||
<label>Default First-Officer view</label>
|
||||
<halign>left</halign>
|
||||
<property>/options/system/fo-view</property>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>/options/system/fo-view</property>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
acconfig.writeSettings();
|
||||
</script>
|
||||
</binding>
|
||||
<live>true</live>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<label>ADIRS Aligns Instantly</label>
|
||||
|
@ -466,6 +446,26 @@
|
|||
</binding>
|
||||
<live>true</live>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<label>Default view First Officer</label>
|
||||
<halign>left</halign>
|
||||
<property>/options/system/fo-view</property>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>/options/system/fo-view</property>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
acconfig.writeSettings();
|
||||
</script>
|
||||
</binding>
|
||||
<live>true</live>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
<!-- TODO there might be a better way to formulate this. -->
|
||||
|
|
Loading…
Add table
Reference in a new issue