- Messages
- 10,158
- Country

Hey all,
So, I am trying to figure out how to make a switch which when you hold down the left mouse button, it is on, and when you release, it returns to bitmap 'off'. So, press and hold on, release, back to off.
How do you write this in FS2004 2D gauge code in the click section?
This is one of the ways I tried. I experimented with a few of the mouse click types. Nothing worked except on / off. This I thought was genious, but does the same thing; on/off by click / click. Not one click for both functions.
I also tried a few versions of this;
So, I am trying to figure out how to make a switch which when you hold down the left mouse button, it is on, and when you release, it returns to bitmap 'off'. So, press and hold on, release, back to off.
How do you write this in FS2004 2D gauge code in the click section?
This is one of the ways I tried. I experimented with a few of the mouse click types. Nothing worked except on / off. This I thought was genious, but does the same thing; on/off by click / click. Not one click for both functions.
Code:
<Tooltip>Generator Reset Switch LH</Tooltip>
<Area Left="0" Right="51" Top="0" Bottom="186">
<Visible>(L:LF24B LEFT GEN RESET SWITCH,bool) 0 == </Visible>
<Click LeftSingle="Yes">
1 (>L:LF24B LEFT GEN RESET SWITCH,bool)
1 (>L:XMLSND1,enum)
</Click>
</Area>
<Tooltip>Generator Reset Switch LH</Tooltip>
<Area Left="0" Right="51" Top="0" Bottom="186">
<Visible>(L:LF24B LEFT GEN RESET SWITCH,bool) 1 == </Visible>
<Click Leave="Yes">
0 (>L:LF24B LEFT GEN RESET SWITCH,bool)
1 (>L:XMLSND1,enum)
</Click>
</Area>
I also tried a few versions of this;
Code:
<Tooltip>Generator Reset Switch RH</Tooltip>
<Area Left="0" Right="51" Top="0" Bottom="186">
<Click Release="Yes">
(L:LF24B RIGHT GEN RESET SWITCH,bool) ! (>L:LF24B RIGHT GEN RESET SWITCH,bool)
1 (>L:XMLSND1,enum)
</Click>
</Area>
Code:
<Tooltip>Generator Reset Switch RH</Tooltip>
<Area Left="0" Right="51" Top="0" Bottom="186">
<Click LeftRelease="Yes">
(L:LF24B RIGHT GEN RESET SWITCH,bool) ! (>L:LF24B RIGHT GEN RESET SWITCH,bool)
1 (>L:XMLSND1,enum)
</Click>
</Area>
