public void Draw(Rect window)
{
EditorGUI.indentLevel++;
if (this.m_Event != null)
{
AnimationWindowEventInspector.OnEditAnimationEvent(this.m_Event);
}
else
{
AnimationWindowEventInspector.OnDisabledAnimationEvent();
}
EditorGUI.indentLevel--;
if ((this.m_InstantTooltipText != null) && (this.m_InstantTooltipText != ""))
{
GUIStyle style = "AnimationEventTooltip";
Vector2 vector = style.CalcSize(new GUIContent(this.m_InstantTooltipText));
Rect position = new Rect(window.x + this.m_InstantTooltipPoint.x, window.y + this.m_InstantTooltipPoint.y, vector.x, vector.y);
if (position.xMax > window.width)
{
position.x = window.width - position.width;
}
GUI.Label(position, this.m_InstantTooltipText, style);
}
}