using System; using System.Collections; using System.Collections.Generic; using UnityEngine.Scripting; namespace UnityEngine { // Token: 0x02000273 RID: 627 [ExecuteInEditMode] [RequiredByNativeCode] [Serializable] public sealed class GUISkin : ScriptableObject { // Token: 0x06002AA6 RID: 10918 RVA: 0x000380C8 File Offset: 0x000362C8 public GUISkin() { this.m_CustomStyles = new GUIStyle[1]; } // Token: 0x06002AA7 RID: 10919 RVA: 0x000380F0 File Offset: 0x000362F0 internal void OnEnable() { this.Apply(); } // Token: 0x06002AA8 RID: 10920 RVA: 0x000380FC File Offset: 0x000362FC internal static void CleanupRoots() { GUISkin.current = null; GUISkin.ms_Error = null; } // Token: 0x170009C5 RID: 2501 // (get) Token: 0x06002AA9 RID: 10921 RVA: 0x0003810C File Offset: 0x0003630C // (set) Token: 0x06002AAA RID: 10922 RVA: 0x00038128 File Offset: 0x00036328 public Font font { get { return this.m_Font; } set { this.m_Font = value; if (GUISkin.current == this) { GUIStyle.SetDefaultFont(this.m_Font); } this.Apply(); } } // Token: 0x170009C6 RID: 2502 // (get) Token: 0x06002AAB RID: 10923 RVA: 0x00038154 File Offset: 0x00036354 // (set) Token: 0x06002AAC RID: 10924 RVA: 0x00038170 File Offset: 0x00036370 public GUIStyle box { get { return this.m_box; } set { this.m_box = value; this.Apply(); } } // Token: 0x170009C7 RID: 2503 // (get) Token: 0x06002AAD RID: 10925 RVA: 0x00038180 File Offset: 0x00036380 // (set) Token: 0x06002AAE RID: 10926 RVA: 0x0003819C File Offset: 0x0003639C public GUIStyle label { get { return this.m_label; } set { this.m_label = value; this.Apply(); } } // Token: 0x170009C8 RID: 2504 // (get) Token: 0x06002AAF RID: 10927 RVA: 0x000381AC File Offset: 0x000363AC // (set) Token: 0x06002AB0 RID: 10928 RVA: 0x000381C8 File Offset: 0x000363C8 public GUIStyle textField { get { return this.m_textField; } set { this.m_textField = value; this.Apply(); } } // Token: 0x170009C9 RID: 2505 // (get) Token: 0x06002AB1 RID: 10929 RVA: 0x000381D8 File Offset: 0x000363D8 // (set) Token: 0x06002AB2 RID: 10930 RVA: 0x000381F4 File Offset: 0x000363F4 public GUIStyle textArea { get { return this.m_textArea; } set { this.m_textArea = value; this.Apply(); } } // Token: 0x170009CA RID: 2506 // (get) Token: 0x06002AB3 RID: 10931 RVA: 0x00038204 File Offset: 0x00036404 // (set) Token: 0x06002AB4 RID: 10932 RVA: 0x00038220 File Offset: 0x00036420 public GUIStyle button { get { return this.m_button; } set { this.m_button = value; this.Apply(); } } // Token: 0x170009CB RID: 2507 // (get) Token: 0x06002AB5 RID: 10933 RVA: 0x00038230 File Offset: 0x00036430 // (set) Token: 0x06002AB6 RID: 10934 RVA: 0x0003824C File Offset: 0x0003644C public GUIStyle toggle { get { return this.m_toggle; } set { this.m_toggle = value; this.Apply(); } } // Token: 0x170009CC RID: 2508 // (get) Token: 0x06002AB7 RID: 10935 RVA: 0x0003825C File Offset: 0x0003645C // (set) Token: 0x06002AB8 RID: 10936 RVA: 0x00038278 File Offset: 0x00036478 public GUIStyle window { get { return this.m_window; } set { this.m_window = value; this.Apply(); } } // Token: 0x170009CD RID: 2509 // (get) Token: 0x06002AB9 RID: 10937 RVA: 0x00038288 File Offset: 0x00036488 // (set) Token: 0x06002ABA RID: 10938 RVA: 0x000382A4 File Offset: 0x000364A4 public GUIStyle horizontalSlider { get { return this.m_horizontalSlider; } set { this.m_horizontalSlider = value; this.Apply(); } } // Token: 0x170009CE RID: 2510 // (get) Token: 0x06002ABB RID: 10939 RVA: 0x000382B4 File Offset: 0x000364B4 // (set) Token: 0x06002ABC RID: 10940 RVA: 0x000382D0 File Offset: 0x000364D0 public GUIStyle horizontalSliderThumb { get { return this.m_horizontalSliderThumb; } set { this.m_horizontalSliderThumb = value; this.Apply(); } } // Token: 0x170009CF RID: 2511 // (get) Token: 0x06002ABD RID: 10941 RVA: 0x000382E0 File Offset: 0x000364E0 // (set) Token: 0x06002ABE RID: 10942 RVA: 0x000382FC File Offset: 0x000364FC public GUIStyle verticalSlider { get { return this.m_verticalSlider; } set { this.m_verticalSlider = value; this.Apply(); } } // Token: 0x170009D0 RID: 2512 // (get) Token: 0x06002ABF RID: 10943 RVA: 0x0003830C File Offset: 0x0003650C // (set) Token: 0x06002AC0 RID: 10944 RVA: 0x00038328 File Offset: 0x00036528 public GUIStyle verticalSliderThumb { get { return this.m_verticalSliderThumb; } set { this.m_verticalSliderThumb = value; this.Apply(); } } // Token: 0x170009D1 RID: 2513 // (get) Token: 0x06002AC1 RID: 10945 RVA: 0x00038338 File Offset: 0x00036538 // (set) Token: 0x06002AC2 RID: 10946 RVA: 0x00038354 File Offset: 0x00036554 public GUIStyle horizontalScrollbar { get { return this.m_horizontalScrollbar; } set { this.m_horizontalScrollbar = value; this.Apply(); } } // Token: 0x170009D2 RID: 2514 // (get) Token: 0x06002AC3 RID: 10947 RVA: 0x00038364 File Offset: 0x00036564 // (set) Token: 0x06002AC4 RID: 10948 RVA: 0x00038380 File Offset: 0x00036580 public GUIStyle horizontalScrollbarThumb { get { return this.m_horizontalScrollbarThumb; } set { this.m_horizontalScrollbarThumb = value; this.Apply(); } } // Token: 0x170009D3 RID: 2515 // (get) Token: 0x06002AC5 RID: 10949 RVA: 0x00038390 File Offset: 0x00036590 // (set) Token: 0x06002AC6 RID: 10950 RVA: 0x000383AC File Offset: 0x000365AC public GUIStyle horizontalScrollbarLeftButton { get { return this.m_horizontalScrollbarLeftButton; } set { this.m_horizontalScrollbarLeftButton = value; this.Apply(); } } // Token: 0x170009D4 RID: 2516 // (get) Token: 0x06002AC7 RID: 10951 RVA: 0x000383BC File Offset: 0x000365BC // (set) Token: 0x06002AC8 RID: 10952 RVA: 0x000383D8 File Offset: 0x000365D8 public GUIStyle horizontalScrollbarRightButton { get { return this.m_horizontalScrollbarRightButton; } set { this.m_horizontalScrollbarRightButton = value; this.Apply(); } } // Token: 0x170009D5 RID: 2517 // (get) Token: 0x06002AC9 RID: 10953 RVA: 0x000383E8 File Offset: 0x000365E8 // (set) Token: 0x06002ACA RID: 10954 RVA: 0x00038404 File Offset: 0x00036604 public GUIStyle verticalScrollbar { get { return this.m_verticalScrollbar; } set { this.m_verticalScrollbar = value; this.Apply(); } } // Token: 0x170009D6 RID: 2518 // (get) Token: 0x06002ACB RID: 10955 RVA: 0x00038414 File Offset: 0x00036614 // (set) Token: 0x06002ACC RID: 10956 RVA: 0x00038430 File Offset: 0x00036630 public GUIStyle verticalScrollbarThumb { get { return this.m_verticalScrollbarThumb; } set { this.m_verticalScrollbarThumb = value; this.Apply(); } } // Token: 0x170009D7 RID: 2519 // (get) Token: 0x06002ACD RID: 10957 RVA: 0x00038440 File Offset: 0x00036640 // (set) Token: 0x06002ACE RID: 10958 RVA: 0x0003845C File Offset: 0x0003665C public GUIStyle verticalScrollbarUpButton { get { return this.m_verticalScrollbarUpButton; } set { this.m_verticalScrollbarUpButton = value; this.Apply(); } } // Token: 0x170009D8 RID: 2520 // (get) Token: 0x06002ACF RID: 10959 RVA: 0x0003846C File Offset: 0x0003666C // (set) Token: 0x06002AD0 RID: 10960 RVA: 0x00038488 File Offset: 0x00036688 public GUIStyle verticalScrollbarDownButton { get { return this.m_verticalScrollbarDownButton; } set { this.m_verticalScrollbarDownButton = value; this.Apply(); } } // Token: 0x170009D9 RID: 2521 // (get) Token: 0x06002AD1 RID: 10961 RVA: 0x00038498 File Offset: 0x00036698 // (set) Token: 0x06002AD2 RID: 10962 RVA: 0x000384B4 File Offset: 0x000366B4 public GUIStyle scrollView { get { return this.m_ScrollView; } set { this.m_ScrollView = value; this.Apply(); } } // Token: 0x170009DA RID: 2522 // (get) Token: 0x06002AD3 RID: 10963 RVA: 0x000384C4 File Offset: 0x000366C4 // (set) Token: 0x06002AD4 RID: 10964 RVA: 0x000384E0 File Offset: 0x000366E0 public GUIStyle[] customStyles { get { return this.m_CustomStyles; } set { this.m_CustomStyles = value; this.Apply(); } } // Token: 0x170009DB RID: 2523 // (get) Token: 0x06002AD5 RID: 10965 RVA: 0x000384F0 File Offset: 0x000366F0 public GUISettings settings { get { return this.m_Settings; } } // Token: 0x170009DC RID: 2524 // (get) Token: 0x06002AD6 RID: 10966 RVA: 0x0003850C File Offset: 0x0003670C internal static GUIStyle error { get { if (GUISkin.ms_Error == null) { GUISkin.ms_Error = new GUIStyle(); } return GUISkin.ms_Error; } } // Token: 0x06002AD7 RID: 10967 RVA: 0x0003853C File Offset: 0x0003673C internal void Apply() { if (this.m_CustomStyles == null) { Debug.Log("custom styles is null"); } this.BuildStyleCache(); } // Token: 0x06002AD8 RID: 10968 RVA: 0x0003855C File Offset: 0x0003675C private void BuildStyleCache() { if (this.m_box == null) { this.m_box = new GUIStyle(); } if (this.m_button == null) { this.m_button = new GUIStyle(); } if (this.m_toggle == null) { this.m_toggle = new GUIStyle(); } if (this.m_label == null) { this.m_label = new GUIStyle(); } if (this.m_window == null) { this.m_window = new GUIStyle(); } if (this.m_textField == null) { this.m_textField = new GUIStyle(); } if (this.m_textArea == null) { this.m_textArea = new GUIStyle(); } if (this.m_horizontalSlider == null) { this.m_horizontalSlider = new GUIStyle(); } if (this.m_horizontalSliderThumb == null) { this.m_horizontalSliderThumb = new GUIStyle(); } if (this.m_verticalSlider == null) { this.m_verticalSlider = new GUIStyle(); } if (this.m_verticalSliderThumb == null) { this.m_verticalSliderThumb = new GUIStyle(); } if (this.m_horizontalScrollbar == null) { this.m_horizontalScrollbar = new GUIStyle(); } if (this.m_horizontalScrollbarThumb == null) { this.m_horizontalScrollbarThumb = new GUIStyle(); } if (this.m_horizontalScrollbarLeftButton == null) { this.m_horizontalScrollbarLeftButton = new GUIStyle(); } if (this.m_horizontalScrollbarRightButton == null) { this.m_horizontalScrollbarRightButton = new GUIStyle(); } if (this.m_verticalScrollbar == null) { this.m_verticalScrollbar = new GUIStyle(); } if (this.m_verticalScrollbarThumb == null) { this.m_verticalScrollbarThumb = new GUIStyle(); } if (this.m_verticalScrollbarUpButton == null) { this.m_verticalScrollbarUpButton = new GUIStyle(); } if (this.m_verticalScrollbarDownButton == null) { this.m_verticalScrollbarDownButton = new GUIStyle(); } if (this.m_ScrollView == null) { this.m_ScrollView = new GUIStyle(); } this.m_Styles = new Dictionary(StringComparer.OrdinalIgnoreCase); this.m_Styles["box"] = this.m_box; this.m_box.name = "box"; this.m_Styles["button"] = this.m_button; this.m_button.name = "button"; this.m_Styles["toggle"] = this.m_toggle; this.m_toggle.name = "toggle"; this.m_Styles["label"] = this.m_label; this.m_label.name = "label"; this.m_Styles["window"] = this.m_window; this.m_window.name = "window"; this.m_Styles["textfield"] = this.m_textField; this.m_textField.name = "textfield"; this.m_Styles["textarea"] = this.m_textArea; this.m_textArea.name = "textarea"; this.m_Styles["horizontalslider"] = this.m_horizontalSlider; this.m_horizontalSlider.name = "horizontalslider"; this.m_Styles["horizontalsliderthumb"] = this.m_horizontalSliderThumb; this.m_horizontalSliderThumb.name = "horizontalsliderthumb"; this.m_Styles["verticalslider"] = this.m_verticalSlider; this.m_verticalSlider.name = "verticalslider"; this.m_Styles["verticalsliderthumb"] = this.m_verticalSliderThumb; this.m_verticalSliderThumb.name = "verticalsliderthumb"; this.m_Styles["horizontalscrollbar"] = this.m_horizontalScrollbar; this.m_horizontalScrollbar.name = "horizontalscrollbar"; this.m_Styles["horizontalscrollbarthumb"] = this.m_horizontalScrollbarThumb; this.m_horizontalScrollbarThumb.name = "horizontalscrollbarthumb"; this.m_Styles["horizontalscrollbarleftbutton"] = this.m_horizontalScrollbarLeftButton; this.m_horizontalScrollbarLeftButton.name = "horizontalscrollbarleftbutton"; this.m_Styles["horizontalscrollbarrightbutton"] = this.m_horizontalScrollbarRightButton; this.m_horizontalScrollbarRightButton.name = "horizontalscrollbarrightbutton"; this.m_Styles["verticalscrollbar"] = this.m_verticalScrollbar; this.m_verticalScrollbar.name = "verticalscrollbar"; this.m_Styles["verticalscrollbarthumb"] = this.m_verticalScrollbarThumb; this.m_verticalScrollbarThumb.name = "verticalscrollbarthumb"; this.m_Styles["verticalscrollbarupbutton"] = this.m_verticalScrollbarUpButton; this.m_verticalScrollbarUpButton.name = "verticalscrollbarupbutton"; this.m_Styles["verticalscrollbardownbutton"] = this.m_verticalScrollbarDownButton; this.m_verticalScrollbarDownButton.name = "verticalscrollbardownbutton"; this.m_Styles["scrollview"] = this.m_ScrollView; this.m_ScrollView.name = "scrollview"; if (this.m_CustomStyles != null) { for (int i = 0; i < this.m_CustomStyles.Length; i++) { if (this.m_CustomStyles[i] != null) { this.m_Styles[this.m_CustomStyles[i].name] = this.m_CustomStyles[i]; } } } GUISkin.error.stretchHeight = true; GUISkin.error.normal.textColor = Color.red; } // Token: 0x06002AD9 RID: 10969 RVA: 0x00038AA4 File Offset: 0x00036CA4 public GUIStyle GetStyle(string styleName) { GUIStyle guistyle = this.FindStyle(styleName); GUIStyle guistyle2; if (guistyle != null) { guistyle2 = guistyle; } else { Debug.LogWarning(string.Concat(new object[] { "Unable to find style '", styleName, "' in skin '", base.name, "' ", Event.current.type })); guistyle2 = GUISkin.error; } return guistyle2; } // Token: 0x06002ADA RID: 10970 RVA: 0x00038B1C File Offset: 0x00036D1C public GUIStyle FindStyle(string styleName) { GUIStyle guistyle; if (this == null) { Debug.LogError("GUISkin is NULL"); guistyle = null; } else { if (this.m_Styles == null) { this.BuildStyleCache(); } GUIStyle guistyle2; if (this.m_Styles.TryGetValue(styleName, out guistyle2)) { guistyle = guistyle2; } else { guistyle = null; } } return guistyle; } // Token: 0x06002ADB RID: 10971 RVA: 0x00038B7C File Offset: 0x00036D7C internal void MakeCurrent() { GUISkin.current = this; GUIStyle.SetDefaultFont(this.font); if (GUISkin.m_SkinChanged != null) { GUISkin.m_SkinChanged(); } } // Token: 0x06002ADC RID: 10972 RVA: 0x00038BA4 File Offset: 0x00036DA4 public IEnumerator GetEnumerator() { if (this.m_Styles == null) { this.BuildStyleCache(); } return this.m_Styles.Values.GetEnumerator(); } // Token: 0x040007A5 RID: 1957 [SerializeField] private Font m_Font; // Token: 0x040007A6 RID: 1958 [SerializeField] private GUIStyle m_box; // Token: 0x040007A7 RID: 1959 [SerializeField] private GUIStyle m_button; // Token: 0x040007A8 RID: 1960 [SerializeField] private GUIStyle m_toggle; // Token: 0x040007A9 RID: 1961 [SerializeField] private GUIStyle m_label; // Token: 0x040007AA RID: 1962 [SerializeField] private GUIStyle m_textField; // Token: 0x040007AB RID: 1963 [SerializeField] private GUIStyle m_textArea; // Token: 0x040007AC RID: 1964 [SerializeField] private GUIStyle m_window; // Token: 0x040007AD RID: 1965 [SerializeField] private GUIStyle m_horizontalSlider; // Token: 0x040007AE RID: 1966 [SerializeField] private GUIStyle m_horizontalSliderThumb; // Token: 0x040007AF RID: 1967 [SerializeField] private GUIStyle m_verticalSlider; // Token: 0x040007B0 RID: 1968 [SerializeField] private GUIStyle m_verticalSliderThumb; // Token: 0x040007B1 RID: 1969 [SerializeField] private GUIStyle m_horizontalScrollbar; // Token: 0x040007B2 RID: 1970 [SerializeField] private GUIStyle m_horizontalScrollbarThumb; // Token: 0x040007B3 RID: 1971 [SerializeField] private GUIStyle m_horizontalScrollbarLeftButton; // Token: 0x040007B4 RID: 1972 [SerializeField] private GUIStyle m_horizontalScrollbarRightButton; // Token: 0x040007B5 RID: 1973 [SerializeField] private GUIStyle m_verticalScrollbar; // Token: 0x040007B6 RID: 1974 [SerializeField] private GUIStyle m_verticalScrollbarThumb; // Token: 0x040007B7 RID: 1975 [SerializeField] private GUIStyle m_verticalScrollbarUpButton; // Token: 0x040007B8 RID: 1976 [SerializeField] private GUIStyle m_verticalScrollbarDownButton; // Token: 0x040007B9 RID: 1977 [SerializeField] private GUIStyle m_ScrollView; // Token: 0x040007BA RID: 1978 [SerializeField] internal GUIStyle[] m_CustomStyles; // Token: 0x040007BB RID: 1979 [SerializeField] private GUISettings m_Settings = new GUISettings(); // Token: 0x040007BC RID: 1980 internal static GUIStyle ms_Error; // Token: 0x040007BD RID: 1981 private Dictionary m_Styles = null; // Token: 0x040007BE RID: 1982 internal static GUISkin.SkinChangedDelegate m_SkinChanged; // Token: 0x040007BF RID: 1983 internal static GUISkin current; // Token: 0x02000274 RID: 628 // (Invoke) Token: 0x06002ADE RID: 10974 internal delegate void SkinChangedDelegate(); } }