private void FrameNavigationControls()
{
if (this.m_CurrentFrame > ProfilerDriver.lastFrameIndex)
{
this.SetCurrentFrameDontPause(ProfilerDriver.lastFrameIndex);
}
GUILayout.Label(ms_Styles.frame, EditorStyles.miniLabel, new GUILayoutOption[0]);
GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.Width(100f) };
GUILayout.Label(" " + this.PickFrameLabel(), EditorStyles.miniLabel, options);
GUI.enabled = ProfilerDriver.GetPreviousFrameIndex(this.m_CurrentFrame) != -1;
if (GUILayout.Button(ms_Styles.prevFrame, EditorStyles.toolbarButton, new GUILayoutOption[0]))
{
this.PrevFrame();
}
GUI.enabled = ProfilerDriver.GetNextFrameIndex(this.m_CurrentFrame) != -1;
if (GUILayout.Button(ms_Styles.nextFrame, EditorStyles.toolbarButton, new GUILayoutOption[0]))
{
this.NextFrame();
}
GUI.enabled = true;
GUILayout.Space(10f);
if (GUILayout.Button(ms_Styles.currentFrame, EditorStyles.toolbarButton, new GUILayoutOption[0]))
{
this.SetCurrentFrame(-1);
this.m_LastFrameFromTick = ProfilerDriver.lastFrameIndex;
}
}