• 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.

Drawing a Rectangle?

Yes:

Code:
         <Element>
            <Visible> (L:PowerON,enum) 0 ==</Visible>
            <Rectangle Width="268" Height="68" FillColor="#080808"/>
         </Element>
 
Sigh... I cant believe this. I meant to say 'Triangle'. I was so stressed out from the fonts not working on my latest project, I wrote Rectangle.

I was trying to use what was said in the SDK, 'custom shapes' and tried that, but it didnt work, and once again, all my fonts disappeared. In the 'custom shape' it has a Points section. How do you fill out the points for a custom shape? I am guessing something like;

Points= "33,24 63,50 45,24"

Or would one have several Points sections?
 
From fs9gps.xml:
Code:
<Element>
    <Polygon FillColor="Yellow" Bright="Yes">
        <Point X="0" Y="0"/>
        <Point X="7" Y="8"/>
        <Point X="-7" Y="8"/>
    </Polygon>
</Element>
Code:
<Element>
    <Polyline Color="0x208020" LineWidth="3">
        <Point X="-2" Y="0"/>
        <Point X=" 2" Y="6"/>
        <Point X="-2" Y="12"/>
    </Polyline>
</Element>
 
This code is from the ever useful default GPS and draws, as it says, an aircraft symbol
Code:
           <Element>
                <!-- Aircraft symbol -->
                <Position X="137" Y="150"/>
                <Polygon FillColor="%((@g:setup_ColorTerrain) if{ 0x503030 } els{ 0xF0D0D0 })" Bright="Yes">
                    <Point X=" 0.5" Y="-7.5"/>
                    <Point X="   2" Y="-6.5"/>
                    <Point X="   2" Y="  -4"/>
                    <Point X=" 7.5" Y="  -4"/>
                    <Point X=" 7.5" Y="-1.5"/>
                    <Point X="   2" Y="-1.5"/>
                    <Point X="   2" Y=" 4.5"/>
                    <Point X=" 4.5" Y=" 4.5"/>
                    <Point X=" 4.5" Y=" 6.5"/>
                    <Point X="-4.5" Y=" 6.5"/>
                    <Point X="-4.5" Y=" 4.5"/>
                    <Point X="  -2" Y=" 4.5"/>
                    <Point X="  -2" Y="-1.5"/>
                    <Point X="-7.5" Y="-1.5"/>
                    <Point X="-7.5" Y="  -4"/>
                    <Point X="  -2" Y="  -4"/>
                    <Point X="  -2" Y="-6.5"/>
                    <Point X="-0.5" Y="-7.5"/>
                </Polygon>
                <Rotate>
                    <Value>(@g:currentPageNAV) @kNAVPageDflt == if{ 0 } els{ (A:GPS GROUND TRUE TRACK, Radians) }</Value>
                </Rotate>
                <Shift>
                    <Value>(@g:currentPageNAV) @kNAVPageDflt == if{ 0 } els{ 52 }</Value>
                    <Scale Y="-1"/>
                </Shift>
            </Element>

You mention losing your fonts so just in case here is another example where I put an image into a line of text using {img1} code. Just in case you need it. This can be a handy way to add images to text displays when needed.

Code:
    <Element>
       <Position X="1" Y="1"/>
       <FormattedText X="95" Y="30" Length="5" Font="Arial" FontWeight="800" FontSize="18" Adjust="Left" VerticalAdjust="Center" Color="@DataWindowWhite" Bright="Yes">
       <Image Name="ants296_degm.bmp"/>
       <String>%((A:GPS GROUND MAGNETIC TRACK, degrees))%!03d!\{img1}</String>
       </FormattedText>
     </Element>
 
You guys are awesome. A thousand thanks. I never dreamed the airplane was 'drawn' in GPS. Goodness... Nor did I know it was possible to make such a shape in a screen. That will open some doors up.
 
Back
Top