- Messages
- 10,163
- Country

Hey all,
On my PFD screen, I have 3 'tint' Rectangles that appear. I have a 3D object switch in Gmax which I wish to run/operate the tinting control.
*Click one, tint is one is on,
*Click two, tint one is off, tint two is on
*Click three, tint two is off, tint three is on
*Click four, tint three is off
*Click five, reset to enum 0
This is what I have. It works fine until click 2, then stops.
What have I done wrong?
Enum 0 starts out nuetral, no selections are active, no tint rectangles appear
Enum 1 starts the loop of tinting
Enum 3 should be the last operation
I did place resetters at each 'if' so that nothing would be left on. Is this correct procedure, or does the 'L:Var' turn off when the enum is no longer active? My thoughts are that they have to be turned 'off' as well as on with each Enum operation.
Bill
On my PFD screen, I have 3 'tint' Rectangles that appear. I have a 3D object switch in Gmax which I wish to run/operate the tinting control.
*Click one, tint is one is on,
*Click two, tint one is off, tint two is on
*Click three, tint two is off, tint three is on
*Click four, tint three is off
*Click five, reset to enum 0
This is what I have. It works fine until click 2, then stops.
What have I done wrong?
Code:
[B][COLOR="Blue"]<part>
<name>ave_lcd_tint</name>
<animation>
<parameter>
<code>(L:AVElcdTINTbutton, bool) 100 *</code>
<lag>70</lag>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>LCD SCREEN TINT</tooltip_text>
<mouse_flags>LeftSingle</mouse_flags>
<callback_code>
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:AVElcdTINTbutton, enum) ++ 4 min (>L:AVElcdTINTbutton, enum) }
(L:AVElcdTINTbutton,enum) 4 == if{ 0 (>L:AVEhudSCROLL,enum) } (* reset to zero *)
(L:AVElcdTINTbutton,enum) 0 == if{ 0 (>L:AVElcdDISPLYtintONE,bool)
0 (>L:AVElcdDISPLYtintTWO,bool)
0 (>L:AVElcdDISPLYtintTHREE,bool)
}
(L:AVElcdTINTbutton,enum) 1 == if{ 1 (>L:AVElcdDISPLYtintONE,bool)
0 (>L:AVElcdDISPLYtintTWO,bool)
0 (>L:AVElcdDISPLYtintTHREE,bool)
}
(L:AVElcdTINTbutton,enum) 2 == if{ 0 (>L:AVElcdDISPLYtintONE,bool)
1 (>L:AVElcdDISPLYtintTWO,bool)
0 (>L:AVElcdDISPLYtintTHREE,bool)
}
(L:AVElcdTINTbutton,enum) 3 == if{ 0 (>L:AVElcdDISPLYtintONE,bool)
0 (>L:AVElcdDISPLYtintTWO,bool)
1 (>L:AVElcdDISPLYtintTHREE,bool)
}
</callback_code>
</mouserect>
</part>
[/COLOR][/B]
Enum 0 starts out nuetral, no selections are active, no tint rectangles appear
Enum 1 starts the loop of tinting
Enum 3 should be the last operation
I did place resetters at each 'if' so that nothing would be left on. Is this correct procedure, or does the 'L:Var' turn off when the enum is no longer active? My thoughts are that they have to be turned 'off' as well as on with each Enum operation.
Bill
Last edited:
