FS2004 (SOLVED) Can you Fill a Triangle Polyline?

#1
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>
 
#2
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
#3
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>
 
#5
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).
 
#9
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
 
#10
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