220 lines
5.5 KiB
C#
220 lines
5.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x0200025E RID: 606
|
|
[Serializable]
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class GUIContent
|
|
{
|
|
// Token: 0x06002991 RID: 10641 RVA: 0x00032D68 File Offset: 0x00030F68
|
|
public GUIContent()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002992 RID: 10642 RVA: 0x00032D88 File Offset: 0x00030F88
|
|
public GUIContent(string text)
|
|
: this(text, null, string.Empty)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002993 RID: 10643 RVA: 0x00032D98 File Offset: 0x00030F98
|
|
public GUIContent(Texture image)
|
|
: this(string.Empty, image, string.Empty)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002994 RID: 10644 RVA: 0x00032DAC File Offset: 0x00030FAC
|
|
public GUIContent(string text, Texture image)
|
|
: this(text, image, string.Empty)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002995 RID: 10645 RVA: 0x00032DBC File Offset: 0x00030FBC
|
|
public GUIContent(string text, string tooltip)
|
|
: this(text, null, tooltip)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002996 RID: 10646 RVA: 0x00032DC8 File Offset: 0x00030FC8
|
|
public GUIContent(Texture image, string tooltip)
|
|
: this(string.Empty, image, tooltip)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002997 RID: 10647 RVA: 0x00032DD8 File Offset: 0x00030FD8
|
|
public GUIContent(string text, Texture image, string tooltip)
|
|
{
|
|
this.text = text;
|
|
this.image = image;
|
|
this.tooltip = tooltip;
|
|
}
|
|
|
|
// Token: 0x06002998 RID: 10648 RVA: 0x00032E0C File Offset: 0x0003100C
|
|
public GUIContent(GUIContent src)
|
|
{
|
|
this.text = src.m_Text;
|
|
this.image = src.m_Image;
|
|
this.tooltip = src.m_Tooltip;
|
|
}
|
|
|
|
// Token: 0x170009B4 RID: 2484
|
|
// (get) Token: 0x06002999 RID: 10649 RVA: 0x00032E5C File Offset: 0x0003105C
|
|
// (set) Token: 0x0600299A RID: 10650 RVA: 0x00032E78 File Offset: 0x00031078
|
|
public string text
|
|
{
|
|
get
|
|
{
|
|
return this.m_Text;
|
|
}
|
|
set
|
|
{
|
|
this.m_Text = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170009B5 RID: 2485
|
|
// (get) Token: 0x0600299B RID: 10651 RVA: 0x00032E84 File Offset: 0x00031084
|
|
// (set) Token: 0x0600299C RID: 10652 RVA: 0x00032EA0 File Offset: 0x000310A0
|
|
public Texture image
|
|
{
|
|
get
|
|
{
|
|
return this.m_Image;
|
|
}
|
|
set
|
|
{
|
|
this.m_Image = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170009B6 RID: 2486
|
|
// (get) Token: 0x0600299D RID: 10653 RVA: 0x00032EAC File Offset: 0x000310AC
|
|
// (set) Token: 0x0600299E RID: 10654 RVA: 0x00032EC8 File Offset: 0x000310C8
|
|
public string tooltip
|
|
{
|
|
get
|
|
{
|
|
return this.m_Tooltip;
|
|
}
|
|
set
|
|
{
|
|
this.m_Tooltip = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170009B7 RID: 2487
|
|
// (get) Token: 0x0600299F RID: 10655 RVA: 0x00032ED4 File Offset: 0x000310D4
|
|
internal int hash
|
|
{
|
|
get
|
|
{
|
|
int num = 0;
|
|
if (!string.IsNullOrEmpty(this.m_Text))
|
|
{
|
|
num = this.m_Text.GetHashCode() * 37;
|
|
}
|
|
return num;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060029A0 RID: 10656 RVA: 0x00032F0C File Offset: 0x0003110C
|
|
internal static GUIContent Temp(string t)
|
|
{
|
|
GUIContent.s_Text.m_Text = t;
|
|
GUIContent.s_Text.m_Tooltip = string.Empty;
|
|
return GUIContent.s_Text;
|
|
}
|
|
|
|
// Token: 0x060029A1 RID: 10657 RVA: 0x00032F40 File Offset: 0x00031140
|
|
internal static GUIContent Temp(string t, string tooltip)
|
|
{
|
|
GUIContent.s_Text.m_Text = t;
|
|
GUIContent.s_Text.m_Tooltip = tooltip;
|
|
return GUIContent.s_Text;
|
|
}
|
|
|
|
// Token: 0x060029A2 RID: 10658 RVA: 0x00032F70 File Offset: 0x00031170
|
|
internal static GUIContent Temp(Texture i)
|
|
{
|
|
GUIContent.s_Image.m_Image = i;
|
|
GUIContent.s_Image.m_Tooltip = string.Empty;
|
|
return GUIContent.s_Image;
|
|
}
|
|
|
|
// Token: 0x060029A3 RID: 10659 RVA: 0x00032FA4 File Offset: 0x000311A4
|
|
internal static GUIContent Temp(Texture i, string tooltip)
|
|
{
|
|
GUIContent.s_Image.m_Image = i;
|
|
GUIContent.s_Image.m_Tooltip = tooltip;
|
|
return GUIContent.s_Image;
|
|
}
|
|
|
|
// Token: 0x060029A4 RID: 10660 RVA: 0x00032FD4 File Offset: 0x000311D4
|
|
internal static GUIContent Temp(string t, Texture i)
|
|
{
|
|
GUIContent.s_TextImage.m_Text = t;
|
|
GUIContent.s_TextImage.m_Image = i;
|
|
return GUIContent.s_TextImage;
|
|
}
|
|
|
|
// Token: 0x060029A5 RID: 10661 RVA: 0x00033004 File Offset: 0x00031204
|
|
internal static void ClearStaticCache()
|
|
{
|
|
GUIContent.s_Text.m_Text = null;
|
|
GUIContent.s_Text.m_Tooltip = string.Empty;
|
|
GUIContent.s_Image.m_Image = null;
|
|
GUIContent.s_Image.m_Tooltip = string.Empty;
|
|
GUIContent.s_TextImage.m_Text = null;
|
|
GUIContent.s_TextImage.m_Image = null;
|
|
}
|
|
|
|
// Token: 0x060029A6 RID: 10662 RVA: 0x0003305C File Offset: 0x0003125C
|
|
internal static GUIContent[] Temp(string[] texts)
|
|
{
|
|
GUIContent[] array = new GUIContent[texts.Length];
|
|
for (int i = 0; i < texts.Length; i++)
|
|
{
|
|
array[i] = new GUIContent(texts[i]);
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x060029A7 RID: 10663 RVA: 0x0003309C File Offset: 0x0003129C
|
|
internal static GUIContent[] Temp(Texture[] images)
|
|
{
|
|
GUIContent[] array = new GUIContent[images.Length];
|
|
for (int i = 0; i < images.Length; i++)
|
|
{
|
|
array[i] = new GUIContent(images[i]);
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0400073D RID: 1853
|
|
[SerializeField]
|
|
private string m_Text = string.Empty;
|
|
|
|
// Token: 0x0400073E RID: 1854
|
|
[SerializeField]
|
|
private Texture m_Image;
|
|
|
|
// Token: 0x0400073F RID: 1855
|
|
[SerializeField]
|
|
private string m_Tooltip = string.Empty;
|
|
|
|
// Token: 0x04000740 RID: 1856
|
|
private static readonly GUIContent s_Text = new GUIContent();
|
|
|
|
// Token: 0x04000741 RID: 1857
|
|
private static readonly GUIContent s_Image = new GUIContent();
|
|
|
|
// Token: 0x04000742 RID: 1858
|
|
private static readonly GUIContent s_TextImage = new GUIContent();
|
|
|
|
// Token: 0x04000743 RID: 1859
|
|
public static GUIContent none = new GUIContent("");
|
|
}
|
|
}
|