APIs

Show:

The sequencer module is responsible for management and order of playback of each timeline within each campaign

Constructor

SequencerView

(
  • i_container
)
Object

Parameters:

  • i_container String

    element that CompCampaignNavigator inserts itself into

Returns:

Object:

instantiated CompCampaignNavigator

Methods

_createSortable

(
  • i_selector
)

Create a sortable channel list

Parameters:

  • i_selector Element

_deleteSequencedTimeline

(
  • i_campaign_timeline_id
)

Delete a timeline from the Sequencer UI, as well as from the local member m_timelines.

Parameters:

  • i_campaign_timeline_id Number

Returns:

none

_deleteTimelineThumbUI

(
  • i_campaign_timeline_id
)

Remove the element's UI thumb of a template layout

Parameters:

  • i_campaign_timeline_id Number

_listenContextMenu

()

Listen to any canvas right click

_listenReset

()

Listen to reset of when switching to different campaign so we forget current state

_onContentMenuSelection

(
  • i_command
)

On Scene right click context menu selection command

Parameters:

  • i_command String

_sortableDrag

()

Sortable drag channel list

_sortableDragStart

()

Sortable drag channel list on press

_sortablePress

()

Sortable channel list on press

_sortableSnap

()

snap channels to set rounder values

createTimelineThumbnailUI

(
  • i_screenProps
)

Create the timeline template (a.k.a timeline thumbnail) via the ScreenTemplateFactory and insert it into the sequencer UI. We proceed by activating the newly created timeline thumbnail via the ScreenTemplateFactory public methods.

Parameters:

  • i_screenProps Object

getOwner

() Object

Return this instance.

Returns:

Object:

this

initialize

()

Constructor Init the instance and enable drag and drop operation. We also wire the open properties UI so we can populate a selected timeline through the properties panel.

reSequenceTimelines

() Array

Reorder the timeline in the local msdb to match the UI order of the timeline thumbnails in the Sequencer

Returns:

Array:

order of timelines ids

selectFirstTimeline

()

Select the first timeline in the Sequencer

selectTimeline

(
  • i_campaign_timeline_id
)
Number

Find the campaign_timeline_id within the Sequencer and trigger a click event on it so it gets selected.

Parameters:

  • i_campaign_timeline_id Number

Returns:

Number:

i_campaign_timeline_id or -1

selectViewer

(
  • i_timeline_id
  • i_viewer_id
)

Select a viewer

Parameters:

  • i_timeline_id Number
  • i_viewer_id Number