22 lines
566 B
C#
22 lines
566 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.PlasticSCM.Editor.UI
|
|
{
|
|
internal static class DrawActionButton
|
|
{
|
|
internal static bool For(string buttonText)
|
|
{
|
|
GUIContent buttonContent = new GUIContent(buttonText);
|
|
|
|
GUIStyle buttonStyle = EditorStyles.miniButton;
|
|
|
|
Rect rt = GUILayoutUtility.GetRect(
|
|
buttonContent, buttonStyle,
|
|
GUILayout.MinWidth(UnityConstants.REGULAR_BUTTON_WIDTH));
|
|
|
|
return GUI.Button(rt, buttonText, buttonStyle);
|
|
}
|
|
}
|
|
}
|