public static void DrawPlayhead(float x, float yMin, float yMax, float thickness, float alpha)
{
if (Event.current.type == EventType.Repaint)
{
TimeArea.InitStyles();
float num = thickness * 0.5f;
Color color = TimeArea.styles.playhead.normal.textColor.AlphaMultiplied(alpha);
if (thickness > 1f)
{
Rect rect = Rect.MinMaxRect(x - num, yMin, x + num, yMax);
EditorGUI.DrawRect(rect, color);
}
else
{
TimeArea.DrawVerticalLine(x, yMin, yMax, color);
}
}
}