diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
| commit | 3af4c218c0e70167db23a6303d2af30aff37d2fe (patch) | |
| tree | 927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.timeline@1.2.13/Editor/treeview/ItemGui/TimelineItemGUI.cs | |
| parent | b6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff) | |
| download | Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2 Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip | |
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Editor/treeview/ItemGui/TimelineItemGUI.cs')
| -rw-r--r-- | Library/PackageCache/com.unity.timeline@1.2.13/Editor/treeview/ItemGui/TimelineItemGUI.cs | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/treeview/ItemGui/TimelineItemGUI.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/treeview/ItemGui/TimelineItemGUI.cs deleted file mode 100644 index 522b35e..0000000 --- a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/treeview/ItemGui/TimelineItemGUI.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System; -using System.Collections.Generic; -using UnityEngine.Timeline; -using UnityEngine; - -namespace UnityEditor.Timeline -{ - static class ItemToItemGui - { - static Dictionary<object, TimelineItemGUI> s_ItemToItemGUI = - new Dictionary<object, TimelineItemGUI>(); - - public static void Add(TimelineClip clip, TimelineItemGUI gui) - { - s_ItemToItemGUI[clip] = gui; - } - - public static void Add(IMarker marker, TimelineItemGUI gui) - { - s_ItemToItemGUI[marker] = gui; - } - - public static TimelineClipGUI GetGuiForClip(TimelineClip clip) - { - return GetGuiForItem(clip) as TimelineClipGUI; - } - - public static TimelineMarkerGUI GetGuiForMarker(IMarker marker) - { - return GetGuiForItem(marker) as TimelineMarkerGUI; - } - - static TimelineItemGUI GetGuiForItem(object item) - { - if (item == null) - return null; - - TimelineItemGUI gui; - s_ItemToItemGUI.TryGetValue(item, out gui); - return gui; - } - } - - abstract class TimelineItemGUI : ISelectable - { - protected readonly DirectorStyles m_Styles; - - public abstract ITimelineItem item { get; } - public abstract double start { get; } - public abstract double end { get; } - public abstract void Draw(Rect rect, bool rectChanged, WindowState state); - public abstract Rect RectToTimeline(Rect trackRect, WindowState state); - - public virtual void Select() {} - public virtual bool IsSelected() { return false; } - public virtual void Deselect() {} - - public virtual void StartDrag() {} - public virtual void StopDrag() {} - - public LayerZOrder zOrder { get; set; } - - public bool visible { get; set; } - public bool isInvalid { get; set; } - - public IRowGUI parent { get; } - - public Rect rect - { - get { return parent.ToWindowSpace(treeViewRect); } - } - - public Rect treeViewRect - { - get { return m_TreeViewRect; } - protected set - { - m_TreeViewRect = value; - if (value.width < 0.0f) - m_TreeViewRect.width = 1.0f; - } - } - - Rect m_TreeViewRect; - - protected TimelineItemGUI(IRowGUI parent) - { - this.parent = parent; - m_Styles = DirectorStyles.Instance; - } - } -} |
