scripts
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Experimental.UIElements
|
||||
{
|
||||
// Token: 0x02000322 RID: 802
|
||||
internal class IMGroup : IMContainer
|
||||
{
|
||||
// Token: 0x0600329B RID: 12955 RVA: 0x0004C87C File Offset: 0x0004AA7C
|
||||
public override bool OnGUI(Event evt)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(base.text) || base.style != GUIStyle.none)
|
||||
{
|
||||
EventType type = evt.type;
|
||||
if (type != EventType.Repaint)
|
||||
{
|
||||
if (base.position.Contains(evt.mousePosition))
|
||||
{
|
||||
GUIUtility.mouseUsed = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.DoRepaint(new StylePainter(evt.mousePosition));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Token: 0x0600329C RID: 12956 RVA: 0x0004C904 File Offset: 0x0004AB04
|
||||
public override void GenerateControlID()
|
||||
{
|
||||
base.id = GUIUtility.GetControlID("IMGroup".GetHashCode(), FocusType.Passive);
|
||||
}
|
||||
|
||||
// Token: 0x0600329D RID: 12957 RVA: 0x0004C920 File Offset: 0x0004AB20
|
||||
internal override void DoRepaint(IStylePainter args)
|
||||
{
|
||||
base.style.Draw(base.position, GUIContent.Temp(base.text), base.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user