A game about forced loneliness, made by TACStudios
1namespace UnityEditor.Timeline
2{
3 class TimelineReadOnlyMode : TimelineMode
4 {
5 public TimelineReadOnlyMode()
6 {
7 headerState = new HeaderState()
8 {
9 breadCrumb = TimelineModeGUIState.Enabled,
10 options = TimelineModeGUIState.Enabled,
11 sequenceSelector = TimelineModeGUIState.Enabled,
12 };
13
14 trackOptionsState = new TrackOptionsState()
15 {
16 newButton = TimelineModeGUIState.Disabled,
17 editAsAssetButton = TimelineModeGUIState.Disabled,
18 };
19 mode = TimelineModes.ReadOnly;
20 }
21
22 public override bool ShouldShowPlayRange(WindowState state)
23 {
24 return state.editSequence.director != null && state.playRangeEnabled;
25 }
26
27 public override bool ShouldShowTimeCursor(WindowState state)
28 {
29 return state.editSequence.director != null;
30 }
31
32 public override TimelineModeGUIState TrackState(WindowState state)
33 {
34 return TimelineModeGUIState.Disabled;
35 }
36
37 public override TimelineModeGUIState ToolbarState(WindowState state)
38 {
39 return state.editSequence.director == null ? TimelineModeGUIState.Disabled : TimelineModeGUIState.Enabled;
40 }
41
42 public override TimelineModeGUIState PreviewState(WindowState state)
43 {
44 return state.editSequence.director == null ? TimelineModeGUIState.Disabled : TimelineModeGUIState.Enabled;
45 }
46
47 public override TimelineModeGUIState EditModeButtonsState(WindowState state)
48 {
49 return TimelineModeGUIState.Disabled;
50 }
51 }
52}