FSXA Custom L:Var problems

#1
HI folks, just wondering if anybody can help me with a problem I am having. I have a custom L:Var which drives a call button in the cockpit. Code below.
XML:
    <Animation name="call button" guid="a3c88c2a-5e14-4532-ab58-047dcb210f93" length="50" type="Sim" typeParam2="call button" typeParam="AutoPlay" />
  <PartInfo>
    <Name>call button</Name>
    <AnimLength>50</AnimLength>
    <Animation>
      <Parameter>
        <Code>(L:call button, bool) 50 *</Code>
        <Lag>200</Lag>
      </Parameter>
    </Animation>
    <MouseRect>
      <Cursor>hand</Cursor>
      <TooltipID>TOOLTIPTEXT_CALL_BUTTON</TooltipID>
      <CallbackCode>(L:call button, bool) ! (>L:call button, bool)</CallbackCode>
    </MouseRect>
  </PartInfo>
Now I want the pressing of said call button to display a custom message on my EICAS screen. but I can't seem to figure out how to do this. Every gauge that I have pulled apart and examined seems to have elements in them which are to complex
for my little brain. Is there a simple way of doing this. Would love some input from the experts.
Many thanks in advance.
TJ
 

Heretic

Resource contributor
#2
There is no simple way. You will have to work with a countdown timer that is triggered from the button's L: var by assigning a start value and then keep the EICAS message visible as long as the timer variable is counting down (i.e. larger than zero).
 
#3
You want the message to appear when the button is pressed and to disappear when it is pressed again?

Create a poly floating a tiny distance in front of the EICAS screen. Texture it with your message on it.

Then, in addition to the button animation, create a visibility condition like so
Code:
<PartInfo>
<Name>EICAS_message XXX</Name>
<Visibility><Parameter><Code>
  (L:call button, bool)
</Code></Parameter></Visibility>
</PartInfo>
No <Animation> line needed. Attach the vis condition to the poly. Done.
 
Top