public override void UpdateEventsEditor(int frame, float time) { base.UpdateEventsEditor(frame, time); FEvent[] evts = new FEvent[2]; int numEvents = Track.GetEventsAt(frame, evts); if (numEvents > 0) { int startOffset = ((FPlaySequenceEvent)evts[0]).StartOffset; _sequenceEditor.SetCurrentFrame(startOffset + frame - evts[0].Start); /// @TODO handle offset if (numEvents > 1) { startOffset = ((FPlaySequenceEvent)evts[1]).StartOffset; _sequenceEditor.SetCurrentFrame(startOffset + frame - evts[1].Start); } } }