DoListView() public static method

public static DoListView ( Rect pos, ListViewState state, int colWidths, string dragTitle ) : ListViewShared.ListViewElementsEnumerator
pos UnityEngine.Rect
state ListViewState
colWidths int
dragTitle string
return ListViewShared.ListViewElementsEnumerator
Exemplo n.º 1
0
 public static ListViewShared.ListViewElementsEnumerator ListView(ListViewState state, ListViewOptions lvOptions, int[] colWidths, string dragTitle, GUIStyle style, params GUILayoutOption[] options)
 {
     GUILayout.BeginHorizontal(style, new GUILayoutOption[0]);
     state.scrollPos = EditorGUILayout.BeginScrollView(state.scrollPos, options);
     ListViewGUI.ilvState.beganHorizontal = true;
     state.draggedFrom = -1;
     state.draggedTo   = -1;
     state.fileNames   = null;
     if ((lvOptions & ListViewOptions.wantsReordering) != (ListViewOptions)0)
     {
         ListViewGUI.ilvState.wantsReordering = true;
     }
     if ((lvOptions & ListViewOptions.wantsExternalFiles) != (ListViewOptions)0)
     {
         ListViewGUI.ilvState.wantsExternalFiles = true;
     }
     if ((lvOptions & ListViewOptions.wantsToStartCustomDrag) != (ListViewOptions)0)
     {
         ListViewGUI.ilvState.wantsToStartCustomDrag = true;
     }
     if ((lvOptions & ListViewOptions.wantsToAcceptCustomDrag) != (ListViewOptions)0)
     {
         ListViewGUI.ilvState.wantsToAcceptCustomDrag = true;
     }
     return(ListViewGUI.DoListView(GUILayoutUtility.GetRect(1f, (float)(state.totalRows * state.rowHeight + 3)), state, colWidths, string.Empty));
 }
Exemplo n.º 2
0
 public static ListViewShared.ListViewElementsEnumerator ListView(Rect pos, ListViewState state)
 {
     return(ListViewGUI.DoListView(pos, state, null, string.Empty));
 }