Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.


Your <Lag> is in the wrong position. It must come immediately after the </Code> tag:But now there's no animation - the <lag> toes nothing, change in animation is instant.
Any ideas on that?
<Animation>
<Parameter>
<Code>(L:Binoculars Open, bool) 200 *</Code>
<Lag>50</Lag>
</Parameter>
</Animation>

<Animation name="Vanship_Binoculars" guid="bd6edd22-18fd-4b78-cdcd-8dd58c494af1" type="Sim" typeParam="AutoPlay" length="200" typeParam2="Vanship_Binoculars" />
<PartInfo>
<Name>Vanship_Binoculars</Name>
<AnimLength>200</AnimLength>
<Animation>
<Parameter>
<Code>(L:Binoculars Open, bool) 200 *</Code>
<Lag>50</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Binoculars are %((L:Binoculars Open, bool))%{if}unfolded%{else}folded%{end}</TooltipText>
<CallbackCode>(L:Binoculars Open, bool) ! (>L:Binoculars Open, bool)
</CallbackCode>
</MouseRect>
</PartInfo>


<MouseFlags>LeftDrag+LeftSingle</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmi 0 == if{ (M:X) (>L:ClickStart) }
(M:Event) 'LeftDrag' scmi 0 == if{ (M:X) (L:ClickStart) - 0.1 * 0 max 100 min (>L:LeverPosition, enum) }
</CallbackCode>


Yes, and the (>L:Clickstart,enum) in the first line is initializing the mouse cursor's current x coordinate value.To make sure I understand basics:
The variable's name here is "LeverPosition" and its unit is enum - one of miscellaneous units.
0 max and 100 min are start and end of variable's range.
First line after <CallbackCode> is responsible for single click (not dragging) and the second line is responsible for dragging.
Is that correct thinking?


Well...
Another question:
Is there a way to assign a keyboard key/mouse/joystick to change a custom variable?
eg.: I have a custom variable, that controls binoculars (look above) when you click on something in virtual cockpit, but I also want to fold/unfold those binoculars by clicking B key on keyboard.
<?xml version="1.0" encoding="UTF-8"?>
<Gauge Name="Control Spoilers By Key" Version="1.0">
<Keys>
<On Key="374">
<!-- Shift + F7 = extend by increment of 5 -->
(A:SPOILERS ARMED,bool)
if{ (>K:SPOILERS_ARM_TOGGLE) }
(A:SPOILERS HANDLE POSITION,percent) 5 + 100 min 163.83 * (>K:SPOILERS_SET)
</On>
</Keys>
</Gauge>