1
0
Fork 0

add status feedback for dynamic view toggle entry

This commit is contained in:
mfranz 2007-06-17 11:35:35 +00:00
parent e91115e328
commit 2ae2d60de2

View file

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