Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
class AddDeleteItemModeMix : IAddDeleteItemMode
|
||||
{
|
||||
public void InsertItemsAtTime(IEnumerable<ItemsPerTrack> itemsGroups, double requestedTime)
|
||||
{
|
||||
ItemsUtils.SetItemsStartTime(itemsGroups, requestedTime);
|
||||
EditModeMixUtils.PrepareItemsForInsertion(itemsGroups);
|
||||
|
||||
if (!EditModeMixUtils.CanInsert(itemsGroups))
|
||||
{
|
||||
var validTime = itemsGroups.Select(c => c.targetTrack).Max(parent => parent.end);
|
||||
ItemsUtils.SetItemsStartTime(itemsGroups, validTime);
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveItems(IEnumerable<ItemsPerTrack> itemsGroups)
|
||||
{
|
||||
// Nothing
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 41e14f40b915ca743a3dffd18ffc65ab
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
class AddDeleteItemModeReplace : IAddDeleteItemMode
|
||||
{
|
||||
public void InsertItemsAtTime(IEnumerable<ItemsPerTrack> itemsGroups, double requestedTime)
|
||||
{
|
||||
ItemsUtils.SetItemsStartTime(itemsGroups, requestedTime);
|
||||
EditModeReplaceUtils.Insert(itemsGroups);
|
||||
}
|
||||
|
||||
public void RemoveItems(IEnumerable<ItemsPerTrack> itemsGroups)
|
||||
{
|
||||
// Nothing
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ea28dc637ae40484da709200d3328587
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
class AddDeleteItemModeRipple : IAddDeleteItemMode
|
||||
{
|
||||
public void InsertItemsAtTime(IEnumerable<ItemsPerTrack> itemsGroups, double requestedTime)
|
||||
{
|
||||
ItemsUtils.SetItemsStartTime(itemsGroups, requestedTime);
|
||||
EditModeRippleUtils.Insert(itemsGroups);
|
||||
}
|
||||
|
||||
public void RemoveItems(IEnumerable<ItemsPerTrack> itemsGroups)
|
||||
{
|
||||
EditModeRippleUtils.Remove(itemsGroups);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 88338eb35defad644a48718188e8f219
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
interface IAddDeleteItemMode
|
||||
{
|
||||
void InsertItemsAtTime(IEnumerable<ItemsPerTrack> itemsGroups, double requestedTime);
|
||||
void RemoveItems(IEnumerable<ItemsPerTrack> itemsGroups);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4db13e1060deaae48b30246ed63b7c9b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue