• 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 (SOLVED) Can you Fill a Triangle Polyline?

Messages
10,088
Country
us-arizona
This is for FS2004 XML coding;

Can you fill a Polyline (Triangle, shape) ?

I experimented. It crashes the gauge. Perhaps I am doing it wrong? Perhaps it goes in a specific location?

Code:
<Element>
<Position X="282" Y="106" />
<Polyline Color="#43EAF0" LineWidth="3">
<Point X="-12" Y="0" />
<Point X="12" Y="0" />
<Point X="0" Y="18" />
<Point X="-12" Y="0" />
</Polyline>
</Element>
 
Messages
10,088
Country
us-arizona
I didnt see that you can have a triangle. Only Rectangles and Circles, right? So only those can be filled, I am guessing, as a Polyline can be without closure on its ends. My thoughts are, this cannot be done, but I thought I would ask.

Again, this is for FS2004 XML code.


Bill
 

Luka

Resource contributor
Messages
212
Country
serbia
Use Polygon instead of Polyline.
Code:
<Element>
<Position X="282" Y="106" />
<Polygon FillColor="red" Color="#43EAF0" LineWidth="3">
<Point X="-12" Y="0" />
<Point X="12" Y="0" />
<Point X="0" Y="18" />
<Point X="-12" Y="0" />
</Polygon>
</Element>
 
Messages
10,088
Country
us-arizona
Worked brilliant!

Note, you have to change also the bottom end-cap of the parameter. I had </Polyline> instead of </Polygon> at the bottom. Wasnt working. Note for others. (I didnt copy that bit the first time).
 
Messages
10,088
Country
us-arizona
V4 does. It will not run the old style FS2004 GAU gauges though, from what I hear. I havent experimented with that though. I think its actually FS2002 and earlier GAU gauges that it will not run. But it runs FS9 XML excellently. :D
 
Messages
1,451
Country
mexico
Hi Bill

In case you don't remember, this polygon variety supports transparency as well. I can recall learning this from a tutorial made by Fr. Leaming, who explains how to implement LCD screens with dimmable brightness control.

Thank you kindly and see ya' soon.
All the best,
Sergio.
;)
 
Top