- Messages
- 10,057
- Country
-
Hey all,
I am trying to make a Image 'appear' and 'flow through' a Mask. Image appears, and immediately it is moving, flowing downwards, for a certain period of time, (very long image), and then disappears.
I am not able to get it to work. I have been going through the code you guys blessed me with a while back, but seem to be missing something.
So that you invision it better, its like a page of code during a PFD boot up sequence. A flood of code poors downwards as the system boots up. The image is gauge code (Bitmap, tall, like an Altimeter tape or ASI tape in a PFD).
The Boot up screen works awesome. Thanks Bill Leaming. Now I am adding to it and adding this tape (Code Flow Element).
This is what I have for the animation part;
And this is the entire code section that runs the visibility, etc, which I do not think I really need, as I am running it off the Boot screen system, which is identical, without the CodeFlow.
I am wondering if I can run the Shift animation off of the Bootup timer?
This is the Code Flow entire section;
I think there should be a terribly basic way of writing this, I would think. I do not wish to use a Update section for the timer. Its only used in the Bootup section and that uses a timer also, so I wish to use this in this section of the code to simplify things.
Bob, I think you helped me with this months ago, showing me a sample of code you gave me (if you sent me this) which has many animations. For some reason, I cannot seem to put this into a working plan in this way.
Flow direction is Y axis, downwards.
Any suggestions? Can you see what I am doing wrong?
I am trying to make a Image 'appear' and 'flow through' a Mask. Image appears, and immediately it is moving, flowing downwards, for a certain period of time, (very long image), and then disappears.
I am not able to get it to work. I have been going through the code you guys blessed me with a while back, but seem to be missing something.
So that you invision it better, its like a page of code during a PFD boot up sequence. A flood of code poors downwards as the system boots up. The image is gauge code (Bitmap, tall, like an Altimeter tape or ASI tape in a PFD).
The Boot up screen works awesome. Thanks Bill Leaming. Now I am adding to it and adding this tape (Code Flow Element).
This is what I have for the animation part;
Code:
<Element Name="CODE FLOW">
<Visible>(L:3308BootScreen,enum) 1 == </Visible>
<Position X="20" Y="0"/>
<MaskImage Name="CodeFlowMask.bmp" Bright="Yes" ImageSizes="490,680"/>
<Image Name="CodeFlow.bmp" Bright="Yes" ImageSizes="500,3576"/>
<Shift>
<Value Minimum="0" Maximum="300">0 300 (L:3308CODE FLOW Time,enum) rng if{
(L:3308CODE FLOW SHIFT,enum) -- (>L:3308CODE FLOW SHIFT,enum)
</Value>
<Scale Y="4"/>
</Shift>
</Element>
And this is the entire code section that runs the visibility, etc, which I do not think I really need, as I am running it off the Boot screen system, which is identical, without the CodeFlow.
I am wondering if I can run the Shift animation off of the Bootup timer?
This is the Code Flow entire section;
Code:
<!-- CODE FLOW SCREEN -->
<!-- Initialize all variables when power is OFF -->
<Element>
<Select>
<Value>
(A:Avionics Master Switch,bool) 0 == (A:Electrical Master Battery,bool) 0 == || if{
0 (>L:3308CODE FLOW Screen,enum)
0 (>L:3308CODE FLOW Time,enum)
0 (>L:3308CODE FLOW SHIFT,enum) }
</Value>
</Select>
</Element>
<!-- Start timer and increment when both battery and avionics are ON -->
<Element>
<Select>
<Value>
(A:Avionics Master Switch,bool) (A:Electrical Master Battery,bool) and (L:3308CODE FLOW Time,enum) 300 <= and
if{ (L:3308CODE FLOW Time,enum) ++ (>L:3308CODE FLOW Time,enum) 1 (>L:3308CODE FLOW Screen,enum) }
</Value>
</Select>
</Element>
<!-- Stop timer after 20 seconds -->
<Element>
<Select>
<Value>
(L:3308CODE FLOW Time,enum) 300 > if{ 0 (>L:3308CODE FLOW Screen,enum) }
</Value>
</Select>
</Element>
<!-- AAA While the "CODE FLOW screen" variable is ON and battery is ON, display the CODE FLOW screen bitmap -->
<Element>
<Visible>(L:3308CODE FLOW Screen,enum) 1 == </Visible>
<Position X="0" Y="0"/>
<Image Name="SYROS_PFD_CODE FLOW UP.bmp" ImageSizes="1500,681" Bright="Yes">
</Image>
</Element>
<!-- CCC While the "CODE FLOW screen" variable is ON and battery is ON, display the CODE FLOW screen bitmap -->
<Element Name="CODE FLOW">
<Visible>(L:3308BootScreen,enum) 1 == </Visible>
<Position X="20" Y="0"/>
<MaskImage Name="CodeFlowMask.bmp" Bright="Yes" ImageSizes="490,680"/>
<Image Name="CodeFlow.bmp" Bright="Yes" ImageSizes="500,3576"/>
<Shift>
<Value Minimum="0" Maximum="300">0 300 (L:3308CODE FLOW Time,enum) rng if{
(L:3308CODE FLOW SHIFT,enum) -- (>L:3308CODE FLOW SHIFT,enum)
</Value>
<Scale Y="4"/>
</Shift>
</Element>
I think there should be a terribly basic way of writing this, I would think. I do not wish to use a Update section for the timer. Its only used in the Bootup section and that uses a timer also, so I wish to use this in this section of the code to simplify things.
Bob, I think you helped me with this months ago, showing me a sample of code you gave me (if you sent me this) which has many animations. For some reason, I cannot seem to put this into a working plan in this way.
Flow direction is Y axis, downwards.
Any suggestions? Can you see what I am doing wrong?