Ejemplo n.º 1
0
 void DrawClipControls()
 {
     EditorGUILayout.Space();
     SwfEditorUtils.DoCenterHorizontalGUI(() => {
         if (GUILayout.Button(new GUIContent("<<", "to begin frame")))
         {
             AllClipsForeachWithUndo(p => p.ToBeginFrame());
         }
         if (GUILayout.Button(new GUIContent("<", "to prev frame")))
         {
             AllClipsForeachWithUndo(p => p.ToPrevFrame());
         }
         GUILayout.Label(string.Format(
                             "{0}/{1}",
                             GetClipsCurrentFrameForView(), GetClipsFrameCountForView()));
         if (GUILayout.Button(new GUIContent(">", "to next frame")))
         {
             AllClipsForeachWithUndo(p => p.ToNextFrame());
         }
         if (GUILayout.Button(new GUIContent(">>", "to end frame")))
         {
             AllClipsForeachWithUndo(p => p.ToEndFrame());
         }
     });
 }