- Messages
- 10,088
- Country
Hey all,
Trying to make a page that appears on the PFD screen when you click on the screen. The page would appear for a moment, then disappear after a short while.
I cannot seem to find the issue? Hoping someone might spot it.
This is based off of Bill Leamings boot up screen gauge code;
The code immediately above (bottom code block) works perfectly, but runs off of conditions of 'power off', not a click zone.
Trying to make a page that appears on the PFD screen when you click on the screen. The page would appear for a moment, then disappear after a short while.
I cannot seem to find the issue? Hoping someone might spot it.
Code:
<!-- TIMER PAGE EXPERIMENT 1 -->
<!-- Initialize all variables -->
<Element>
<Select>
<Value>
(L:PFD_PAGE_ONE_SELECT,bool) 0 == if{
0 (>L:PFDaltPAGEoneScreen,enum)
0 (>L:PFDaltPAGEoneTime,enum) }
</Value>
</Select>
</Element>
<!-- Start timer and increment when click zone is ON -->
<Element>
<Select>
<Value>
(L:PFD_PAGE_ONE_SELECT,bool) 1 >
if{ (L:L:PFDaltPAGEoneTime,enum) ++ (>L:PFDaltPAGEoneTime,enum) 1 (>L:L:PFDaltPAGEoneScreen,enum) }
</Value>
</Select>
</Element>
<!-- Stop timer after 20 seconds -->
<Element>
<Select>
<Value>
(L:L:PFDaltPAGEoneTime,enum) 74 > if{ 0 (>L:L:PFDaltPAGEoneScreen,enum) }
</Value>
</Select>
</Element>
<!-- While the "bootscreen" variable is ON, display the page bitmap -->
<Element>
<Visible>(L:L:PFDaltPAGEoneScreen,enum) 1 == </Visible>
<Position X="0" Y="0"/>
<Image Name="SYROS_PFD_PAGEONE.bmp" ImageSizes="1500,681" Bright="Yes">
</Image>
</Element>
Code:
<!-- PAGE ONE WITH TIMER -->
<Area Left="1" Top="1" Right="512" Bottom="200">
<Tooltip>Test Page ONE</Tooltip>
<Cursor Type="Hand"/>
<Click Kind="LeftSingle">
1 (>L:PFD_PAGE_ONE_SELECT,bool)
</Click>
</Area>
This is based off of Bill Leamings boot up screen gauge code;
Code:
<!-- BOOT 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:3308BootScreen,enum)
0 (>L:3308BootTime,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:3308BootTime,enum) 250 <= and
if{ (L:3308BootTime,enum) ++ (>L:3308BootTime,enum) 1 (>L:3308BootScreen,enum) }
</Value>
</Select>
</Element>
<!-- Stop timer after 20 seconds -->
<Element>
<Select>
<Value>
(L:3308BootTime,enum) 250 > if{ 0 (>L:3308BootScreen,enum) }
</Value>
</Select>
</Element>
<!-- While the "bootscreen" variable is ON and battery is ON, display the bootscreen bitmap -->
<Element>
<Visible>(L:3308BootScreen,enum) 1 == </Visible>
<Position X="96" Y="41"/>
<Image Name="Garmin_PFD_Bootup_screen.bmp" ImageSizes="769,602" Bright="Yes">
</Image>
</Element>
The code immediately above (bottom code block) works perfectly, but runs off of conditions of 'power off', not a click zone.