Example #1
0
 // Token: 0x06000418 RID: 1048 RVA: 0x0001FFB0 File Offset: 0x0001E1B0
 public static void SetIcon(GameObject obj, IconManager.Icon icon)
 {
     if (IconManager.guicontent_1 == null)
     {
         IconManager.guicontent_1 = IconManager.smethod_1("sv_icon_dot", "_pix16_gizmo", 0, 16);
     }
     if (icon == IconManager.Icon.None)
     {
         IconManager.RemoveIcon(obj);
     }
     else
     {
         IconManager.smethod_0(obj, IconManager.guicontent_1[(int)icon].image as Texture2D);
     }
 }
Example #2
0
 // Token: 0x06000417 RID: 1047 RVA: 0x0001FF60 File Offset: 0x0001E160
 public static void SetIcon(GameObject obj, IconManager.LabelIcon icon)
 {
     if (IconManager.guicontent_0 == null)
     {
         IconManager.guicontent_0 = IconManager.smethod_1("sv_label_", string.Empty, 0, 8);
     }
     if (icon == IconManager.LabelIcon.None)
     {
         IconManager.RemoveIcon(obj);
     }
     else
     {
         IconManager.smethod_0(obj, IconManager.guicontent_0[(int)icon].image as Texture2D);
     }
 }
Example #3
0
 // Token: 0x06000419 RID: 1049 RVA: 0x00003B04 File Offset: 0x00001D04
 public static void RemoveIcon(GameObject obj)
 {
     IconManager.smethod_0(obj, null);
 }