bpahe
Resource contributor
- Messages
- 335
- Country

Hi!
I´ve created a dummy switch (yes, there are 5 of them in the actual panel, marked "unused") but the tooltip displays a text completly out of line...
I used "Herberts" code from the Avsim forum;
...in which I changed the name parameter to the above instead of VC_TEST_SWITCH, and also the actual tooltip_id to the above.
The switch works fine, but the tooltip displays "Engine 2 Oil Pressure (0 kg/sq cm)". Which is quite odd for a single engine aircraft. Is there anything missing in the code above?
/hans
I´ve created a dummy switch (yes, there are 5 of them in the actual panel, marked "unused") but the tooltip displays a text completly out of line...
I used "Herberts" code from the Avsim forum;
Code:
<part>
<name>VC_unused_switch</name>
<animation>
<parameter>
<code>(L:VC TEST SWITCH,bool) 100 *</code>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_id>UNUSED SWITCH</tooltip_id>
<callback_code>(L:VC TEST SWITCH,bool) ! (>L:VC TEST SWITCH,bool)</callback_code>
</mouserect>
</part>
...in which I changed the name parameter to the above instead of VC_TEST_SWITCH, and also the actual tooltip_id to the above.
The switch works fine, but the tooltip displays "Engine 2 Oil Pressure (0 kg/sq cm)". Which is quite odd for a single engine aircraft. Is there anything missing in the code above?
/hans


