9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
28 lines
743 B
C#
28 lines
743 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.PlasticSCM.Editor.UI
|
|
{
|
|
internal static class DrawUserIcon
|
|
{
|
|
static internal void ForPendingChangesTab(string commentText)
|
|
{
|
|
Rect rect = BuildUserIconAreaRect(commentText, 35f);
|
|
|
|
GUI.DrawTexture(rect, Images.GetEmptyGravatar());
|
|
}
|
|
|
|
static Rect BuildUserIconAreaRect(string commentText, float sizeOfImage)
|
|
{
|
|
GUIStyle commentTextAreaStyle = UnityStyles.PendingChangesTab.CommentTextArea;
|
|
|
|
Rect result = GUILayoutUtility.GetRect(sizeOfImage, sizeOfImage); // Needs to be a square
|
|
result.x = commentTextAreaStyle.margin.left;
|
|
|
|
return result;
|
|
}
|
|
|
|
|
|
}
|
|
}
|