- Messages
- 10,158
- Country

Hey all,
How is the button name derived from this Template? This is for Altitude button on a regular small plane. This is the MSFS SDK Template for the button;
Would it be ASOBO_AUTOPILOT_Push_Altitude_AS01B_1 ? does it need a 1?
How is the button name derived from this Template? This is for Altitude button on a regular small plane. This is the MSFS SDK Template for the button;
Code:
<Template Name="ASOBO_AUTOPILOT_Push_Altitude_Template">
<DefaultTemplateParameters>
<DEFAULT_NAME>Altitude</DEFAULT_NAME>
<HELPID>HELPID_AUTOPILOT_ALTITUDE_HOLD</HELPID>
<TOOLTIPID>%((A:AUTOPILOT ALTITUDE LOCK, bool))%{if}TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_ALT_ON%{else}TT:COCKPIT.TOOLTIPS.AUTOPILOT_PANEL_ALT_OFF%{end}</TOOLTIPID>
<ON_ALTITUDE_MODE_SWITCH></ON_ALTITUDE_MODE_SWITCH>
</DefaultTemplateParameters>
<UseTemplate Name="ASOBO_AUTOPILOT_Push_Template">
<Switch Param="TYPE">
<Case Value="B747">
<LEFT_SINGLE_CODE>(>H:B747_8_FMC_1_AP_ALT_HOLD)</LEFT_SINGLE_CODE>
<EMISSIVE_CODE_ACTIVE>(L:AP_ALT_HOLD_ACTIVE)</EMISSIVE_CODE_ACTIVE>
</Case>
<Case Value="AS01B">
<LEFT_SINGLE_CODE>(>H:AS01B_FMC_1_AP_ALT_HOLD)</LEFT_SINGLE_CODE>
<EMISSIVE_CODE_ACTIVE>(L:AP_ALT_HOLD_ACTIVE)</EMISSIVE_CODE_ACTIVE>
</Case>
<Default>
<LEFT_SINGLE_CODE>(>K:AP_ALT_HOLD) #ON_ALTITUDE_MODE_SWITCH#</LEFT_SINGLE_CODE>
<EMISSIVE_SIMVAR_ACTIVE>AUTOPILOT ALTITUDE LOCK</EMISSIVE_SIMVAR_ACTIVE>
</Default>
</Switch>
</UseTemplate>
</Template>
Would it be ASOBO_AUTOPILOT_Push_Altitude_AS01B_1 ? does it need a 1?
