• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

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

Messages
10,057
Country
us-arizona
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
 
Messages
540
Country
australia
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:
Messages
1,564
Country
thailand
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:
Messages
10,057
Country
us-arizona
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.
 
Messages
10,057
Country
us-arizona
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.
 
Messages
10,057
Country
us-arizona
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...
 
Messages
10,057
Country
us-arizona
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>
 
Messages
10,057
Country
us-arizona
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