49
edits
(Switch to {{fg root file}} to fix the broken Gitorious link.) |
m (Displaying On-Screen property values through nasal) |
||
Line 104: | Line 104: | ||
}, 0); | }, 0); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Displaying On-Screen property values through nasal === | |||
Create a file (let's call it display-props.nas) with instructions such below | |||
<syntaxhighlight lang="nasal"> | |||
# On-screen displays | |||
var enableOSD = func { | |||
var left = screen.display.new(20, 10); | |||
var right = screen.display.new(-300, 10); | |||
left.add("/orientation/heading-deg"); | |||
left.add("/environment/wind-from-heading-deg"); | |||
left.add("/environment/wind-speed-kt"); | |||
right.add("/controls/flight/rudder"); | |||
} | |||
enableOSD(); | |||
</syntaxhighlight> | |||
Add the path/to/display-props.nas in your aircraft -set.xml, | |||
or in your $FG_HOME/ inside a Nasal/ folder. | |||
[[Category:Menubar]] | [[Category:Menubar]] | ||
[[Category:Property Tree]] | [[Category:Property Tree]] |
edits