- Messages
- 5
- Country

Hi!
I'm about to pull my hair out now. The link to the 2D panel for this part works great. I can control the part from the 2D gauge, but the click area in the VC does not work properly. No matter what position the switch is in and no matter whether I left or right click, the result is always '2', as in the last else section. Why?
I'm about to pull my hair out now. The link to the 2D panel for this part works great. I can control the part from the 2D gauge, but the click area in the VC does not work properly. No matter what position the switch is in and no matter whether I left or right click, the result is always '2', as in the last else section. Why?
Code:
<PartInfo>
<Name>switch_hydraulic</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:vc_readout_switch_pos,number) 50 *
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+RightSingle</MouseFlags>
<TooltipText>Hydraulic Indicator Selector</TooltipText>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if
{
(L:vc_readout_switch_pos,number) 2 ==
if
{
1 (>L:vc_readout_switch_pos,number)
}
els
{
0 (>L:vc_readout_switch_pos,number)
}
}
els
{
(L:vc_readout_switch_pos,number) 0 ==
if
{
1 (>L:vc_readout_switch_pos,number)
}
els
{
2 (>L:vc_readout_switch_pos,number)
}
}
</CallbackCode>
</MouseRect>
</PartInfo>


