A320-homecockpit/Pedestal/flightgear/Event/FLC-Meow-Pedestal-box.xml

30 lines
681 B
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<name type="string">FLC Meow Pedestal box</name>
<debug-events type="bool">true</debug-events>
<nasal>
<open>
<![CDATA[
setprop("/FLC/Pedestal/backlight", 0);
var refreshPanels = func(){
setprop('/FLC/Pedestal/backlight', getprop('/controls/lighting/main-panel-norm') * 48000);
}
var lis1 = setlistener('/controls/lighting/main-panel-norm', refreshPanels);
]]>
</open>
</nasal>
<event>
<name>vendor-0</name>
<setting>
<property>/FLC/Pedestal/backlight</property>
</setting>
</event>
<event>
<name>vendor-1</name>
<setting>
<property>/test</property>
</setting>
</event>
</PropertyList>