UnityEditor.AudioMixerSnapshotListView.CustomDrawElement C# (CSharp) Method

CustomDrawElement() public method

public CustomDrawElement ( Rect r, int index, bool isActive, bool isFocused ) : void
r UnityEngine.Rect
index int
isActive bool
isFocused bool
return void
        public void CustomDrawElement(Rect r, int index, bool isActive, bool isFocused)
        {
            Event current = Event.current;
            if (((current.type == EventType.MouseUp) && (current.button == 1)) && r.Contains(current.mousePosition))
            {
                SnapshotMenu.Show(r, this.m_Snapshots[index], this);
                current.Use();
            }
            bool isSelected = (index == this.m_ReorderableListWithRenameAndScrollView.list.index) && !this.m_ReorderableListWithRenameAndScrollView.IsRenamingIndex(index);
            r.width -= 19f;
            this.m_ReorderableListWithRenameAndScrollView.DrawElementText(r, index, isActive, isSelected, isFocused);
            if (this.m_Controller.startSnapshot == this.m_Snapshots[index])
            {
                r.x = (r.xMax + 5f) + 5f;
                r.y += (r.height - 14f) / 2f;
                float num = 14f;
                r.height = num;
                r.width = num;
                GUI.Label(r, s_Styles.starIcon, GUIStyle.none);
            }
        }