SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

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