FS2004 FS9 GPS: What makes this airport runway map show up?

#21
While I am asking questions. This one was another puzzle. Today has been the day for finding walls or mysteries. This is the small pink bracket looking arrow that moves down a notch each time you cross a waypoint. The issue is, I need to move it down and over. I will also need to make a new one, as its a Poly object, rendered, but thats not the problem. The problem is, there is no coordinates. Again, just like the popup message window that is generic, with mysterious codes for width and height, so to with this 'heiroglyph'.

Code....


Code:
// PINK THING SHOWS ACTIVE LEG
                    <Element>
                        <Visible>
                            (@c:FlightPlanIsActiveWaypoint)
                        </Visible>
                        <RelClip Left="01" Top="10" Width="252" Height="159"/>
                        <Polyline Color="0xf040f0" LineWidth="2">
                            <Point X="7" Y="8"/>
                            <Point X="2" Y="8"/>
                            <Point X="2" Y="-11"/>
                            <Point X="6" Y="-11"/>
                            <Point X="6" Y="-10"/>
                            <Point X="3" Y="-10"/>
                            <Point X="3" Y="7"/>
                            <Point X="7" Y="7"/>
                            <Point X="5" Y="10"/>
                            <Point X="5" Y="5"/>
                            <Point X="7" Y="8"/>
                        </Polyline>
                        <Shift>
                            <Value>
                                @FPLLineIndex
                                17 * (@g:listScroll) - 5 +
                            </Value>
                            <Scale Y="1"/>
                        </Shift>
                </Element>
And a screenshot of said 'Pink Thing' which I shall call said heiroglyph.

O83958935.JPG
 
#22
Regards the Pink Bracket ,
I was only able to get that to function for the initial page .
The initial page lists about 15 FltPln legs , if you have a long FltPln with say about 60 legs you need to scroll it , in that case
the bracket will not go past the 15 th leg .

To overcome that I utilised an idea provided by Luka at reply # 4 of this link ,
https://www.fsdeveloper.com/forum/threads/loop-selected-line-colour-highlighting.434094/

This gives the current active Leg line a different colour , following is loop code that I use in my scrollable
FltPln listing page , it colour highlights the current active leg no matter how long the flight plan is or what portion it is scrolled to ,
it might be of use to you .
Code:
                       <GaugeString>
                            %((L:ListInitialVis) 15 + (@c:FlightPlanWaypointsNumber) min s2)
                                %{if}%((L:ListInitialVis) sp1)
                                    %{loop}
                                    %((A:GPS FLIGHT PLAN WP INDEX, number) l1 ==)%{if}\{clr=@NextFontColor}%{else}\{clr}%{end}                                  
                                        %(l1 (>@c:FlightPlanWaypointIndex))
                                            %((@c:FlightPlanWaypointIndex))%!d!
                                            \t%((@c:FlightPlanWaypointIdent))%!s!
                                            \t%((@c:FlightPlanWaypointMagneticHeading,degrees) d360)%!03d!
                                            \t%((@c:FlightPlanWaypointRemainingDistance,nmiles))%!9.1f!
                                            \t%((@c:FlightPlanWaypointRemainingTotalDistance,nmiles))%!d!\n
                                        %(l1 ++ s1 l2 &lt;)
                                    %{next}
                                %{end}
                        </GaugeString>
Cheers
Karol

PS - shot of Scrollable Flight Plan listing , at right of panel .
SEQ/FltPln Index 4 is active , is different colour (orange ).
The Green bar is equivalent to Pink bracket , does not work .
xx_FltPln List.jpg
 
Last edited:
#23
the PopupMenu dimensions ... it auto creates (generates) its own
Oh, ok. I see you're using HeightCode and WidthCode in places rather than Height and Width. You'll need to come up with your own variables (L:Vars) in place of the @g vars inside the HeightCode, WidthCode brackets, adjust the existing parameters by multiplication or adding values (this is what you're trying I think), or go with set heights and widths using Height="Y" and Width="X".

You're in for some tedious work to re-position and re-size these things. Good approach to identify the responsible code by changing fill or font colors. โชคดี

Bob
 
Last edited:
#25
Regards the Pink Bracket ,
I was only able to get that to function for the initial page .
The initial page lists about 15 FltPln legs , if you have a long FltPln with say about 60 legs you need to scroll it , in that case
the bracket will not go past the 15 th leg .

To overcome that I utilised an idea provided by Luka at reply # 4 of this link ,
https://www.fsdeveloper.com/forum/threads/loop-selected-line-colour-highlighting.434094/

This gives the current active Leg line a different colour , following is loop code that I use in my scrollable
FltPln listing page , it colour highlights the current active leg no matter how long the flight plan is or what portion it is scrolled to ,
it might be of use to you .
Code:
                       <GaugeString>
                            %((L:ListInitialVis) 15 + (@c:FlightPlanWaypointsNumber) min s2)
                                %{if}%((L:ListInitialVis) sp1)
                                    %{loop}
                                    %((A:GPS FLIGHT PLAN WP INDEX, number) l1 ==)%{if}\{clr=@NextFontColor}%{else}\{clr}%{end}                                 
                                        %(l1 (>@c:FlightPlanWaypointIndex))
                                            %((@c:FlightPlanWaypointIndex))%!d!
                                            \t%((@c:FlightPlanWaypointIdent))%!s!
                                            \t%((@c:FlightPlanWaypointMagneticHeading,degrees) d360)%!03d!
                                            \t%((@c:FlightPlanWaypointRemainingDistance,nmiles))%!9.1f!
                                            \t%((@c:FlightPlanWaypointRemainingTotalDistance,nmiles))%!d!\n
                                        %(l1 ++ s1 l2 &lt;)
                                    %{next}
                                %{end}
                        </GaugeString>
Cheers
Karol

PS - shot of Scrollable Flight Plan listing , at right of panel .
SEQ/FltPln Index 4 is active , is different colour (orange ).
The Green bar is equivalent to Pink bracket , does not work .
I am way impressed!!! DANG! This opens some doors in customization. Goodness... Thanks Karol.
 
#26
Oh, ok. I see you're using HeightCode and WidthCode in places rather than Height and Width. You'll need to come up with your own variables (L:Vars) in place of the @g vars inside the HeightCode, WidthCode brackets, adjust the existing parameters by multiplication or adding values (this is what you're trying I think), or go with set heights and widths using Height="Y" and Width="X".

You're in for some tedious work to re-position and re-size these things. Good approach to identify the responsible code by changing fill or font colors. โชคดี

Bob
Many thanks, Bob. I didnt think that I might be able to just assign it my own custom rectangle. All I need is the code and the ability to scroll. I'll see if I can make that work.
 
#27
A little headway on my strange rectangle. Looking a bit more refined now.

PGOERPGOWR.JPG


Getting rid of all mysterious scaling code and hidden meaning bits did the trick. I couldnt get the verbage to operate though, even with RelClip, to contain the code in a shorter zone 'and' be able to see all the stack inside the clip window. :( But this is a thousand times better then it was. Happy...
 
#28
Back to getting 'Pink Heiroglyph Thing' working. I chose to make a Bitmap of the glyph, then began trying to hack how its movement was controlled. I more then doubled the size (scale) of the unit. I found I needed to adjust the 'scale' on this as well as the xx * setting. After much trial and error, I found something (a setting) that works... wheww.... If I drank, it would be time for a strong drink.


Code:
// PINK THING SHOWS ACTIVE LEG
                    <Element>
                    <Position X="83" Y="152"/>
                        <Visible>
                            (@c:FlightPlanIsActiveWaypoint)
                        </Visible>
                        <RelClip Left="01" Top="10" Width="252" Height="400"/>
                                                                                    <Image Name="PinkThing.bmp" Bright="Yes" ImageSizes="16,36"/>
                        <Shift>
                            <Value>
                                @FPLLineIndex
                                36 * (@g:listScroll) - 5 +  
                            </Value>
                            <Scale Y="0.89"/>
                        </Shift>
                </Element>
 
#29
I tried all the tricks on this. Shooting in the dark. Sometimes I needed adjustments to the general 'Position' location (Y axis) as changing things like the 5 setting moved it up and down, etc, etc. What a mess.

The way I got the scale right in the sim for the glyph came to me early in the morning, as though by the Holy Spirit. Screenshot on the panel, took that and pasted it onto the master Bitmap of the screen and scaled that to fit, then created a graphic 'arrow' unit (pink heiroglyph) and exported it into its own and saved as Bitmap.

So grateful its working. Thanks guys for the input.
 
Top