public bool OnCurveAreaMouseDown(int button, Rect drawRect, Rect curveRanges)
{
if (button == 0)
{
this.ToggleCurveInEditor();
return true;
}
if (button == 1)
{
SerializedProperty minCurve = this.GetMinCurve();
AnimationCurveContextMenu.Show(drawRect, (this.maxCurve == null) ? null : this.maxCurve.Copy(), (minCurve == null) ? null : minCurve.Copy(), (this.scalar == null) ? null : this.scalar.Copy(), curveRanges, this.m_Module.GetParticleSystemCurveEditor());
return true;
}
return false;
}