A320-homecockpit/Pedestal/flightgear/Event/FLC-Meow-Pedestal-box.xml
fly e10faa9a9c Add LEDs property to the flightgear conf
Signed-off-by: fly <merspieler@alwaysdata.com>
2024-06-06 22:35:50 +02:00

38 lines
885 B
XML

<?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);
setprop("/FLC/Pedestal/leds", 0);
var updateBacklight = func(){
setprop('/FLC/Pedestal/backlight', getprop('/controls/lighting/main-panel-norm') * 48000);
}
var updateLeds = func(){
}
var lis1 = setlistener('/controls/lighting/main-panel-norm', updateBacklight);
]]>
</open>
</nasal>
<event>
<name>vendor-0</name>
<setting>
<property>/FLC/Pedestal/backlight</property>
</setting>
</event>
<event>
<name>vendor-1</name>
<setting>
<property>/FLC/Pedestal/generic</property>
</setting>
</event>
<event>
<name>vendor-2</name>
<setting>
<property>/FLC/Pedestal/leds</property>
</setting>
</event>
</PropertyList>