Detailed Description

A track. They're simply a list of slides. They start at either a slide (in some other track), an item (typically an NPC) or an 2D element (using the slides CSS property).

Inheritance diagram for PowerSlide.Track:
Dom.EventTarget Dom.IEventTarget PowerSlide.CueTrack PowerSlide.DialogueTrack PowerSlide.StyleTrack

Public Member Functions

 Track ()
 
SlideEvent createEvent (string type)
 Creates an event relative to this track. Prepends "slides" to the given type. More...
 
SlideEvent createRawEvent (string type)
 Creates an event relative to this track. Type is 'as-is'. More...
 
virtual Slide createSlide ()
 Creates a slide of the correct type for this track. More...
 
virtual void load (JSObject json, JSObject header)
 Loads a track from some JSON data with an optional header. More...
 
- Public Member Functions inherited from Dom.EventTarget
void ClearEvents ()
 Clears all events on this document. More...
 
bool dispatchEvent (Event e)
 Runs an event of the given name. More...
 
void addEventListener (string name, EventListener listener)
 Adds an event listener to this document. More...
 
void addEventListener (string name, EventListener listener, bool useCapture)
 Adds an event listener to this document. More...
 
void removeEventListener (string name, object evtHandlerInternal)
 Removes an event listener from this document. More...
 
void addEventListener (string name, AnimationEventDelegate method)
 
void addEventListener (string name, AudioProcessingEventDelegate method)
 
void addEventListener (string name, BeforeInputEventDelegate method)
 
void addEventListener (string name, BeforeUnloadEventDelegate method)
 
void addEventListener (string name, BlobEventDelegate method)
 
void addEventListener (string name, ClipboardEventDelegate method)
 
void addEventListener (string name, CloseEventDelegate method)
 
void addEventListener (string name, CompositionEventDelegate method)
 
void addEventListener (string name, CustomEventDelegate method)
 
void addEventListener (string name, CSSFontFaceLoadEventDelegate method)
 
void addEventListener (string name, DeviceLightEventDelegate method)
 
void addEventListener (string name, DeviceMotionEventDelegate method)
 
void addEventListener (string name, DeviceOrientationEventDelegate method)
 
void addEventListener (string name, DeviceProximityEventDelegate method)
 
void addEventListener (string name, DomEventDelegate method)
 
void addEventListener (string name, DOMTransactionEventDelegate method)
 
void addEventListener (string name, DragEventDelegate method)
 
void addEventListener (string name, EditingBeforeInputEventDelegate method)
 
void addEventListener (string name, ErrorEventDelegate method)
 
void addEventListener (string name, FetchEventDelegate method)
 
void addEventListener (string name, FocusEventDelegate method)
 
void addEventListener (string name, GamepadEventDelegate method)
 
void addEventListener (string name, HashChangeEventDelegate method)
 
void addEventListener (string name, IDBVersionChangeEventDelegate method)
 
void addEventListener (string name, InputEventDelegate method)
 
void addEventListener (string name, KeyboardEventDelegate method)
 
void addEventListener (string name, MediaStreamEventDelegate method)
 
void addEventListener (string name, MessageEventDelegate method)
 
void addEventListener (string name, MouseEventDelegate method)
 
void addEventListener (string name, MutationEventDelegate method)
 
void addEventListener (string name, OfflineAudioCompletionEventDelegate method)
 
void addEventListener (string name, PageTransitionEventDelegate method)
 
void addEventListener (string name, PointerEventDelegate method)
 
void addEventListener (string name, PopStateEventDelegate method)
 
void addEventListener (string name, ProgressEventDelegate method)
 
void addEventListener (string name, RelatedEventDelegate method)
 
void addEventListener (string name, RTCDataChannelEventDelegate method)
 
void addEventListener (string name, RTCIdentityErrorEventDelegate method)
 
void addEventListener (string name, RTCIdentityEventDelegate method)
 
void addEventListener (string name, RTCPeerConnectionIceEventDelegate method)
 
void addEventListener (string name, SensorEventDelegate method)
 
void addEventListener (string name, StorageEventDelegate method)
 
void addEventListener (string name, TextEventDelegate method)
 
void addEventListener (string name, TimeEventDelegate method)
 
void addEventListener (string name, TouchEventDelegate method)
 
void addEventListener (string name, TrackEventDelegate method)
 
void addEventListener (string name, TransitionEventDelegate method)
 
void addEventListener (string name, UIEventDelegate method)
 
void addEventListener (string name, UserProximityEventDelegate method)
 
void addEventListener (string name, WebGLContextEventDelegate method)
 
void addEventListener (string name, WheelEventDelegate method)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener, bool capture)
 
void addEventListener (string name, ContextEventDelegate method)
 
void addEventListener (string name, SlideEventDelegate method)
 
void addEventListener (string name, PowerUI.SpriteEventDelegate method)
 
void addEventListener (string name, SVGEventDelegate method)
 Adds an event listener to this document. More...
 
void addEventListener (string name, SVGZoomEventDelegate method)
 

Static Public Member Functions

static Track LoadFromJson (Timeline timeline, JSObject json)
 Loads a track from the given track data. More...
 

Public Attributes

int currentSlide =-1
 Whilst a track is progressing, this is the current slide index that it's at. More...
 
Timeline timeline
 The timeline that this track originated from. More...
 
int id
 A globally unique ID. More...
 
Slide[] slides
 The slides which appear one after the other whilst this track is running. More...
 
JSObject rawJson
 The json the track originated from. NOTE: Only set if OnLoad is not null. More...
 
- Public Attributes inherited from Dom.EventTarget
EventsSet Events
 A set of events for this document. See addEventListener. More...
 

Package Functions

virtual void OnStart ()
 
void SetStartAndDuration (float length)
 Updates the computedStart and computedDuration values. More...
 

Properties

float definedDuration [get]
 The defined duration. More...
 
virtual string tagName [get]
 The name of this type of track. "style" and "dialogue" are common examples. More...
 
bool loaded [get]
 True if this tracks data has been setup. More...
 
- Properties inherited from Dom.EventTarget
static DispatchStack dispatchStackRef [get]
 The active dispatch stack. Use event.deepPath to access it (available during dispatch only). More...
 
virtual EventTarget eventTargetParentNode [get]
 The parent node as used by EventTarget during capture. Can be null. More...
 
virtual NodeList eventTargetChildren [get]
 The childNode set as used by EventTarget during capture. Can be null. More...
 

Events

static SlideEventDelegate OnLoad
 Use this and partial class extensions to add custom info loaded from JSON. More...
 

Private Member Functions

void PlugStartGaps (int firstNoStart, int max, int ignoreSlides, float maxStart)
 Sets start between firstNoStart and max-1 using the given start value for max. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dom.EventTarget
GetFirstDelegate< T > (string name)
 Gets the first delegate event handler for the given event name. More...
 
virtual bool HandleLocalEvent (Event e, bool bubblePhase)
 Handles triggering event handlers here. Elements can (and in PowerUI's case, do) override this. PowerUI overrides it to handle e.g. onclick="" attributes too. More...
 
- Static Package Attributes inherited from Dom.EventTarget
static DispatchStack PooledStack
 The current head of the pooled dispatched stacks. More...
 

Constructor & Destructor Documentation

PowerSlide.Track.Track ( )
inline

Member Function Documentation

SlideEvent PowerSlide.Track.createEvent ( string  type)
inline

Creates an event relative to this track. Prepends "slides" to the given type.

SlideEvent PowerSlide.Track.createRawEvent ( string  type)
inline

Creates an event relative to this track. Type is 'as-is'.

virtual Slide PowerSlide.Track.createSlide ( )
inlinevirtual

Creates a slide of the correct type for this track.

Reimplemented in PowerSlide.StyleTrack, PowerSlide.CueTrack, and PowerSlide.DialogueTrack.

virtual void PowerSlide.Track.load ( JSObject  json,
JSObject  header 
)
inlinevirtual

Loads a track from some JSON data with an optional header.

Reimplemented in PowerSlide.StyleTrack.

static Track PowerSlide.Track.LoadFromJson ( Timeline  timeline,
JSObject  json 
)
inlinestatic

Loads a track from the given track data.

virtual void PowerSlide.Track.OnStart ( )
inlinepackagevirtual

Reimplemented in PowerSlide.StyleTrack.

void PowerSlide.Track.PlugStartGaps ( int  firstNoStart,
int  max,
int  ignoreSlides,
float  maxStart 
)
inlineprivate

Sets start between firstNoStart and max-1 using the given start value for max.

void PowerSlide.Track.SetStartAndDuration ( float  length)
inlinepackage

Updates the computedStart and computedDuration values.

Parameters
lengthTotal track length.

Member Data Documentation

int PowerSlide.Track.currentSlide =-1

Whilst a track is progressing, this is the current slide index that it's at.

int PowerSlide.Track.id

A globally unique ID.

JSObject PowerSlide.Track.rawJson

The json the track originated from. NOTE: Only set if OnLoad is not null.

Slide [] PowerSlide.Track.slides

The slides which appear one after the other whilst this track is running.

Timeline PowerSlide.Track.timeline

The timeline that this track originated from.

Property Documentation

float PowerSlide.Track.definedDuration
getpackage

The defined duration.

bool PowerSlide.Track.loaded
get

True if this tracks data has been setup.

virtual string PowerSlide.Track.tagName
get

The name of this type of track. "style" and "dialogue" are common examples.

Event Documentation

SlideEventDelegate PowerSlide.Track.OnLoad
static

Use this and partial class extensions to add custom info loaded from JSON.