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

FSXA Map gauge

Messages
218
Country
greece
I am trying to make a map gauge with an expanding range ring that is controlled by the user.
What I want is the user to be able to adjust the Radius to be from 0 to max gauge height.

I tried scripting the Radius value in both ACES and FS9 schema to no avail -although ACES XML did give me better framerates. Is this possible at all with XML?
 
I've been reading through "the Bible" to get the map and some other things working, successfully so far.
My problem is strictly in creating a circle/ellipse/arc, centered at the bottom midpoint of the screen, and smoothly expanding outwards.

The problem lies in the fact that I cannot change its Radius so I'm stuck with a static ring. Here's the code part:

Code:
<Element Name="Arc">
        <Position X="250 (L:F4B_PPIRNG, number) -" Y="501 (L:F4B_PPIRNG, number)-"/>
        <Arc Radius="(L:F4B_PPIRNG, number)" StartAngle="360" EndAngle="180" LineWidth="3" Color="0x21EE24" Bright="yes">
        </Arc>
    </Element>

F4B_PPIRNG takes values from 0-501 units (max gauge size) based on user input.
 
Last edited:
A possible alternative to your above code element , might be using the following in the Custom Draw .
Code:
               <CustomDrawParam id="LayerRangeRings" Name="LayerRangeRings">
                            <Value>(L:RNGELayer, bool)</Value>
                        </CustomDrawParam> 
  
                        <CustomDrawParam id="TextDetailLayerRangeRings" Name="TextDetailLayerRangeRings">
                            <Value>1</Value>
                        </CustomDrawParam>
                           
                        <CustomDrawParam id="ObjectDetailLayerRangeRings" Name="ObjectDetailLayerRangeRings">
                            <Value>(L:map_ZoomFactor, number)</Value>
                        </CustomDrawParam>

                        <CustomDrawParam id="ColorLayerRangeRings" Name="ColorLayerRangeRings">
                            <Value>0xFFFFFF</Value>
                        </CustomDrawParam>
NOTES :-
1. Where (L:RNGELayer, bool) appears above create a switch to toggle bool state from 0 to 1 to switch ring On or Off ,
or replace (L:RNGELayer, bool) with 1 if ring is always On (visible) .
2. Where (L:map_ZoomFactor, number) appears above , replace it with your (L:F4B_PPIRNG, number) ,
here I presume that you have a switch that varies the (L:F4B_PPIRNG, number) through the 0 to 501 range .

Cheers
Karol
 
XML doesn't allow for dynamic radius unfortunately.
 
If the LayerRangeRings suggestion by Karol doesn't work for your purposes, then you could script numerous Arc elements each with a defined Radius, but controlled by a <Visible> tag which user input can change. It's verbose to do 501 of these, but maybe 10 selections is good enough?

Bob
 
Last edited:
I need better resolution unfortunately. I can draw a spiral section and animated it accordingly through move9and rotation, to emulate an expanding circle.
 
Back
Top