All,
I'm at a point in my project where I'm starting to put together control logic functions, switches etc in my HUD/panel. In my FSX adventures I have run into several instances where there were undocumented exceptions or differences with this or that feature/syntax etc, so i thought I would try to save myself some of those beat your head against the wall moments by asking a few seemingly simple/obvious questions upfront. I went through the usual FS9/FSX docs and just had a few clarification questions about using <visible> tag in controlling code execution. I got the part about <Visible>
needing to be contained in it's own <Element> tag.
1. If "<visible>" is false, does that prevent ANY and ALL code execution within the containing "<Element>", meaning does it, in affect, skip code until the "</Element>" closing tag, including all children ?
2. To be clear, If above is true then I assume that would also include the declaration/creation of any L:var etc,ie they would not be created if nested in code that was not "visible" ?
3. Is there a CPU savings by "tuning off" sections of code with "<visible>"?
4. Can <visible> be used to control code execution in an invisible gauge that is not ever visible in the panel ? Like say, for example, sound control gauge?
5. Can If/then statements be used with "<visible", ie other than setting the "Visible" condition itself can "if" and "else" be used to also set other Flags? if so would that syntax be something like
meaning.... if varFlag1 TRUE or if L:varState is less than 5, then "visible" and set L;varFlag2 to 1. If not... not "visible" and set L:varState to 0 ??
Thanks
Joel
I'm at a point in my project where I'm starting to put together control logic functions, switches etc in my HUD/panel. In my FSX adventures I have run into several instances where there were undocumented exceptions or differences with this or that feature/syntax etc, so i thought I would try to save myself some of those beat your head against the wall moments by asking a few seemingly simple/obvious questions upfront. I went through the usual FS9/FSX docs and just had a few clarification questions about using <visible> tag in controlling code execution. I got the part about <Visible>
needing to be contained in it's own <Element> tag.
1. If "<visible>" is false, does that prevent ANY and ALL code execution within the containing "<Element>", meaning does it, in affect, skip code until the "</Element>" closing tag, including all children ?
2. To be clear, If above is true then I assume that would also include the declaration/creation of any L:var etc,ie they would not be created if nested in code that was not "visible" ?
3. Is there a CPU savings by "tuning off" sections of code with "<visible>"?
4. Can <visible> be used to control code execution in an invisible gauge that is not ever visible in the panel ? Like say, for example, sound control gauge?
5. Can If/then statements be used with "<visible", ie other than setting the "Visible" condition itself can "if" and "else" be used to also set other Flags? if so would that syntax be something like
Code:
<Visible>
(L:varFlag1, bool) (L:varState, number) 5 < ||
if { (> L:varFlag2, enum) 1 }
els{ (>L:varsState, number) 0}
</Visible>
Thanks
Joel
Last edited:






