- Messages
- 51
- Country

Hello everyone. I'm working on an XML gauge and I have several problems.
1) I have a text element and in spite of the Luminous="Yes" or Bright="Yes", the text is still dimmed.
2) My gauge is meant to display an imprecise heading value that will be corrected after a procedure. For this I would like to add a random component (in a range) to the correct heading value and delete this component after the procedure.
Is there a way to create a random value in a range in XML ?
3) My gauge will display a mix of letters and numbers. Sometimes it will be an altitude or a heading but sometimes it will display a word and a value in the same element. I therefore need to convert the variables I want to display into string.
I found Macros in this topic : http://www.fsdeveloper.com/forum/showthread.php?t=94088
but I don't succeed in using it :
It doesn't work so I'm not using it properly. Can you see the errors ?
Thank you for the help
1) I have a text element and in spite of the Luminous="Yes" or Bright="Yes", the text is still dimmed.
Code:
<Element>
<Position X="15" Y="22"/>
<Text X="60" Y="55" Length="7" Font="Quartz" FontSize="60" Color="Green" Bright="Yes">
<String>88</String>
</Text>
<Visible>(L:NumPrepVis, bool) 1 == </Visible>
</Element>
2) My gauge is meant to display an imprecise heading value that will be corrected after a procedure. For this I would like to add a random component (in a range) to the correct heading value and delete this component after the procedure.
Is there a way to create a random value in a range in XML ?
3) My gauge will display a mix of letters and numbers. Sometimes it will be an altitude or a heading but sometimes it will display a word and a value in the same element. I therefore need to convert the variables I want to display into string.
I found Macros in this topic : http://www.fsdeveloper.com/forum/showthread.php?t=94088
but I don't succeed in using it :
Code:
"tPF" (@ToString(A:PLANE ALTITUDE, Meters)) scat (>L:NumFenG)
...
<Element>
<Position X="35" Y="2"/>
<Text X="180" Y="55" Length="7" Font="Quartz" FontSize="60" Color="Green" Bright="Yes">
[B]<String>%(L:NumFenG)%!s!</String>[/B]
</Text>
<Visible>(L:NumFenGVis, bool) 1 == </Visible>
</Element>
It doesn't work so I'm not using it properly. Can you see the errors ?
Thank you for the help
Last edited:


