private void DoLabelForTopMostCurve(Rect rect)
{
int num;
if ((this.m_CurveEditor.IsDraggingCurveOrRegion() || (this.m_CurveEditor.selectedCurves.Count <= 1)) && this.m_CurveEditor.GetTopMostCurveID(out num))
{
for (int i = 0; i < this.m_AddedCurves.Count; i++)
{
if ((this.m_AddedCurves[i].m_MaxId == num) || (this.m_AddedCurves[i].m_MinId == num))
{
s_Styles.yAxisHeader.normal.textColor = this.m_AddedCurves[i].m_Color;
GUI.Label(rect, this.m_AddedCurves[i].m_DisplayName, s_Styles.yAxisHeader);
break;
}
}
}
}