You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
753 B
29 lines
753 B
using UnityEditor; |
|
using UnityEngine; |
|
|
|
namespace Unity.PlasticSCM.Editor.UI |
|
{ |
|
internal static class DrawActionToolbar |
|
{ |
|
internal static void Begin(EditorWindow parentWindow) |
|
{ |
|
Rect result = GUILayoutUtility.GetRect(parentWindow.position.width, 1); |
|
EditorGUI.DrawRect(result, UnityStyles.Colors.BarBorder); |
|
|
|
EditorGUILayout.BeginVertical(UnityStyles.ActionToolbar); |
|
GUILayout.FlexibleSpace(); |
|
|
|
EditorGUILayout.BeginHorizontal(); |
|
} |
|
|
|
internal static void End() |
|
{ |
|
GUILayout.FlexibleSpace(); |
|
|
|
EditorGUILayout.EndHorizontal(); |
|
|
|
GUILayout.FlexibleSpace(); |
|
EditorGUILayout.EndVertical(); |
|
} |
|
} |
|
} |