- Messages
- 205
- Country

Hi XML gurus,
Im struggling with this animation and decided to post here see wether somebody can give me an idea how to do it.
I want an animation, where a rectangle is dynamically draw starting from a width,height of (0,0) to (20,12), but it has to grow from both side (Left and right).
To have an idea what I want to achieve look at this video (min. 4.59 -5.00) where the baro min box apears on the copilots PFD:
Now I have it partialy working with this code snipet from my PFD but the rectangle animates from left to right and I need it to be both side like in the video.
Don't put much attention on my coding my way of programming in XML is somewhat goofy but it works. I'm dividing (L:tel, number) just to create some delay since I use simulator frequency for animation 1/18.
Any idea how i can achieve what is seen in the video using a more efficient code in XML?
thanks.
Adino
Im struggling with this animation and decided to post here see wether somebody can give me an idea how to do it.
I want an animation, where a rectangle is dynamically draw starting from a width,height of (0,0) to (20,12), but it has to grow from both side (Left and right).
To have an idea what I want to achieve look at this video (min. 4.59 -5.00) where the baro min box apears on the copilots PFD:
Now I have it partialy working with this code snipet from my PFD but the rectangle animates from left to right and I need it to be both side like in the video.
Code:
(* Piece in my update section that Draws the Baro Minimun box regtangle *)
(A:Decision height, feet) (A:Decision height, feet) 100 + (A:Radio height, feet) rng if{ (L:tel,number) ++ (>L:tel,number) } els{ 0 (>L:tel,number) }
(* Piece in the PFD guage that take cares of the rectangle *)
<Element>
<Visible>(A:SIM ON GROUND, bool) 0 == if{ (A:Decision height, feet) (A:Decision height, feet) 100 + (A:Radio height, feet) rng } </Visible>
<Position X="65" Y="55"/>
<Rectangle Width="20" Height="12" Bright="Yes" FillColor="black">
<WidthCode>(L:tel,number) 2 / </WidthCode>
<HeightCode>(L:tel,number) 3.6 / </HeightCode>
</Rectangle>
</Element>
Don't put much attention on my coding my way of programming in XML is somewhat goofy but it works. I'm dividing (L:tel, number) just to create some delay since I use simulator frequency for animation 1/18.
Any idea how i can achieve what is seen in the video using a more efficient code in XML?
thanks.
Adino
