using System;
using UnityEngine;
namespace UnityEditor.Timeline.Actions
{
///
/// Priorities for menu item ordering. See .
///
public static class MenuPriority
{
///
/// Default priority for a menu. It will add at the end of the context menu before the 'add' menus.
///
public const int defaultPriority = 9000;
///
/// This value is the separator difference that will be needed to create a separator between menu item.
///
public const int separatorAt = 1000;
///
/// Priorities for Timeline Action menu items.
///
public static class TimelineActionSection
{
///
/// First Timeline action menu item priority.
///
public const int start = 1000;
///
/// Copy menu item priority.
///
public const int copy = start + 100;
///
/// Paste menu item priority.
///
public const int paste = start + 200;
///
/// Duplicate menu item priority.
///
public const int duplicate = start + 300;
///
/// Delete menu item priority.
///
public const int delete = start + 400;
///
/// Match Content menu item priority.
///
public const int matchContent = start + 500;
}
///
/// Priorities for Track action menu items.
///
public static class TrackActionSection
{
///
/// First Track action menu item priority.
///
public const int start = TimelineActionSection.start + separatorAt;
///
/// Lock track menu item priority.
///
public const int lockTrack = start + 100;
///
/// Lock selected track menu item priority.
///
public const int lockSelected = start + 150;
///
/// Mute track menu item priority.
///
public const int mute = start + 200;
///
/// Mute selected track menu item priority.
///
public const int muteSelected = start + 250;
///
/// Show hide marker menu item priority.
///
public const int showHideMarkers = start + 300;
///
/// Remove Invalid Markers menu item priority.
///
public const int removeInvalidMarkers = start + 400;
///
/// Edit Track In Animation Window menu item priority.
///
public const int editInAnimationWindow = start + 800;
}
///
/// Priorities for Add Tracks menu items.
///
public static class AddTrackMenu
{
///
/// First Add Track menu item priority.
///
public const int start = TrackActionSection.start + separatorAt;
///
/// Add Layer Track menu item priority.
///
public const int addLayerTrack = start;
}
///
/// Priorities for Clip edition menu items.
///
public static class ClipEditActionSection
{
///
/// First Edit Clip menu item priority.
///
public const int start = AddTrackMenu.start + separatorAt;
///
/// Edit Clip In Animation Window menu item priority.
///
public const int editInAnimationWindow = start + 100;
///
/// Edit Clip Sub Timeline menu item priority.
///
public const int editSubTimeline = start + 200;
}
///
/// Priorities for Clip action menu items.
///
public static class ClipActionSection
{
///
/// First Clip action menu item priority.
///
public const int start = ClipEditActionSection.start + separatorAt;
///
/// Trim start menu item priority.
///
public const int trimStart = start + 100;
///
/// Trim end menu item priority.
///
public const int trimEnd = start + 110;
///
/// Split menu item priority.
///
public const int split = start + 120;
///
/// Complete Last Loop menu item priority.
///
public const int completeLastLoop = start + separatorAt;
///
/// Trim Last Loop menu item priority.
///
public const int trimLastLoop = start + separatorAt + 110;
///
/// Match duration menu item priority.
///
public const int matchDuration = start + separatorAt + 120;
///
/// Double Speed menu item priority.
///
public const int doubleSpeed = start + 2 * separatorAt;
///
/// Half Speed menu item priority.
///
public const int halfSpeed = start + 2 * separatorAt + 110;
///
/// Reset Duration menu item priority.
///
public const int resetDuration = start + 3 * separatorAt;
///
/// Reset Speed menu item priority.
///
public const int resetSpeed = start + 3 * separatorAt + 110;
///
/// Reset All menu item priority.
///
public const int resetAll = start + 3 * separatorAt + 120;
///
/// Tile menu item priority.
///
public const int tile = start + 300;
///
/// Find source asset menu item priority.
///
public const int findSourceAsset = start + 400;
}
///
/// Priorities for Marker action menu items.
///
public static class MarkerActionSection
{
///
/// First Marker action menu item priority.
///
public const int start = ClipActionSection.start + separatorAt;
}
///
/// Priorities for custom Timeline action menu items.
///
public static class CustomTimelineActionSection
{
///
/// First custom Timeline action menu item priority.
///
public const int start = MarkerActionSection.start + separatorAt;
}
///
/// Priorities for Custom Track action menu items.
///
public static class CustomTrackActionSection
{
///
/// First custom track action menu item priority.
///
public const int start = CustomTimelineActionSection.start + separatorAt;
///
/// Convert Animation to clip menu item priority.
///
public const int convertToClipMode = start + 100;
///
/// Convert Clip to animation menu item priority.
///
public const int convertFromClipMode = start + 200;
///
/// Apply Track offset menu item priority.
///
public const int applyTrackOffset = start + 300;
///
/// Apply Scene offset menu item priority.
///
public const int applySceneOffset = start + 310;
///
/// Apply Auto offset menu item priority.
///
public const int applyAutoOffset = start + 320;
///
/// Add override track menu item priority.
///
public const int addOverrideTrack = start + 500;
///
/// User custom track action menu item priority.
///
public const int customTrackAction = start + 900;
}
///
/// Custom clip action menu item priority.
///
public static class CustomClipActionSection
{
///
/// First custom clip action menu item priority.
///
public const int start = CustomTrackActionSection.start + separatorAt;
///
/// Match previous menu item priority.
///
public const int matchPrevious = start + 100;
///
/// Match next menu item priority.
///
public const int matchNext = start + 110;
///
/// Reset offset menu item priority.
///
public const int resetOffset = start + 120;
///
/// User custom clip action menu item priority.
///
public const int customClipAction = start + 900;
}
///
/// Priorities for menu entries to create Timeline items.
///
public static class AddItem
{
///
/// Add group menu item priority.
///
public const int addGroup = defaultPriority + separatorAt;
///
/// Add track menu item priority.
///
public const int addTrack = addGroup + separatorAt;
///
/// Add custom track menu item priority.
///
public const int addCustomTrack = addTrack + separatorAt;
///
/// Add clip menu item priority.
///
public const int addClip = addCustomTrack + separatorAt;
///
/// Add custom clip menu item priority.
///
public const int addCustomClip = addClip + separatorAt;
///
/// Add marker menu item priority.
///
public const int addMarker = addCustomClip + separatorAt;
///
/// Add custom marker menu item priority.
///
public const int addCustomMarker = addMarker + separatorAt;
}
}
}