mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Initial commit
This commit is contained in:
commit
3c7cc0c973
8391 changed files with 704313 additions and 0 deletions
|
@ -0,0 +1,42 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
struct TrackItemsDrawer
|
||||
{
|
||||
List<ItemsLayer> m_Layers;
|
||||
ClipsLayer m_ClipsLayer;
|
||||
|
||||
public IEnumerable<TimelineClipGUI> clips
|
||||
{
|
||||
get { return m_ClipsLayer.items.Cast<TimelineClipGUI>(); }
|
||||
}
|
||||
|
||||
public TrackItemsDrawer(IRowGUI parent)
|
||||
{
|
||||
m_Layers = null;
|
||||
m_ClipsLayer = null;
|
||||
BuildGUICache(parent);
|
||||
}
|
||||
|
||||
void BuildGUICache(IRowGUI parent)
|
||||
{
|
||||
m_ClipsLayer = new ClipsLayer(Layer.Clips, parent);
|
||||
m_Layers = new List<ItemsLayer>
|
||||
{
|
||||
m_ClipsLayer,
|
||||
new MarkersLayer(Layer.Markers, parent)
|
||||
};
|
||||
}
|
||||
|
||||
public void Draw(Rect rect, WindowState state)
|
||||
{
|
||||
foreach (var layer in m_Layers)
|
||||
{
|
||||
layer.Draw(rect, state);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue