public TimelineGroupGUI(TreeViewController treeview, TimelineTreeViewGUI treeviewGUI, int id, int depth, TreeViewItem parent, string displayName, TrackAsset trackAsset, bool isRoot) : base(id, depth, parent, displayName, trackAsset, treeview, treeviewGUI) { this.m_Styles = DirectorStyles.Instance; this.m_IsRoot = isRoot; string assetPath = AssetDatabase.GetAssetPath(trackAsset); string assetPath2 = AssetDatabase.GetAssetPath(treeviewGUI.TimelineWindow.timeline); if (assetPath != assetPath2) { this.m_IsReferencedTrack = true; } this.m_GroupDepth = TimelineGroupGUI.CalculateGroupDepth(parent); }
private static void AddVisibleTrackRecursive(ref List <TimelineTrackBaseGUI> list, TimelineTrackBaseGUI track) { if (track != null) { list.Add(track); if (track.isExpanded) { if (track.get_children() != null) { foreach (TreeViewItem current in track.get_children()) { TimelineTreeViewGUI.AddVisibleTrackRecursive(ref list, current as TimelineTrackBaseGUI); } } } } }
protected TimelineTrackBaseGUI(int id, int depth, TreeViewItem parent, string displayName, TrackAsset trackAsset, TreeViewController tv, TimelineTreeViewGUI tvgui) : base(id, depth, parent, displayName) { this.m_Drawer = TrackDrawer.CreateInstance(trackAsset); this.m_Drawer.track = trackAsset; this.m_Drawer.sequencerState = tvgui.TimelineWindow.state; this.m_Drawer.ConfigureUITrack(this); this.isExpanded = false; this.isDropTarget = false; this.track = trackAsset; this.< treeView > k__BackingField = tv; this.m_TreeViewGUI = tvgui; if (TimelineTrackBaseGUI.< > f__mg$cache0 == null) { TimelineTrackBaseGUI.< > f__mg$cache0 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.MouseDown += TimelineTrackBaseGUI.< > f__mg$cache0; if (TimelineTrackBaseGUI.< > f__mg$cache1 == null) { TimelineTrackBaseGUI.< > f__mg$cache1 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.MouseDrag += TimelineTrackBaseGUI.< > f__mg$cache1; if (TimelineTrackBaseGUI.< > f__mg$cache2 == null) { TimelineTrackBaseGUI.< > f__mg$cache2 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.MouseUp += TimelineTrackBaseGUI.< > f__mg$cache2; if (TimelineTrackBaseGUI.< > f__mg$cache3 == null) { TimelineTrackBaseGUI.< > f__mg$cache3 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.DoubleClick += TimelineTrackBaseGUI.< > f__mg$cache3; if (TimelineTrackBaseGUI.< > f__mg$cache4 == null) { TimelineTrackBaseGUI.< > f__mg$cache4 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.KeyDown += TimelineTrackBaseGUI.< > f__mg$cache4; if (TimelineTrackBaseGUI.< > f__mg$cache5 == null) { TimelineTrackBaseGUI.< > f__mg$cache5 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.KeyUp += TimelineTrackBaseGUI.< > f__mg$cache5; if (TimelineTrackBaseGUI.< > f__mg$cache6 == null) { TimelineTrackBaseGUI.< > f__mg$cache6 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.DragPerform += TimelineTrackBaseGUI.< > f__mg$cache6; if (TimelineTrackBaseGUI.< > f__mg$cache7 == null) { TimelineTrackBaseGUI.< > f__mg$cache7 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.DragExited += TimelineTrackBaseGUI.< > f__mg$cache7; if (TimelineTrackBaseGUI.< > f__mg$cache8 == null) { TimelineTrackBaseGUI.< > f__mg$cache8 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.DragUpdated += TimelineTrackBaseGUI.< > f__mg$cache8; if (TimelineTrackBaseGUI.< > f__mg$cache9 == null) { TimelineTrackBaseGUI.< > f__mg$cache9 = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.MouseWheel += TimelineTrackBaseGUI.< > f__mg$cache9; if (TimelineTrackBaseGUI.< > f__mg$cacheA == null) { TimelineTrackBaseGUI.< > f__mg$cacheA = new TimelineUIEvent(TimelineTrackBaseGUI.NoOp); } this.ContextClick += TimelineTrackBaseGUI.< > f__mg$cacheA; }