示例#1
0
 private void OnGUI()
 {
     inst = this;
     if (TimelineWindow.inst)
     {
         var state = TimelineWindow.inst.state;
         if (state != null && state.timeline)
         {
             GUILayout.BeginVertical();
             EditorGUILayout.LabelField(state.Name);
             EditorGUILayout.LabelField("frame rate:", state.frameRate.ToString());
             EditorGUILayout.LabelField("play status:", state.playing.ToString());
             state.mode = (WrapMode)EditorGUILayout.EnumPopup("wrapmode:", state.mode);
             scroll     = EditorGUILayout.BeginVerticalScrollView(scroll);
             GUIMark();
             GUITracks();
             EditorGUILayout.EndScrollView();
             GUILayout.EndVertical();
         }
     }
     else
     {
         EditorGUILayout.LabelField("no timeline select");
     }
 }