private void CommitMessageGUI() { EditorGUIUtility.AddCursorRect(rect, MouseCursor.ResizeVertical); rect = GUIControls.DragButton(rect, GUIContent.none, null); rect.y = position.height - rect.y; rect.x = 0.0f; rect.width = position.width; commitMessageHeight = rect.y = Mathf.Clamp(rect.y, minimumControlHeight, position.height - minimumControlHeight); GUILayout.BeginArea(new Rect(0, 0, position.width, rect.y)); vcMultiColumnAssetList.DrawGUI(); GUILayout.EndArea(); GUILayout.BeginArea(new Rect(0, rect.y, position.width, position.height - rect.y)); DrawButtons(); GUILayout.EndArea(); }
private void OnGUI() { HandleInput(); EditorGUILayout.BeginVertical(); DrawToolbar(); EditorGUIUtility.AddCursorRect(rect, MouseCursor.ResizeVertical); rect = GUIControls.DragButton(rect, GUIContent.none, null); rect.x = 0.0f; statusHeight = rect.y = Mathf.Clamp(rect.y, toolbarHeight, position.height - inStatusHeight); GUILayout.BeginArea(new Rect(0, toolbarHeight, position.width, rect.y - toolbarHeight)); vcMultiColumnAssetList.DrawGUI(); GUILayout.EndArea(); GUILayout.BeginArea(new Rect(0, rect.y, position.width, position.height - rect.y)); DrawStatus(); GUILayout.EndArea(); EditorGUILayout.EndVertical(); }
private void OnGUI() { if (VCSettings.strHiddenFilePaths != m_strHiddenOld) { vcMultiColumnAssetList.RefreshGUIFilter(); m_strHiddenOld = VCSettings.strHiddenFilePaths; } HandleInput(); EditorGUILayout.BeginVertical(); DrawInfo(); DrawToolbar(); EditorGUIUtility.AddCursorRect(rect, MouseCursor.ResizeVertical); rect = GUIControls.DragButton(rect, GUIContent.none, null); rect.x = 0.0f; //Stella rect.width = position.width; statusHeight = rect.y = Mathf.Clamp(rect.y, toolbarHeight + EditorGUIUtility.singleLineHeight, position.height - inStatusHeight); Rect rectList = new Rect(0, toolbarHeight + EditorGUIUtility.singleLineHeight + 5f, position.width, rect.y - toolbarHeight - EditorGUIUtility.singleLineHeight); GUILayout.BeginArea(rectList); vcMultiColumnAssetList.DrawGUI(); GUILayout.EndArea(); DrawStatus(new Rect(0, (rect.y + 6), position.width, position.height - (rect.y + 6))); EditorGUILayout.EndVertical(); }