34 lines
852 B
C#
34 lines
852 B
C#
using System;
|
|
|
|
namespace UnityEngine.Experimental.UIElements
|
|
{
|
|
// Token: 0x02000324 RID: 804
|
|
internal class IMLabel : IMElement
|
|
{
|
|
// Token: 0x060032AA RID: 12970 RVA: 0x0004CD50 File Offset: 0x0004AF50
|
|
public void ShowTooltip(Vector2 tooltipPos)
|
|
{
|
|
if (!string.IsNullOrEmpty(base.tooltip))
|
|
{
|
|
if (base.position.Contains(tooltipPos))
|
|
{
|
|
GUIStyle.SetMouseTooltip(base.tooltip, base.position);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x060032AB RID: 12971 RVA: 0x0004CD98 File Offset: 0x0004AF98
|
|
protected override int DoGenerateControlID()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x060032AC RID: 12972 RVA: 0x0004CDB0 File Offset: 0x0004AFB0
|
|
internal override void DoRepaint(IStylePainter args)
|
|
{
|
|
base.style.Draw(base.position, GUIContent.Temp(base.text), false, false, false, false);
|
|
this.ShowTooltip(args.mousePosition);
|
|
}
|
|
}
|
|
}
|