TimelineInactiveMode.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace UnityEditor.Timeline
  2. {
  3. class TimelineInactiveMode : TimelineMode
  4. {
  5. public TimelineInactiveMode()
  6. {
  7. headerState = new HeaderState
  8. {
  9. breadCrumb = TimelineModeGUIState.Disabled,
  10. options = TimelineModeGUIState.Enabled,
  11. sequenceSelector = TimelineModeGUIState.Enabled
  12. };
  13. trackOptionsState = new TrackOptionsState
  14. {
  15. newButton = TimelineModeGUIState.Disabled,
  16. editAsAssetButton = TimelineModeGUIState.Enabled
  17. };
  18. mode = TimelineModes.Inactive;
  19. }
  20. public override bool ShouldShowPlayRange(WindowState state)
  21. {
  22. return false;
  23. }
  24. public override bool ShouldShowTimeCursor(WindowState state)
  25. {
  26. return false;
  27. }
  28. public override TimelineModeGUIState ToolbarState(WindowState state)
  29. {
  30. return TimelineModeGUIState.Disabled;
  31. }
  32. public override TimelineModeGUIState TrackState(WindowState state)
  33. {
  34. return TimelineModeGUIState.Disabled;
  35. }
  36. public override TimelineModeGUIState PreviewState(WindowState state)
  37. {
  38. return TimelineModeGUIState.Disabled;
  39. }
  40. }
  41. }