[Go back to index]

Asobo\Common\Inputs\Deice_Inputs.xml

Source XML
<ModelBehaviors> <Include ModelBehaviorFile="ASOBO\Inputs\Helpers.xml"/> <InputEvent ID="DEICE"> <Presets> <Switch> <Case NotEmpty="AIRFRAME_ID"> <Preset ID="DEICE_Airframe_#AIRFRAME_ID#"> <Parameters Type="Default"> <Switch Param="INTERACTION_TYPE"> <Case Value="KNOB"> <UPPER_LIMIT>2</UPPER_LIMIT> <INCREMENT>1</INCREMENT> </Case> <Default> <UPPER_LIMIT>1</UPPER_LIMIT> <INCREMENT>1</INCREMENT> </Default> </Switch> <LOWER_LIMIT>0</LOWER_LIMIT> <ON_BEFORE_INC/> <ON_BEFORE_DEC/> <ON_BEFORE_SET/> <ON_AFTER_INC_EXTERNAL_CODE/> <ON_AFTER_DEC_EXTERNAL_CODE/> <ON_AFTER_SET/> <ON_AFTER_INC/> <ON_AFTER_DEC/> <Condition Check="SWITCH_POSITION_VAR"> <True> <INPUTEVENT_VAR_TYPE>#SWITCH_POSITION_TYPE#</INPUTEVENT_VAR_TYPE> <INPUTEVENT_VAR_NAME>#SWITCH_POSITION_VAR#</INPUTEVENT_VAR_NAME> </True> <False> <INPUTEVENT_VAR_TYPE>L</INPUTEVENT_VAR_TYPE> <INPUTEVENT_VAR_NAME>DEICE_Airframe_#AIRFRAME_ID#</INPUTEVENT_VAR_NAME> </False> </Condition> </Parameters> <Parameters Type="Default"> <ON_STATE_CHANGED_EXTERNAL_CODE/> <Switch Param="NUM_STATES"> <Case Value="3"> <TT_POS_0>@TT_Off</TT_POS_0> <TT_POS_1>@TT_Auto</TT_POS_1> <TT_POS_2>@TT_On</TT_POS_2> </Case> </Switch> </Parameters> <Parameters Type="Override"> <INC_EVENT>1 (&gt;B:DEICE_Airframe_#AIRFRAME_ID#_Set)</INC_EVENT> <DEC_EVENT>0 (&gt;B:DEICE_Airframe_#AIRFRAME_ID#_Set)</DEC_EVENT> <Switch Param="NUM_DEICE"> <Case Value="2"> <SET_EVENT> p0 (&gt;L:DEICE_Airframe_#AIRFRAME_ID#) (L:DEICE_Airframe_1) ! (L:DEICE_Airframe_2) ! and (A:STRUCTURAL DEICE SWITCH, Bool) == if{ (&gt;K:TOGGLE_STRUCTURAL_DEICE) } </SET_EVENT> <TOOLTIP_VALUE>(L:DEICE_Airframe_#AIRFRAME_ID#) @TT_OnOff_Cond</TOOLTIP_VALUE> </Case> <Default> <SET_EVENT>p0 s0 (A:STRUCTURAL DEICE SWITCH, Bool) != if{ (&gt;K:TOGGLE_STRUCTURAL_DEICE) } l0 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</SET_EVENT> <TOOLTIP_VALUE>(A:STRUCTURAL DEICE SWITCH, Bool) @TT_OnOff_Cond</TOOLTIP_VALUE> </Default> </Switch> <INIT_VALUE>(A:STRUCTURAL DEICE SWITCH, Bool) (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</INIT_VALUE> <ON_STATE_CHANGED/> </Parameters> <Parameters Type="Override"> <ON_STATE_CHANGED>#ON_STATE_CHANGED# #ON_STATE_CHANGED_EXTERNAL_CODE#</ON_STATE_CHANGED> <ON_AFTER_INC>#ON_AFTER_INC# #ON_AFTER_INC_EXTERNAL_CODE#</ON_AFTER_INC> <ON_AFTER_DEC>#ON_AFTER_DEC# #ON_AFTER_DEC_EXTERNAL_CODE#</ON_AFTER_DEC> </Parameters> <Parameters Type="Override"> <Switch Param="INTERACTION_TYPE"> <Case Value="SWITCH"> <Switch Param="NUM_STATES"> <Case Value="3"> <TOOLTIP_VALUE> (#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) s0 0 == if{ #TT_POS_0# quit } l0 1 == if{ #TT_POS_1# quit } l0 2 == if{ #TT_POS_2# quit } </TOOLTIP_VALUE> <INC_EVENT>(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) p0 + (&gt;B:DEICE_Airframe_#AIRFRAME_ID#_Set)</INC_EVENT> <DEC_EVENT>(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) p0 - (&gt;B:DEICE_Airframe_#AIRFRAME_ID#_Set)</DEC_EVENT> <INIT_VALUE> #STATE0_TEST# if{ 0 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) quit } #STATE1_TEST# if{ 1 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) quit } #STATE2_TEST# if{ 2 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) quit } </INIT_VALUE> <SET_EVENT> p0 #LOWER_LIMIT# max #UPPER_LIMIT# min s0 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) l0 0 == if{ #CODE_POS_0# quit } l0 1 == if{ #CODE_POS_1# quit } l0 2 == if{ #CODE_POS_2# quit } </SET_EVENT> </Case> </Switch> </Case> </Switch> </Parameters> <Parameters Type="Default"> <Condition> <Test> <Greater> <Value>NUM_STATES</Value> <Number>2</Number> </Greater> </Test> <True> <Condition Check="SWITCH_DIRECTION" Match="Horizontal"> <True> <INTERACTION_FLAGS>PRIMARY_DOWN+X_AXIS</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>X_AXIS</INTERACTION_LOCKABLE_FLAGS> </True> <False> <INTERACTION_FLAGS>PRIMARY_DOWN+Y_AXIS</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>Y_AXIS</INTERACTION_LOCKABLE_FLAGS> </False> </Condition> </True> <False> <INTERACTION_FLAGS>PRIMARY_DOWN</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>lOCK</INTERACTION_LOCKABLE_FLAGS> </False> </Condition> <Switch Param="INTERACTION_TYPE"> <Case Value="SWITCH"> <TT_ICON>MOVE_Y</TT_ICON> </Case> <Case Value="PUSH"> <TT_ICON>PUSH</TT_ICON> </Case> </Switch> <Condition NotEmpty="TT_DESCRIPTION_ID"> <True> <Condition NotEmpty="TT_DESCRIPTION_INDEX"> <True> <TT_DESCRIPTION>#TT_DESCRIPTION_INDEX# (R:1:#TT_DESCRIPTION_ID#) @sprintf</TT_DESCRIPTION> <TT_DESCRIPTION_IS_DYNAMIC>True</TT_DESCRIPTION_IS_DYNAMIC> </True> <False> <TT_DESCRIPTION>#TT_DESCRIPTION_ID#</TT_DESCRIPTION> <TT_DESCRIPTION_IS_DYNAMIC>False</TT_DESCRIPTION_IS_DYNAMIC> </False> </Condition> </True> <False> <TT_DESCRIPTION>@TT_Package.DEICE_SWITCH_AIRFRAME_ACTION_SET</TT_DESCRIPTION><!-- ça faudra le créer a un moment dans KLM, c'est le default --> <TT_DESCRIPTION_IS_DYNAMIC>False</TT_DESCRIPTION_IS_DYNAMIC> </False> </Condition> </Parameters> <Tooltip> <Icon>#TT_ICON#</Icon> <Interaction>#INTERACTION_FLAGS#</Interaction> <InteractionLockable>#INTERACTION_LOCKABLE_FLAGS#</InteractionLockable> <TTDescription RPN="#TT_DESCRIPTION_IS_DYNAMIC#">#TT_DESCRIPTION#</TTDescription> <TTValue RPN="True">#TOOLTIP_VALUE#</TTValue> </Tooltip> <Value> <Units>bool</Units> <Code>(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</Code> <Init>#INIT_VALUE#</Init> </Value> <Inc> <Code>#ON_BEFORE_INC# #INC_EVENT# #ON_AFTER_INC#</Code> <Parameters> <Param Type="Float" RPN="True">p0 #INCREMENT# *</Param> </Parameters> </Inc> <Dec> <Code>#ON_BEFORE_DEC# #DEC_EVENT# #ON_AFTER_DEC#</Code> <Parameters> <Param Type="Float" RPN="True">p0 #INCREMENT# *</Param> </Parameters> </Dec> <Set> <Code>#ON_BEFORE_SET# #SET_EVENT# #ON_AFTER_SET# #ON_STATE_CHANGED#</Code> <Parameters> <Param Type="Float" RPN="True">p0</Param> </Parameters> <Bindings> <Binding Alias="DEICE_Airframe_Toggle"> <Param RPN="True">(A:STRUCTURAL DEICE SWITCH, Bool) !</Param> </Binding> <Binding Alias="DEICE_Airframe_#AIRFRAME_ID#_Toggle"> <Param RPN="True">(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) !</Param> </Binding> <Binding EventID="TOGGLE_STRUCTURAL_DEICE"> <Param RPN="True">(A:STRUCTURAL DEICE SWITCH, Bool) !</Param> </Binding> </Bindings> </Set> </Preset> </Case> <Case NotEmpty="PROPELLER_ID"> <Preset ID="DEICE_Propeller_#PROPELLER_ID#"> <Parameters Type="Default"> <UPPER_LIMIT>1</UPPER_LIMIT> <INCREMENT>1</INCREMENT> <LOWER_LIMIT>0</LOWER_LIMIT> <ON_BEFORE_INC/> <ON_BEFORE_DEC/> <ON_BEFORE_SET/> <ON_AFTER_INC_EXTERNAL_CODE/> <ON_AFTER_DEC_EXTERNAL_CODE/> <ON_AFTER_SET/> <ON_AFTER_INC/> <ON_AFTER_DEC/> <Condition Check="SWITCH_POSITION_VAR"> <True> <INPUTEVENT_VAR_TYPE>#SWITCH_POSITION_TYPE#</INPUTEVENT_VAR_TYPE> <INPUTEVENT_VAR_NAME>#SWITCH_POSITION_VAR#</INPUTEVENT_VAR_NAME> </True> <False> <INPUTEVENT_VAR_TYPE>L</INPUTEVENT_VAR_TYPE> <INPUTEVENT_VAR_NAME>DEICE_Propeller_#PROPELLER_ID#</INPUTEVENT_VAR_NAME> </False> </Condition> </Parameters> <Parameters Type="Default"> <ON_STATE_CHANGED_EXTERNAL_CODE/> </Parameters> <Parameters Type="Override"> <TOOLTIP_VALUE>(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) @TT_OnOff_Cond</TOOLTIP_VALUE> <INC_EVENT>1 (&gt;B:DEICE_Propeller_#PROPELLER_ID#_Set)</INC_EVENT> <DEC_EVENT>0 (&gt;B:DEICE_Propeller_#PROPELLER_ID#_Set)</DEC_EVENT> <SET_EVENT>p0 s0 (A:PROP DEICE SWITCH:#PROPELLER_ID#, Bool) != if{ (&gt;K:TOGGLE_PROPELLER_DEICE) } l0 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</SET_EVENT> <INIT_VALUE>(A:PROP DEICE SWITCH:#PROPELLER_ID#, Bool) (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</INIT_VALUE> <TOOLTIP_VALUE>(A:PROP DEICE SWITCH:#PROPELLER_ID#, Bool) @TT_OnOff_Cond</TOOLTIP_VALUE> <ON_STATE_CHANGED/> </Parameters> <Parameters Type="Override"> <ON_STATE_CHANGED>#ON_STATE_CHANGED# #ON_STATE_CHANGED_EXTERNAL_CODE#</ON_STATE_CHANGED> <ON_AFTER_INC>#ON_AFTER_INC# #ON_AFTER_INC_EXTERNAL_CODE#</ON_AFTER_INC> <ON_AFTER_DEC>#ON_AFTER_DEC# #ON_AFTER_DEC_EXTERNAL_CODE#</ON_AFTER_DEC> </Parameters> <Parameters Type="Default"> <Condition> <Test> <Greater> <Value>NUM_STATES</Value> <Number>1</Number> </Greater> </Test> <True> <Condition Check="SWITCH_DIRECTION" Match="Horizontal"> <True> <INTERACTION_FLAGS>PRIMARY_DOWN+X_AXIS</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>X_AXIS</INTERACTION_LOCKABLE_FLAGS> </True> <False> <INTERACTION_FLAGS>PRIMARY_DOWN+Y_AXIS</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>Y_AXIS</INTERACTION_LOCKABLE_FLAGS> </False> </Condition> </True> <False> <INTERACTION_FLAGS>PRIMARY_DOWN</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>LOCK</INTERACTION_LOCKABLE_FLAGS> </False> </Condition> <Switch Param="INTERACTION_TYPE"> <Case Value="SWITCH"> <TT_ICON>MOVE_Y</TT_ICON> </Case> <Case Value="PUSH"> <TT_ICON>PUSH</TT_ICON> </Case> </Switch> </Parameters> <Tooltip> <Icon>#TT_ICON#</Icon> <Interaction>#INTERACTION_FLAGS#</Interaction> <InteractionLockable>#INTERACTION_LOCKABLE_FLAGS#</InteractionLockable> <TTDescription RPN="True">(R:1:@TT_Package.DEICE_SWITCH_PROPELLER_ACTION_SET)</TTDescription> <TTValue RPN="True">#TOOLTIP_VALUE#</TTValue> </Tooltip> <Value> <Units>bool</Units> <Code>(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</Code> <Init>#INIT_VALUE#</Init> </Value> <Inc> <Code>#ON_BEFORE_INC# #INC_EVENT# #ON_AFTER_INC#</Code> <Parameters> <Param Type="Float" RPN="True">p0 #INCREMENT# *</Param> </Parameters> </Inc> <Dec> <Code>#ON_BEFORE_DEC# #DEC_EVENT# #ON_AFTER_DEC#</Code> <Parameters> <Param Type="Float" RPN="True">p0 #INCREMENT# *</Param> </Parameters> </Dec> <Set> <Code>#ON_BEFORE_SET# #SET_EVENT# #ON_AFTER_SET# #ON_STATE_CHANGED#</Code> <Parameters> <Param Type="Float" RPN="True">p0</Param> </Parameters> <Bindings> <Binding Alias="DEICE_Propeller_Toggle"> <Param RPN="True">(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) !</Param> </Binding> <Binding Alias="DEICE_Propeller_#PROPELLER_ID#_Toggle"> <Param RPN="True">(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) !</Param> </Binding> <Binding EventID="TOGGLE_PROPELLER_DEICE"> <Param RPN="True">(A:PROP DEICE SWITCH:1, Bool) !</Param> </Binding> <Binding EventID="ANTI_ICE_TOGGLE"> <Param RPN="True">(A:PROP DEICE SWITCH:1, Bool) !</Param> </Binding> <Binding EventID="ANTI_ICE_ON"> <Param>1</Param> </Binding> <Binding EventID="ANTI_ICE_OFF"> <Param>0</Param> </Binding> </Bindings> </Set> </Preset> </Case> <Case NotEmpty="PITOT_ID"> <Preset ID="DEICE_Pitot_#PITOT_ID#"> <Parameters Type="Default"> <UPPER_LIMIT>1</UPPER_LIMIT> <INCREMENT>1</INCREMENT> <LOWER_LIMIT>0</LOWER_LIMIT> <ON_BEFORE_INC/> <ON_BEFORE_DEC/> <ON_BEFORE_SET/> <ON_AFTER_INC_EXTERNAL_CODE/> <ON_AFTER_DEC_EXTERNAL_CODE/> <ON_AFTER_SET/> <ON_AFTER_INC/> <ON_AFTER_DEC/> <Condition Check="SWITCH_POSITION_VAR"> <True> <INPUTEVENT_VAR_TYPE>#SWITCH_POSITION_TYPE#</INPUTEVENT_VAR_TYPE> <INPUTEVENT_VAR_NAME>#SWITCH_POSITION_VAR#</INPUTEVENT_VAR_NAME> </True> <False> <INPUTEVENT_VAR_TYPE>L</INPUTEVENT_VAR_TYPE> <INPUTEVENT_VAR_NAME>DEICE_Pitot_#PITOT_ID#</INPUTEVENT_VAR_NAME> </False> </Condition> </Parameters> <Parameters Type="Default"> <ON_STATE_CHANGED_EXTERNAL_CODE/> </Parameters> <Parameters Type="Override"> <TOOLTIP_VALUE>(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) @TT_OnOff_Cond</TOOLTIP_VALUE> <INC_EVENT>1 (&gt;B:DEICE_Pitot_#PITOT_ID#_Set)</INC_EVENT> <DEC_EVENT>0 (&gt;B:DEICE_Pitot_#PITOT_ID#_Set)</DEC_EVENT> <SET_EVENT>#PITOT_ID# p0 #LOWER_LIMIT# max #UPPER_LIMIT# min s0 (&gt;K:2:PITOT_HEAT_SET) l0 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</SET_EVENT> <INIT_VALUE>(A:PITOT HEAT SWITCH:#PITOT_ID#, Bool) (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</INIT_VALUE> <ON_STATE_CHANGED/> </Parameters> <Parameters Type="Override"> <Switch Param="TYPE"> <Case Value="AS04F"> <SET_EVENT>p0 #LOWER_LIMIT# max #UPPER_LIMIT# min s0 (&gt;O:XMLVAR_PitotHeat_#ID#_State) l0 (&gt;#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</SET_EVENT> <ON_STATE_CHANGED>#AS04F_UPDATE_CODE#</ON_STATE_CHANGED> </Case> </Switch> </Parameters> <Parameters Type="Override"> <ON_STATE_CHANGED>#ON_STATE_CHANGED# #ON_STATE_CHANGED_EXTERNAL_CODE#</ON_STATE_CHANGED> <ON_AFTER_INC>#ON_AFTER_INC# #ON_AFTER_INC_EXTERNAL_CODE#</ON_AFTER_INC> <ON_AFTER_DEC>#ON_AFTER_DEC# #ON_AFTER_DEC_EXTERNAL_CODE#</ON_AFTER_DEC> </Parameters> <Parameters Type="Default"> <Condition> <Test> <Greater> <Value>NUM_STATES</Value> <Number>1</Number> </Greater> </Test> <True> <Condition Check="SWITCH_DIRECTION" Match="Horizontal"> <True> <INTERACTION_FLAGS>PRIMARY_DOWN+X_AXIS</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>X_AXIS</INTERACTION_LOCKABLE_FLAGS> </True> <False> <INTERACTION_FLAGS>PRIMARY_DOWN+Y_AXIS</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>Y_AXIS</INTERACTION_LOCKABLE_FLAGS> </False> </Condition> </True> <False> <INTERACTION_FLAGS>PRIMARY_DOWN</INTERACTION_FLAGS> <INTERACTION_LOCKABLE_FLAGS>LOCK</INTERACTION_LOCKABLE_FLAGS> </False> </Condition> <Switch Param="INTERACTION_TYPE"> <Case Value="SWITCH"> <TT_ICON>MOVE_Y</TT_ICON> </Case> <Case Value="PUSH"> <TT_ICON>PUSH</TT_ICON> </Case> </Switch> </Parameters> <Tooltip> <Icon>#TT_ICON#</Icon> <Interaction>#INTERACTION_FLAGS#</Interaction> <InteractionLockable>#INTERACTION_LOCKABLE_FLAGS#</InteractionLockable> <TTDescription RPN="True">(R:1:@TT_Package.DEICE_SWITCH_PITOTHEAT_ACTION_SET)</TTDescription> <TTValue RPN="True">#TOOLTIP_VALUE#</TTValue> </Tooltip> <Value> <Units>bool</Units> <Code>(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#)</Code> <Init>#INIT_VALUE#</Init> <WatchVars> <Condition Check="TYPE" Match="AS04F"> <False> <Simvar ID="PITOT HEAT SWITCH:#PITOT_ID#"/> </False> </Condition> </WatchVars> </Value> <Inc> <Code>#ON_BEFORE_INC# #INC_EVENT# #ON_AFTER_INC#</Code> <Parameters> <Param Type="Float" RPN="True">p0 #INCREMENT# *</Param> </Parameters> </Inc> <Dec> <Code>#ON_BEFORE_DEC# #DEC_EVENT# #ON_AFTER_DEC#</Code> <Parameters> <Param Type="Float" RPN="True">p0 #INCREMENT# *</Param> </Parameters> </Dec> <Set> <Code>#ON_BEFORE_SET# #SET_EVENT# #ON_AFTER_SET# #ON_STATE_CHANGED#</Code> <Parameters> <Param Type="Float" RPN="True">p0</Param> </Parameters> <Bindings> <Binding Alias="DEICE_Pitot_Toggle"> <Param RPN="True">(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) !</Param> </Binding> <Binding Alias="DEICE_Pitot_#PITOT_ID#_Toggle"> <Param RPN="True">(#INPUTEVENT_VAR_TYPE#:#INPUTEVENT_VAR_NAME#) !</Param> </Binding> <Binding EventID="PITOT_HEAT_SET"> <Param RPN="True">p0</Param> </Binding> <Binding EventID="PITOT_HEAT_TOGGLE"> <Param RPN="True">(A:PITOT HEAT SWITCH:#PITOT_ID#, Bool) !</Param> </Binding> <Binding EventID="PITOT_HEAT_ON"> <Param>1</Param> </Binding> <Binding EventID="PITOT_HEAT_OFF"> <Param>0</Param> </Binding> </Bindings> </Set> </Preset> </Case> <Default> <Extend Target="ASOBO_GIE_Anim_Handling"> <Parameters Type="Default"> <INPUT_EVENT_ID_SOURCE>DEICE</INPUT_EVENT_ID_SOURCE> </Parameters> </Extend> </Default> </Switch> </Presets> </InputEvent> </ModelBehaviors>

Includes