Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {trigger:Dachlukensteuereinheit_1_drag}
- (L.S.mouse_y) 20 / (L.L.cp_Schalter_Dachlukensteuereinheit1_sw) + -1 max 1 min
- (S.L.cp_Schalter_Dachlukensteuereinheit1_sw) s1
- ' Stufen:
- ' -1: Schalter nach vorne
- ' 0: Schalter in Mittelstellung
- ' 1: Schalter nach hinten
- l1 -0.5 <
- {if}
- (L.L.Dachluke1_moving) !
- (L.L.cp_Schalter_Dachluke1_war_null) &&
- (L.L.Dachluke1modus) 0 > &&
- (L.L.elec_busbar_main) &&
- {if}
- (L.L.Dachluke1modus) 1 - (S.L.Dachluke1modus)
- {endif}
- (L.L.Dachluke1modus) 0 = !
- {if}
- 0 (S.L.cp_Schalter_Dachluke1_war_null)
- {endif}
- {else}
- l1 0.5 >
- {if}
- (L.L.Dachluke1_moving) !
- (L.L.cp_Schalter_Dachluke1_war_null) &&
- (L.L.Dachluke1modus) 2 < &&
- (L.L.elec_busbar_main) &&
- {if}
- (L.L.Dachluke1modus) 1 + (S.L.Dachluke1modus)
- {endif}
- (L.L.Dachluke1modus) 2 = !
- {if}
- 0 (S.L.cp_Schalter_Dachluke1_war_null)
- {endif}
- {else}
- 1 (S.L.cp_Schalter_Dachluke1_war_null)
- {endif}
- {endif}
- (L.L.Dachluke1modus) 0 =
- {if}
- 1 (S.L.cp_Dachluke1_visible_1)
- 0 (S.L.cp_Dachluke1_visible_2)
- {else}
- (L.L.Dachluke1modus) 1 =
- {if}
- 0 (S.L.cp_Dachluke1_visible_1) (S.L.cp_Dachluke1_visible_2)
- {else}
- 0 (S.L.cp_Dachluke1_visible_1)
- 1 (S.L.cp_Dachluke1_visible_2)
- {endif}
- {endif}
- {end}
- {trigger:Dachlukensteuereinheit_1_off}
- 0 (S.L.cp_Schalter_Dachlukensteuereinheit1_sw)
- 1 (S.L.cp_Schalter_Dachluke1_war_null)
- {end}
- {trigger:Dachlukensteuereinheit_2_drag}
- (L.S.mouse_y) 20 / (L.L.cp_Schalter_Dachlukensteuereinheit2_sw) + -1 max 1 min
- (S.L.cp_Schalter_Dachlukensteuereinheit2_sw) s1
- ' Stufen:
- ' -1: Schalter nach vorne
- ' 0: Schalter in Mittelstellung
- ' 1: Schalter nach hinten
- l1 -0.5 <
- {if}
- (L.L.Dachluke2_moving) !
- (L.L.cp_Schalter_Dachluke2_war_null) &&
- (L.L.Dachluke2modus) 0 > &&
- (L.L.elec_busbar_main) &&
- {if}
- (L.L.Dachluke2modus) 1 - (S.L.Dachluke2modus)
- {endif}
- (L.L.Dachluke2modus) 0 = !
- {if}
- 0 (S.L.cp_Schalter_Dachluke2_war_null)
- {endif}
- {else}
- l1 0.5 >
- {if}
- (L.L.Dachluke2_moving) !
- (L.L.cp_Schalter_Dachluke2_war_null) &&
- (L.L.Dachluke2modus) 2 < &&
- (L.L.elec_busbar_main) &&
- {if}
- (L.L.Dachluke2modus) 1 + (S.L.Dachluke2modus)
- {endif}
- (L.L.Dachluke2modus) 2 = !
- {if}
- 0 (S.L.cp_Schalter_Dachluke2_war_null)
- {endif}
- {else}
- 1 (S.L.cp_Schalter_Dachluke2_war_null)
- {endif}
- {endif}
- (L.L.Dachluke2modus) 0 =
- {if}
- 1 (S.L.cp_Dachluke2_visible_1)
- 0 (S.L.cp_Dachluke2_visible_2)
- {else}
- (L.L.Dachluke2modus) 1 =
- {if}
- 0 (S.L.cp_Dachluke2_visible_1) (S.L.cp_Dachluke2_visible_2)
- {else}
- 0 (S.L.cp_Dachluke2_visible_1)
- 1 (S.L.cp_Dachluke2_visible_2)
- {endif}
- {endif}
- {end}
- {trigger:Dachlukensteuereinheit_2_off}
- 0 (S.L.cp_Schalter_Dachlukensteuereinheit2_sw)
- 1 (S.L.cp_Schalter_Dachluke2_war_null)
- {end}
- '----------------------
- ' Init
- '----------------------
- {macro:cockpit_init}
- 0 (S.L.cp_Schalter_Dachlukensteuereinheit1_sw)
- 1 (S.L.cp_Schalter_Dachluke1_war_null)
- 0 (S.L.cp_Schalter_Dachlukensteuereinheit2_sw)
- 1 (S.L.cp_Schalter_Dachluke2_war_null)
- 1 (S.L.Dachluke1modus) (S.L.Dachluke2modus)
- {end}
- '----------------------
- ' Frame
- '----------------------
- {macro:cockpit_frame}
- (M.L.Dachluken_frame)
- {macro:Dachluken_frame}
- ' überprüfen, ob "Saft" da is'
- (L.L.elec_busbar_main)
- {if}
- ' Dachluke vorne:
- (L.L.Dachluke1modus) 0 =
- {if}
- (L.L.Dachluke1_1_pos) s0 (L.S.Timegap) 0.4 * + 1 min (S.L.Dachluke1_1_pos) s1
- (L.L.Dachluke1_2_pos) s2 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke1_2_pos) s3
- l0 l1 = l2 l3 = && ! (S.L.Dachluke1_moving)
- {else}
- (L.L.Dachluke1modus) 1 =
- {if}
- (L.L.Dachluke1_1_pos) s0 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke1_1_pos) s1
- (L.L.Dachluke1_2_pos) s2 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke1_2_pos) s3
- l0 l1 = l2 l3 = && ! (S.L.Dachluke1_moving)
- {else}
- (L.L.Dachluke1_1_pos) s0 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke1_1_pos) s1
- (L.L.Dachluke1_2_pos) s2 (L.S.Timegap) 0.4 * + 1 min (S.L.Dachluke1_2_pos) s3
- l0 l1 = l2 l3 = && ! (S.L.Dachluke1_moving)
- {endif}
- {endif}
- ' Dachluke hinten:
- (L.L.Dachluke2modus) 0 =
- {if}
- (L.L.Dachluke2_1_pos) s0 (L.S.Timegap) 0.4 * + 1 min (S.L.Dachluke2_1_pos) s1
- (L.L.Dachluke2_2_pos) s2 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke2_2_pos) s3
- l0 l1 = l2 l3 = && ! (S.L.Dachluke2_moving)
- {else}
- (L.L.Dachluke2modus) 1 =
- {if}
- (L.L.Dachluke2_1_pos) s0 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke2_1_pos) s1
- (L.L.Dachluke2_2_pos) s2 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke2_2_pos) s3
- l0 l1 = l2 l3 = && ! (S.L.Dachluke2_moving)
- {else}
- (L.L.Dachluke2_1_pos) s0 (L.S.Timegap) 0.4 * - 0 max (S.L.Dachluke2_1_pos) s1
- (L.L.Dachluke2_2_pos) s2 (L.S.Timegap) 0.4 * + 1 min (S.L.Dachluke2_2_pos) s3
- l0 l1 = l2 l3 = && ! (S.L.Dachluke2_moving)
- {endif}
- {endif}
- {endif}
- {end}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement