summaryrefslogtreecommitdiff
path: root/Library/PackageCache/com.unity.timeline@1.2.13/Editor/MenuOrder.cs
blob: 40913e79f130590f5e8ba5a27c0b61e2ba8ae039 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
using System;
using UnityEngine;
using UnityEngine.Timeline;

namespace UnityEditor.Timeline
{
    static class MenuOrder
    {
        // by default, adds at the end, before 'add'
        public const int DefaultPriority = 9000;
        public const int SeparatorAt = 1000;

        public static class TimelineAction
        {
            public const int Start = 1000;
            public const int Copy = Start + 100;
            public const int Paste = Start + 200;
            public const int Duplicate = Start + 300;
            public const int Delete = Start + 400;
            public const int MatchContent = Start + 500;
        }

        public static class TrackAction
        {
            public const int Start = TimelineAction.Start + SeparatorAt;

            public const int LockTrack = Start + 100;
            public const int LockSelected = Start + 150;
            public const int MuteTrack = Start + 200;
            public const int MuteSelected = Start + 250;
            public const int ShowHideMarkers = Start + 300;
            public const int RemoveInvalidMarkers = Start + 400;
            public const int EditInAnimationWindow = Start + 800;
        }

        public static class TrackAddMenu
        {
            public const int Start = TrackAction.Start + SeparatorAt;
            public const int AddLayerTrack = Start;
        }

        public static class ClipEditAction
        {
            public const int Start = TrackAddMenu.Start + SeparatorAt;
            public const int EditInAnimationWindow = Start + 100;
            public const int EditSubTimeline = Start + 200;
        }

        public static class ClipAction
        {
            public const int Start = ClipEditAction.Start + SeparatorAt;

            public const int TrimStart = Start + 100;
            public const int TrimEnd = Start + 110;
            public const int Split = Start + 120;
            public const int CompleteLastLoop = Start + SeparatorAt;
            public const int TrimLastLoop = Start + SeparatorAt + 110;
            public const int MatchDuration = Start + SeparatorAt + 120;
            public const int DoubleSpeed = Start + 2 * SeparatorAt;
            public const int HalfSpeed = Start + 2 * SeparatorAt + 110;
            public const int ResetDuration = Start + 3 * SeparatorAt;
            public const int ResetSpeed = Start + 3 * SeparatorAt + 110;
            public const int ResetAll = Start + 3 * SeparatorAt + 120;

            public const int Tile = Start + 300;
            public const int FindSourceAsset = Start + 400;
        }

        public static class MarkerAction
        {
            public const int Start = ClipAction.Start + SeparatorAt;
        }

        public static class CustomTrackAction
        {
            public const int Start = MarkerAction.Start + SeparatorAt;

            public const int AnimConvertToClipMode = Start + 100;
            public const int AnimConvertFromClipMode = Start + 200;
            public const int AnimApplyTrackOffset = Start + 300;
            public const int AnimApplySceneOffset = Start + 310;
            public const int AnimApplyAutoOffset = Start + 320;
            public const int AnimAddOverrideTrack = Start + 500;
        }

        public static class CustomClipAction
        {
            public const int Start = CustomTrackAction.Start + SeparatorAt;
            public const int AnimClipMatchPrevious = Start + 100;
            public const int AnimClipMatchNext = Start + 110;
            public const int AnimClipResetOffset = Start + 120;
        }


        public const int AddGroupItemStart = DefaultPriority + SeparatorAt;
        public const int AddTrackItemStart = AddGroupItemStart + SeparatorAt;
        public const int AddCustomTrackItemStart = AddTrackItemStart + SeparatorAt;
        public const int AddClipItemStart = AddCustomTrackItemStart + SeparatorAt;
        public const int AddCustomClipItemStart = AddClipItemStart + SeparatorAt;
        public const int AddMarkerItemStart = AddCustomClipItemStart + SeparatorAt;
        public const int AddCustomMarkerItemStart = AddMarkerItemStart + SeparatorAt;
    }
}