private Rect DrawLayoutEmptyList(IReorderableListAdaptor adaptor, DrawEmpty drawEmpty)
{
Rect position = EditorGUILayout.BeginVertical(ContainerStyle);
{
if (drawEmpty != null)
drawEmpty();
else
Debug.LogError("Unexpected call to 'DrawLayoutEmptyList'");
s_CurrentListStack.Push(new ListInfo(_controlID, position));
try {
adaptor.BeginGUI();
_insertionIndex = 0;
_insertionPosition = position.y + 2;
HandleDropInsertion(position, adaptor);
adaptor.EndGUI();
}
finally {
s_CurrentListStack.Pop();
}
}
EditorGUILayout.EndVertical();
// Allow room for footer buttons?
if (HasFooterButtons)
GUILayoutUtility.GetRect(0, FooterButtonStyle.fixedHeight - 1);
return position;
}