コード例 #1
0
        private void TodoPriority(ref Todo todo)
        {
            GUI.color = todo.priority.color;
            int priorityIndex = EditorGUILayout.Popup(todo.priority.index, _config.GetPriorityNames());

            // Switch if modified
            if (priorityIndex != todo.priority.index)
            {
                todo.priority = _config.GetPriorityByIndex(priorityIndex);
            }
            GUI.color = Color.white;
        }