public void FrameEnd() { if (timeline) { timeline.SetPlaying(false); float end = timeline.RecalcuteDuration(); timeline.ProcessTo(end); } }
public void Open(string path, PlayMode mode) { Dispose(); this.path = path; timeline = new XTimeline(path, mode); timeline.Finish = OnPlayFinish; AddRuntime(); float dur = timeline.RecalcuteDuration(); window.SetTimeRange(0, dur * 1.5f); }