Skip to content

Commit

Permalink
FIXED: Pass Seats knob supports AUTO now (OFF = OFF, AUTO or ON = ON)
Browse files Browse the repository at this point in the history
fixed #255
  • Loading branch information
kimlada committed Nov 3, 2022
1 parent 282af00 commit 566f3a4
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 140 deletions.
29 changes: 29 additions & 0 deletions ModelBehaviorDefs/Heavy/Components/Electrical/Utility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1992,4 +1992,33 @@
</UseTemplate>
</Template>


<Template Name="HEAVY_AIRLINER_Knob_Seatbelts_Template">
<Parameters Type="Defaults">
<NODE_ID>PASSENGERS_Knob_Seatbelts</NODE_ID>
<ANIM_NAME>PASSENGERS_Knob_Seatbelts</ANIM_NAME>
<CODE_POS_0>
(A:CABIN SEATBELTS ALERT SWITCH, Bool) 1 == if{
(&gt;K:CABIN_SEATBELTS_ALERT_SWITCH_TOGGLE)
}
</CODE_POS_0>
<CODE_POS_1>
(A:CABIN SEATBELTS ALERT SWITCH, Bool) 0 == if{
(&gt;K:CABIN_SEATBELTS_ALERT_SWITCH_TOGGLE)
}
</CODE_POS_1>
<CODE_POS_2></CODE_POS_2>
<TOOLTIP_TITLE>@TT_Package.AIRLINER_OVHD_SWITCH_INTLT_SEATBELT_TITLE</TOOLTIP_TITLE>
<TT_DESCRIPTION_ID>@TT_Package.AIRLINER_OVHD_SWITCH_INTLT_SEATBELT_ACTION</TT_DESCRIPTION_ID>
</Parameters>
<Component ID="#NODE_ID#" Node="#NODE_ID#">
<UseTemplate Name="ASOBO_GT_Switch_3States">
<SWITCH_POSITION_TYPE>L</SWITCH_POSITION_TYPE>
<SWITCH_DIRECTION>Horizontal</SWITCH_DIRECTION>
<ARROW_TYPE>Curved</ARROW_TYPE>
<WWISE_EVENT>seatbelts_switch_on</WWISE_EVENT>
</UseTemplate>
</Component>
</Template>

</ModelBehaviors>
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,7 @@
<!-- Tester: Co-mi -->
<!-- TODO: Implement AUTO position -->

<UseTemplate Name="ASOBO_AIRLINER_Knob_Seatbelts_Template">
<NODE_ID>PASSENGERS_Knob_Seatbelts</NODE_ID>
<ANIM_NAME>PASSENGERS_Knob_Seatbelts</ANIM_NAME>
</UseTemplate>
<UseTemplate Name="HEAVY_AIRLINER_Knob_Seatbelts_Template" />
<!-- End: Seat Belt Signs Button -->
</Component>

Expand Down
Loading

0 comments on commit 566f3a4

Please sign in to comment.