internal static void Show(Rect position, SerializedProperty property, SerializedProperty property2, SerializedProperty scalar, Rect curveRanges, ParticleSystemCurveEditor curveEditor)
{
GUIContent content = new GUIContent("Copy");
GUIContent content2 = new GUIContent("Paste");
GenericMenu menu = new GenericMenu();
bool flag = (property != null) && (property2 != null);
bool flag2 = (flag && ParticleSystemClipboard.HasDoubleAnimationCurve()) || (!flag && ParticleSystemClipboard.HasSingleAnimationCurve());
AnimationCurveContextMenu menu2 = new AnimationCurveContextMenu(property, property2, scalar, curveRanges, curveEditor);
menu.AddItem(content, false, new GenericMenu.MenuFunction(menu2.Copy));
if (flag2)
{
menu.AddItem(content2, false, new GenericMenu.MenuFunction(menu2.Paste));
}
else
{
menu.AddDisabledItem(content2);
}
menu.DropDown(position);
}
}