Added a save FOV button
This commit is contained in:
parent
d6db41f31d
commit
78da4ae738
1 changed files with 14 additions and 0 deletions
|
@ -78,6 +78,20 @@
|
|||
</binding>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<halign>center</halign>
|
||||
<legend>Save current FOV</legend>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var nm=getprop("/sim/current-view/view-number");
|
||||
var vw = getprop("/sim/current-view/field-of-view");
|
||||
setprop("/sim/current-view/config/default-field-of-view-deg",vw);
|
||||
setprop("/sim/view["~nm~"]/config/default-field-of-view-deg",vw);
|
||||
</script>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
|
Loading…
Add table
Reference in a new issue