MenuOrder.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.Timeline;
  4. namespace UnityEditor.Timeline
  5. {
  6. static class MenuOrder
  7. {
  8. // by default, adds at the end, before 'add'
  9. public const int DefaultPriority = 9000;
  10. public const int SeparatorAt = 1000;
  11. public static class TimelineAction
  12. {
  13. public const int Start = 1000;
  14. public const int Copy = Start + 100;
  15. public const int Paste = Start + 200;
  16. public const int Duplicate = Start + 300;
  17. public const int Delete = Start + 400;
  18. public const int MatchContent = Start + 500;
  19. }
  20. public static class TrackAction
  21. {
  22. public const int Start = TimelineAction.Start + SeparatorAt;
  23. public const int LockTrack = Start + 100;
  24. public const int LockSelected = Start + 150;
  25. public const int MuteTrack = Start + 200;
  26. public const int MuteSelected = Start + 250;
  27. public const int ShowHideMarkers = Start + 300;
  28. public const int RemoveInvalidMarkers = Start + 400;
  29. public const int EditInAnimationWindow = Start + 800;
  30. }
  31. public static class TrackAddMenu
  32. {
  33. public const int Start = TrackAction.Start + SeparatorAt;
  34. public const int AddLayerTrack = Start;
  35. }
  36. public static class ClipEditAction
  37. {
  38. public const int Start = TrackAddMenu.Start + SeparatorAt;
  39. public const int EditInAnimationWindow = Start + 100;
  40. public const int EditSubTimeline = Start + 200;
  41. }
  42. public static class ClipAction
  43. {
  44. public const int Start = ClipEditAction.Start + SeparatorAt;
  45. public const int TrimStart = Start + 100;
  46. public const int TrimEnd = Start + 110;
  47. public const int Split = Start + 120;
  48. public const int CompleteLastLoop = Start + SeparatorAt;
  49. public const int TrimLastLoop = Start + SeparatorAt + 110;
  50. public const int MatchDuration = Start + SeparatorAt + 120;
  51. public const int DoubleSpeed = Start + 2 * SeparatorAt;
  52. public const int HalfSpeed = Start + 2 * SeparatorAt + 110;
  53. public const int ResetDuration = Start + 3 * SeparatorAt;
  54. public const int ResetSpeed = Start + 3 * SeparatorAt + 110;
  55. public const int ResetAll = Start + 3 * SeparatorAt + 120;
  56. public const int Tile = Start + 300;
  57. public const int FindSourceAsset = Start + 400;
  58. }
  59. public static class MarkerAction
  60. {
  61. public const int Start = ClipAction.Start + SeparatorAt;
  62. }
  63. public static class CustomTrackAction
  64. {
  65. public const int Start = MarkerAction.Start + SeparatorAt;
  66. public const int AnimConvertToClipMode = Start + 100;
  67. public const int AnimConvertFromClipMode = Start + 200;
  68. public const int AnimApplyTrackOffset = Start + 300;
  69. public const int AnimApplySceneOffset = Start + 310;
  70. public const int AnimApplyAutoOffset = Start + 320;
  71. public const int AnimAddOverrideTrack = Start + 500;
  72. }
  73. public static class CustomClipAction
  74. {
  75. public const int Start = CustomTrackAction.Start + SeparatorAt;
  76. public const int AnimClipMatchPrevious = Start + 100;
  77. public const int AnimClipMatchNext = Start + 110;
  78. public const int AnimClipResetOffset = Start + 120;
  79. }
  80. public const int AddGroupItemStart = DefaultPriority + SeparatorAt;
  81. public const int AddTrackItemStart = AddGroupItemStart + SeparatorAt;
  82. public const int AddCustomTrackItemStart = AddTrackItemStart + SeparatorAt;
  83. public const int AddClipItemStart = AddCustomTrackItemStart + SeparatorAt;
  84. public const int AddCustomClipItemStart = AddClipItemStart + SeparatorAt;
  85. public const int AddMarkerItemStart = AddCustomClipItemStart + SeparatorAt;
  86. public const int AddCustomMarkerItemStart = AddMarkerItemStart + SeparatorAt;
  87. }
  88. }