330
edits
No edit summary |
(Additional slider uses.) |
||
Line 146: | Line 146: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Slider: | Slider (good for breakers): | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<?xml version="1.0" encoding="utf8"?> | <?xml version="1.0" encoding="utf8"?> | ||
Line 166: | Line 166: | ||
</binding> | </binding> | ||
</action> | </action> | ||
</animation> | |||
</PropertyList> | |||
</syntaxhighlight> | |||
Slider used as a "Spring/contact" switch (reverts to 0 on exit): | |||
<syntaxhighlight lang="xml"> | |||
<?xml version="1.0" encoding="utf8"?> | |||
<PropertyList> <animation> | |||
<type>slider</type> | |||
<object-name>a6-att-ref</object-name> | |||
<property>/fdm/jsbsim/systems/adi/att-ref</property> | |||
<factor>0.002</factor> | |||
<axis> | |||
<x>1</x> | |||
<y>0</y> | |||
<z>0</z> | |||
</axis> | |||
<action> | |||
<binding> | |||
<command>property-assign</command> | |||
<property>/fdm/jsbsim/systems/adi/att-ref</property> | |||
<value>1</value> | |||
</binding> | |||
<binding> | |||
<command>nasal</command> | |||
<script> | |||
SpaceShuttle.coas_att_ref(); | |||
SpaceShuttle.click("avionics"); | |||
</script> | |||
</binding> | |||
</action> | |||
<release> | |||
<binding> | |||
<command>property-adjust</command> | |||
<property>/fdm/jsbsim/systems/adi/att-ref</property> | |||
<step>0</step> | |||
<min>0</min> | |||
<max>0</max> | |||
</binding> | |||
</release> | |||
<hovered> | |||
<binding> | |||
<command>set-tooltip</command> | |||
<tooltip-id>a6-att-ref</tooltip-id> | |||
<label>Attitude Reference</label> | |||
</binding> | |||
</hovered> | |||
</animation> | </animation> | ||
</PropertyList> | </PropertyList> |
edits