- Messages
- 74
- Country

Hello everyone
Recently i have done a 3D altimeter which work almost perfectly. But one thing bothers me when I try adjust the calibration knob (set lesser value) both needles (Km and M) stop on 0 and do not go down. Here some code I used
needles
Dial and knob
Any suggestion ?
Recently i have done a 3D altimeter which work almost perfectly. But one thing bothers me when I try adjust the calibration knob (set lesser value) both needles (Km and M) stop on 0 and do not go down. Here some code I used
needles
Code:
<PartInfo>
<Name>Altimeter_Meters_Needle</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(A:INDICATED ALTITUDE, meters) 10 / 100 %
</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>Altimeter_Kilometers_Needle</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(A:INDICATED ALTITUDE, meters) 100 / 100 %
</Code>
</Parameter>
</Animation>
</PartInfo>
Dial and knob
Code:
<PartInfo>
<Name>Altimeter_Air_Pressure_Dial</Name>
<AnimLength>120</AnimLength>
<Animation>
<Parameter>
<Code>
(A:KOHLSMAN SETTING HG, mmHg) 670 - 0 max 120 min
</Code>
</Parameter>
</Animation>
</PartInfo>
<PartInfo>
<Name>Altimeter_Knob</Name>
<AnimLength>120</AnimLength>
<Animation>
<Parameter>
<Code>
(A:KOHLSMAN SETTING HG, mmHg) 670 - 0 max 120 min
</Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>hand</Cursor>
<MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle+MoveRepeat</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{ (M:X) (>L:ClickStart) }
(M:Event) 'WheelUp' scmi 0 == if{ (>K:KOHLSMAN_INC) }
(M:Event) 'WheelDown' scmi 0 == if{ (>K:KOHLSMAN_DEC) }
(M:Event) 'LeftDrag' scmi 0 == if{ (M:X) (L:ClickStart) - 0 <
if{ (>K:KOHLSMAN_INC) }
els{ (>K:KOHLSMAN_DEC) } }
</CallbackCode>
</MouseRect>
</PartInfo>
Any suggestion ?