Changed to use the new mod-up support for panel mouse actions. Now,
you simply click with the left mouse button to advance to 'both'; after that, if you click again, the start engages until you let go of the mouse button, at which point the knob snaps back to 'both'.
This commit is contained in:
parent
183fe78168
commit
754cca868d
1 changed files with 27 additions and 12 deletions
|
@ -185,6 +185,12 @@
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<action>
|
<action>
|
||||||
|
<condition>
|
||||||
|
<less-than>
|
||||||
|
<property alias="../../../../../params/magneto-select"/>
|
||||||
|
<value>3</value>
|
||||||
|
</less-than>
|
||||||
|
</condition>
|
||||||
<name>Rotate knob right</name>
|
<name>Rotate knob right</name>
|
||||||
<button>0</button>
|
<button>0</button>
|
||||||
<x>-40</x>
|
<x>-40</x>
|
||||||
|
@ -202,23 +208,32 @@
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<action>
|
<action>
|
||||||
<name>Start</name>
|
<condition>
|
||||||
<button>1</button>
|
<equals>
|
||||||
<x>-70</x>
|
<property alias="../../../../../params/magneto-select"/>
|
||||||
|
<value>3</value>
|
||||||
|
</equals>
|
||||||
|
</condition>
|
||||||
|
<name>Engage starter</name>
|
||||||
|
<button>0</button>
|
||||||
|
<x>-40</x>
|
||||||
<y>-35</y>
|
<y>-35</y>
|
||||||
<w>72</w>
|
<w>36</w>
|
||||||
<h>72</h>
|
<h>72</h>
|
||||||
<binding>
|
<repeatable type="bool">false</repeatable>
|
||||||
<command>property-toggle</command>
|
|
||||||
<property alias="../../../../params/starter-select"/>
|
|
||||||
</binding>
|
|
||||||
<!--mod-up>
|
|
||||||
<binding>
|
<binding>
|
||||||
<command>property-assign</command>
|
<command>property-assign</command>
|
||||||
<property>/controls/starter[0]</property>
|
<property alias="../../../../params/starter-select"/>
|
||||||
<value type="bool">0</value>
|
<value type="bool">true</value>
|
||||||
|
<repeatable type="bool">false</repeatable>
|
||||||
</binding>
|
</binding>
|
||||||
</mod-up-->
|
<mod-up>
|
||||||
|
<binding>
|
||||||
|
<command>property-assign</command>
|
||||||
|
<property alias="../../../../../params/starter-select"/>
|
||||||
|
<value type="bool">false</value>
|
||||||
|
</binding>
|
||||||
|
</mod-up>
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
</actions>
|
</actions>
|
||||||
|
|
Loading…
Add table
Reference in a new issue