Need help programming gauge

Mick

SOH-CM-2024
David's unable to log in here for some reason, so he asked me to post a question about how to program a gauge he's working on for the upcoming Temco Pinto. I'll copy any replies and e-mail them to him.

Here's David's question:

"I need to know the code for creating a FS9 XML switch that will stay on as long as I am pressing the mouse button and the second I release the mouse button it turns off. I have found one that works like I need in FSX for the c208B panel called "lamp_test_switch," but due to the different coding used it FSX it doesn't work in FS9, and I don't know how to convert it, or even if it can be converted."
 
try :-
Code:
  <Mouse>
        <Tooltip>Test.</Tooltip>
        <Cursor Type="Hand" />
        <Click Kind="LeftSingle+LeftRelease">
            (M:Event) 'LeftSingle' scmp 0 == if{ 1 (>L:yourvariable,bool) }
            (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:yourvariable,bool) }
        </Click>
    </Mouse>
Ted
 
Back
Top