- Messages
- 106
- Country

is it possible to create a switch with 3 ways and beginn at the middle position?
the "XX" in the graphic are the keyframes.
if is possible, how must i write the code
the "XX" in the graphic are the keyframes.
if is possible, how must i write the code
Code:
<PartInfo>
<Name>Switch_test</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:testswitch,enum) 50 * +
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Switch test (%((L:testswitch,enum))%{case}%{:0}0%{:1}1%{:2}2%{end})</TooltipText>
<MouseFlags>LeftSingle+LeftRelease+RightSingle+RightRelease</MouseFlags>
<CallbackCode>
(M:Event) 'RightSingle' scmp 0 ==
if{ (L:testswitch,enum) ++ 2 min (>L:testswitch,enum) }
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:testswitch,enum) -- -1 max (>L:testswitch,enum) }
} 1 (>L:push_1,enum)
(L:testswitch, enum) -1 == if{ (>L:testswitch,enum) (>L:testswitch,enum)}
(L:testswitch, enum) 1 == if{ (>L:testswitch,enum) (>L:testswitch,enum)}
(L:testswitch, enum) 0 == (L:testswitch,enum) 1 == and if{ (>L:testswitch,enum) }
(L:testswitch, enum) 1 == (L:testswitch,enum) 2 == and if{ (>L:testswitch,enum) }}
</CallbackCode>
</MouseRect>
</PartInfo>
