1
0
Fork 0
fgdata/Aircraft/Instruments-3d/GPSmap196/gpsmap196.xml
2014-05-13 12:34:28 +02:00

364 lines
13 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<path>gpsmap196.ac</path>
<animation>
<object-name>gps196.body</object-name>
<object-name>gps196.screen</object-name>
<object-name>gps196.antenna</object-name>
<object-name>gps196.rocker.up</object-name>
<object-name>gps196.button.in</object-name>
<object-name>gps196.button.dto</object-name>
<object-name>gps196.button.out</object-name>
<object-name>gps196.button.menu</object-name>
<object-name>gps196.button.nrst</object-name>
<object-name>gps196.button.page</object-name>
<object-name>gps196.button.quit</object-name>
<object-name>gps196.rocker.down</object-name>
<object-name>gps196.rocker.left</object-name>
<object-name>gps196.button.power</object-name>
<object-name>gps196.rocker.right</object-name>
<object-name>gps196.button.enter</object-name>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.dto</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-dto</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-dto</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.enter</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-enter</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-enter</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.in</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-in</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-in</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.menu</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-menu</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-menu</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.nrst</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-nrst</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-nrst</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.out</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-out</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-out</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.page</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-page</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-page</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.power</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-power</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-power</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.button.quit</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-quit</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/button-quit</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.rocker.down</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-down</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-down</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.rocker.left</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-left</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-left</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.rocker.right</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-right</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-right</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.rocker.up</object-name>
<action>
<button>0</button>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-up</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>instrumentation/gps196/inputs/rocker-up</property>
<value type="bool">false</value>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>gps196.screen</object-name>
<action>
<button>0</button>
<binding>
<command>nasal</command>
<script>
<![CDATA[
var dlg = canvas.Window.new([512, 256], "dialog").set("resize", 1).set("title", "Garmin GPSmap196");
var gps196Widget = dlg.createCanvas().setColorBackground(0,0,1,1);
var root = gps196Widget.createGroup();
canvas.parsesvg(root, "Aircraft/Instruments-3d/GPSmap196/widget/gpsmap196-widget.svg");
var display = root.getElementById("gps196.widget.screen");
var buttonIn = root.getElementById("gps196.widget.button.in");
buttonIn.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-in", 1); });
buttonIn.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-in", 0); });
var buttonOut = root.getElementById("gps196.widget.button.out");
buttonOut.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-out", 1); });
buttonOut.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-out", 0); });
var buttonDto = root.getElementById("gps196.widget.button.dto");
buttonDto.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-dto", 1); });
buttonDto.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-dto", 0); });
var buttonPage = root.getElementById("gps196.widget.button.page");
buttonPage.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-page", 1); });
buttonPage.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-page", 0); });
var buttonQuit = root.getElementById("gps196.widget.button.quit");
buttonQuit.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-quit", 1); });
buttonQuit.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-quit", 0); });
var buttonMenu = root.getElementById("gps196.widget.button.menu");
buttonMenu.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-menu", 1); });
buttonMenu.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-menu", 0); });
var buttonNrst = root.getElementById("gps196.widget.button.nrst");
buttonNrst.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-nrst", 1); });
buttonNrst.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-nrst", 0); });
var buttonEnter = root.getElementById("gps196.widget.button.enter");
buttonEnter.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-enter", 1); });
buttonEnter.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-enter", 0); });
var buttonPower = root.getElementById("gps196.widget.button.power");
buttonPower.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/button-power", 1); });
buttonPower.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/button-power", 0); });
var rockerUp = root.getElementById("gps196.widget.rocker.up");
rockerUp.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/rocker-up", 1); });
rockerUp.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/rocker-up", 0); });
var rockerDown = root.getElementById("gps196.widget.rocker.down");
rockerDown.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/rocker-down", 1); });
rockerDown.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/rocker-down", 0); });
var rockerLeft = root.getElementById("gps196.widget.rocker.left");
rockerLeft.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/rocker-left", 1); });
rockerLeft.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/rocker-left", 0); });
var rockerRight = root.getElementById("gps196.widget.rocker.right");
rockerRight.addEventListener("mousedown", func(e) { setprop("instrumentation/gps196/inputs/rocker-right", 1); });
rockerRight.addEventListener("mouseup", func(e) { setprop("instrumentation/gps196/inputs/rocker-right", 0); });
var gps196CanvasInstance = canvas.get({name: "GPSmap196-screen"});
display.createChild("image").setFile(gps196CanvasInstance);
#dlg.setCanvas(canvas.get({name: "GPSmap196-screen"}));
]]>
</script>
</binding>
</action>
</animation>
</PropertyList>