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

VC Gauge Not Display

Messages
14
Country
argentina
Hi guys, I have a problem with a gauge, more specificly with a transition of text. I have a panel light that anounces about few systems on the plane. The problem is when I trying to display the text but in differents colours, green for good an orange for a something its wrong.

Frist I use this code

XML:
<Element>
   
    <Element>
    <Visible>(L:BATTERY_SWITCH, bool) 1 ==</Visible>
    <Image Name="MFD-BG.bmp" ImageSizes="1024,1024" Bright="Yes"/>
       
        <Element>
            <Visible>(L:SWITCH_OXIGENO, bool) 1 ==</Visible>
            <Position X="0" Y="214"/>
                <FormattedText X="342" Y="90" Bright="Yes" Length="270" Font="tahoma" FontSize="62" Multiline="False" Color="#00FF00" Adjust="Center" HorizontalAlign="Center" VerticalAlign="Top">
                    <String>OXYGEN</String>
                </FormattedText>
        </Element>
       
        <Element>
        <Visible>(L:A4AR_BATTERY, enum) 1 ==</Visible>
            <Position X="0" Y="304" />
                <FormattedText X="342" Y="90" Bright="Yes" Length="270" Font="tahoma" FontSize="62" Multiline="False" Color="#00FF00" Adjust="Center" HorizontalAlign="Center" VerticalAlign="Top">
                    <String>OXYGEN</String>
                </FormattedText>
        </Element>
       
        <Element>
        <Visible>(L:A4AR_BATTERY, enum) 0 ==</Visible>
            <Position X="0" Y="304" />
                <FormattedText X="342" Y="90" Bright="Yes" Length="270" Font="tahoma" FontSize="62" Multiline="False" Color="#FF8800" Adjust="Center" HorizontalAlign="Center" VerticalAlign="Top">
                    <String>OXYGEN</String>
                </FormattedText>
        </Element>
       
    </Element>
</Element>

//------- the values for the A4AR_BATTERY are gived by extra gauge which call Lvars and the values setences is

<Element>
        <Select>
            <Value>
            (A:ELECTRICAL BATTERY VOLTAGE, Volt) 24 > if{
            1 (>L:A4AR_BATTERY, enum) }
            els{
            0 (>L:A4AR_BATTERY, enum) }
            </Value>
        </Select>
    </Element>

when begin the startup sequence, the battery switch is in the off position. Turn on the battery and green display ok, but when the battery voltage descend belows of 24, the green text disappear and the orange text not appear, when I remove the element containing the green font colour, the orange appear.
I trying to use AceXML, use the font color script, but the gauge not shows. I use a two diffrentes $textures called red a green, and Use a differents xml files and the problem still there. The fun fact is I use a adittional panel called data and in use a string to verify the states of this variables, put the logic senteces and it works fine, the text switchs between BUENA y BAJA.

XML:
     <Element>
        <Position X="512" Y="50" />
            <FormattedText X="250" Y="60" Bright="Yes" Length="250" Font="tahoma" FontSize="20" Multiline="False" Color="#FFFFFF" Adjust="Left" HorizontalAlign="Center" VerticalAlign="Center">
                <String>CARGA DE BATERIA:%((L:A4AR_BATTERY, enum))%{case}%{:0}BUENA%{:1}BAJA%{end}</String>
            </FormattedText>
    </Element>

Any ideas of what its happening here?
 

Attachments

  • A-4_MFD.rar
    2 KB · Views: 72
Last edited:
Hi,

I cannot exactly test what you are trying to do, but in trying something slightly different I found I had to add another element for each display


Code:
<Element>
  
    <Element>
    <Visible>(L:BATTERY_SWITCH, bool) 1 ==</Visible>
    <Image Name="MFD-BG.bmp" ImageSizes="1024,1024" Bright="Yes"/>
      
        <Element>
            <Visible>(L:SWITCH_OXIGENO, bool) 1 ==</Visible>
          <Element>
            <Position X="0" Y="214"/>
                <FormattedText X="342" Y="90" Bright="Yes" Length="270" Font="tahoma" FontSize="62" Multiline="False" Color="#00FF00" Adjust="Center" HorizontalAlign="Center" VerticalAlign="Top">
                    <String>OXYGEN</String>
                </FormattedText>
          </Element>
        </Element>
      
        <Element>
        <Visible>(L:A4AR_BATTERY, enum) 1 ==</Visible>
          <Element>
            <Position X="0" Y="304" />
                <FormattedText X="342" Y="90" Bright="Yes" Length="270" Font="tahoma" FontSize="62" Multiline="False" Color="#00FF00" Adjust="Center" HorizontalAlign="Center" VerticalAlign="Top">
                    <String>OXYGEN</String>
                </FormattedText>
          </Element>
        </Element>
      
        <Element>
        <Visible>(L:A4AR_BATTERY, enum) 0 ==</Visible>
          <Element>
            <Position X="0" Y="304" />
                <FormattedText X="342" Y="90" Bright="Yes" Length="270" Font="tahoma" FontSize="62" Multiline="False" Color="#FF8800" Adjust="Center" HorizontalAlign="Center" VerticalAlign="Top">
                    <String>OXYGEN</String>
                </FormattedText>
          </Element>
        </Element>
      
    </Element>
</Element>

You could try this and see if there is a difference

Walter
 
Thank you men !! Its look like the elements in the same hierachy level don't support two diffrentes conditions of show or maybe because the green font(lights color) are in the same places put mask and don't lets show any other text
Your writted the codes works fine.
 
Back
Top