Firstborn/Library/PackageCache/com.unity.collab-proxy@1.17.7/Editor/PlasticSCM/UI/DrawActionToolbar.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

29 lines
753 B
C#

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();
}
}
}