add status feedback for dynamic view toggle entry
This commit is contained in:
parent
e91115e328
commit
2ae2d60de2
1 changed files with 6 additions and 2 deletions
|
@ -107,8 +107,12 @@
|
|||
<label>Toggle Dynamic Cockpit View</label>
|
||||
<name>dynamic-view</name>
|
||||
<binding>
|
||||
<command>property-toggle</command>
|
||||
<property>/sim/view/dynamic/enabled</property>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
var p = "/sim/view/dynamic/enabled";
|
||||
setprop(p, var i = !getprop(p));
|
||||
gui.popupTip("Dynamic View " ~ (i ? "enabled" : "disabled"));
|
||||
</script>
|
||||
</binding>
|
||||
</item>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue