- Messages
- 153
- Country

Hello All,
I'm having an issue with coding a couple dials in my VC. The dials are the DRP QTY and CVG Level dials. I have the aninimations working correctly except I want them to always start at Line on DRP QTY and 3 on CVG Level.
When I add the 80 in front of the code, the dial starts in the correct spot but I can only move the dial from the 80 key to the 100 key. I know I am probably missing something simple. Any Help would be greatly appreciated.
I'm having an issue with coding a couple dials in my VC. The dials are the DRP QTY and CVG Level dials. I have the aninimations working correctly except I want them to always start at Line on DRP QTY and 3 on CVG Level.
When I add the 80 in front of the code, the dial starts in the correct spot but I can only move the dial from the 80 key to the 100 key. I know I am probably missing something simple. Any Help would be greatly appreciated.
Code:
<Animation name="s2t_drop_qty_selector" guid="1b997018-cbd2-4690-a998-d151468bd3db" length="100" type="Sim" typeParam2="s2t_drop_qty_selector" typeParam="AutoPlay" />
<PartInfo>
<Name>s2t_drop_qty_selector</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
80 (L:s2t_drop_qty_selector, number) 20 * +
</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_DROP_QUANTITY_SELECTOR_SWITCH</HelpID>
<TooltipID>Drop Qty:%((L:s2t_drop_qty_selector, number))%{case}%{:0}TO/S%{:1}1/4%{:2}1/3%{:3}1/2%{:4}Line%{:5}Salvo%{End}</TooltipID>
<MouseFlags>WheelDown+WheelUp+LeftSingle+RightSingle</MouseFlags>
<CallbackCode>
(M:Event) 'WheelUp' scmi ! if{ (L:s2t_drop_qty_selector, number) ++ 100 min (>L:s2t_drop_qty_selector, number) }
(M:Event) 'WheelDown' scmi ! if{ (L:s2t_drop_qty_selector, number) -- 0 max (>L:s2t_drop_qty_selector, number) }
</CallbackCode>
</MouseRect>
</PartInfo>