Created unity project
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.PlasticSCM.Editor.UI
|
||||
{
|
||||
internal static class DrawTextBlockWithEndLink
|
||||
{
|
||||
internal static void For(
|
||||
ExternalLink externalLink,
|
||||
string explanation,
|
||||
GUIStyle textBlockStyle)
|
||||
{
|
||||
GUILayout.Label(explanation, textBlockStyle);
|
||||
|
||||
GUIStyle linkStyle = new GUIStyle(UnityStyles.LinkLabel);
|
||||
linkStyle.fontSize = textBlockStyle.fontSize;
|
||||
linkStyle.stretchWidth = false;
|
||||
|
||||
if (GUILayout.Button(externalLink.Label, linkStyle))
|
||||
Application.OpenURL(externalLink.Url);
|
||||
|
||||
EditorGUIUtility.AddCursorRect(
|
||||
GUILayoutUtility.GetLastRect(), MouseCursor.Link);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user