TimelineAssetEditionMode.cs 816 B

123456789101112131415161718192021222324252627
  1. namespace UnityEditor.Timeline
  2. {
  3. class TimelineAssetEditionMode : TimelineInactiveMode
  4. {
  5. public override TimelineModeGUIState TrackState(WindowState state)
  6. {
  7. return TimelineModeGUIState.Enabled;
  8. }
  9. public TimelineAssetEditionMode()
  10. {
  11. headerState = new HeaderState
  12. {
  13. breadCrumb = TimelineModeGUIState.Enabled,
  14. options = TimelineModeGUIState.Enabled,
  15. sequenceSelector = TimelineModeGUIState.Enabled
  16. };
  17. trackOptionsState = new TrackOptionsState
  18. {
  19. newButton = TimelineModeGUIState.Enabled,
  20. editAsAssetButton = TimelineModeGUIState.Enabled
  21. };
  22. mode = TimelineModes.AssetEdition;
  23. }
  24. }
  25. }