• 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 Problem with MaskImage

Messages
11
Hi!

I'm creating a HUD gauge for an A7. But I have hit a problem. The HUD uses tape displays for the airspeed and altitude information.

I've already placed a MaskImage/Image combo with a shift to display the aircraft heading but now that I'm trying the same for the tape ruler I can't make it work. I can't even see the maskimage that I used.

The following is the code. Can anybody tell me if I'm doing something wrong?

Code:
            <Element id="AIRSPEED DISPLAY">
                <FloatPosition>0.000,140.000</FloatPosition>
                <Visibility>(L:HUDScalesOff,boolean) 0 ==</Visibility>
                <Element id="LEFT RULER">
                    <FloatPosition>20.000,0.000</FloatPosition>
                    <Image id="HUD Left Ruler.bmp" Name="HUD Left Ruler.bmp">
                        <Transparent>True</Transparent>
                        <Bright>True</Bright>
                    </Image>
                </Element>
                <Element id="AIRSPEED INDICATOR">
                    <FloatPosition>0.000,750.000</FloatPosition>
                    <GaugeText id="GaugeText">
                        <Bright>True</Bright>
                        <FontColor>0x00FF00</FontColor>
                        <FontHeight>30</FontHeight>
                        <GaugeString>%( (A:AIRSPEED INDICATED, Knots) 100 / )%!3.0f!</GaugeString>
                        <HorizontalAlign>RIGHT</HorizontalAlign>
                        <Size>80,30</Size>
                        <Transparent>True</Transparent>
                    </GaugeText>
                </Element>
                <Element id="LEFT TAPE">
                    <FloatPosition>79.000,9.000</FloatPosition>
                    <MaskImage id="HUD Ruler Bar Area Left.bmp" Name="HUD Ruler Bar Area Left.bmp">
                    </MaskImage>
                    <Image id="HUD Ruler Bar Left.bmp" Name="HUD Ruler Bar Left.bmp">
                        <Bright>True</Bright>
                    </Image>
                    <Shift id="Shift">
                        <Expression id="Expression">
                            <Minimum>0.000</Minimum>
                            <Maximum>100.000</Maximum>
                            <Script>(A:AIRSPEED INDICATED, Knots) 100 %</Script>
                        </Expression>
                        <NonlinearityTable id="NonlinearityTable">
                            <NonlinearityEntry id="0">
                                <ExpressionResult>0.000</ExpressionResult>
                                <FloatPosition>0.000,731.000</FloatPosition>
                            </NonlinearityEntry>
                            <NonlinearityEntry id="50">
                                <ExpressionResult>50.000</ExpressionResult>
                                <FloatPosition>0.000,350.000</FloatPosition>
                            </NonlinearityEntry>
                            <NonlinearityEntry id="100">
                                <ExpressionResult>100.000</ExpressionResult>
                                <FloatPosition>0.000,0.000</FloatPosition>
                            </NonlinearityEntry>
                        </NonlinearityTable>
                    </Shift>
                </Element>
                <Element id="AIRSPEED MOD">
                    <FloatPosition>40.000,-30.000</FloatPosition>
                    <GaugeText id="GaugeText">
                        <Bright>True</Bright>
                        <FontColor>0x00FF00</FontColor>
                        <FontHeight>30</FontHeight>
                        <GaugeString>%( (A:AIRSPEED INDICATED, Knots) 100 % )%!2d!</GaugeString>
                        <Size>80,30</Size>
                        <Transparent>True</Transparent>
                    </GaugeText>
                </Element>
            </Element>

The element LEFT TAPE is the one that should display the airspeed tape.

I will appreciate any help on this one. Thanks.
 
Back
Top