Hi Guys, Ive been putting this off for a while but it's getting to the point that I need to start dotting I's and crossing T's.
You guys were so helpful with my last problem...Still can't get over how effective the solution was.
So I have a new one. I'm Attempting to program my pressurization knob. The part is animated from 0 to 100 and is intended to set from zero to 10 thousand feet cabin altitude. I have tried it two ways and neither seem to work. Tool tip appears but none of the changing functions work.
Attempt 1
Attempt 2
They are both recycled from the microsoft modeldef.
Strange thing is i have used the same partinfo template for other parts.
I have gone over this about 50 times and can't see a stuff up. Maybe you guys can?
Thanks in advance.
You guys were so helpful with my last problem...Still can't get over how effective the solution was.
So I have a new one. I'm Attempting to program my pressurization knob. The part is animated from 0 to 100 and is intended to set from zero to 10 thousand feet cabin altitude. I have tried it two ways and neither seem to work. Tool tip appears but none of the changing functions work.
Attempt 1
Code:
<PartInfo>
<Name>orbx_Cab_P_Knob</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>(A:PRESSURIZATION CABIN ALTITUDE GOAL, Feet) 0.01 * </Code>
</Parameter>
</Animation>
<MouseRect>
<Cursor>hand</Cursor>
<TooltipText>Cabin Altitude Goal</TooltipText>
<MouseFlags>WheelUp+WheelDown+LeftDrag+LeftSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{ (M:X) (>L:PRSSRZTN, number) }
(M:Event) 'WheelUp' scmi 0 == if{ (>K:KEY_PRESSURIZATION_PRESSURE_ALT_INC) }
(M:Event) 'WheelDown' scmi 0 == if{ (>K:KEY_PRESSURIZATION_PRESSURE_ALT_DEC) }
(M:Event) 'LeftDrag' scmi 0 == if{ (M:X) (L:PRSSRZTN, number) - 0 < if{ (>K:KEY_PRESSURIZATION_PRESSURE_ALT_INC) } els{ (>K:KEY_PRESSURIZATION_PRESSURE_ALT_DEC) } }
</CallbackCode>
</MouseRect>
</PartInfo>
Attempt 2
Code:
<PartInfo>
<Name>orbx_Cab_P_Knob</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>PRESSURIZATION CABIN ALTITUDE GOAL</Variable>
<Units>Feet</Units>
<Scale>0.01</Scale>
</Sim>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Cabin Altitude Goal</TooltipText>
<MouseFlags>LeftSingle+LeftDrag+Wheel</MouseFlags>
<CallbackJumpDragging>
<XMovement>
<Delta>30</Delta>
<EventIdInc>KEY_PRESSURIZATION_PRESSURE_ALT_INC</EventIdInc>
<EventIdDec>KEY_PRESSURIZATION_PRESSURE_ALT_DEC</EventIdDec>
</XMovement>
</CallbackJumpDragging>
</MouseRect>
</PartInfo>
Strange thing is i have used the same partinfo template for other parts.
I have gone over this about 50 times and can't see a stuff up. Maybe you guys can?
Thanks in advance.



