public static void SetIcon(this GameObject gObj, IconManager.LabelIcon icon) { if (icon == IconManager.LabelIcon.None) { IconManager.RemoveIcon(gObj); } else { IconManager.SetIcon(gObj, icon); } }
public static void SetLabelIcon(GameObject _object, IconManager.LabelIcon _label_icon) { if (_label_icon == IconManager.LabelIcon.None) { IconManager.RemoveIcon(_object); } else { IconManager.SetLabelIcon(_object, _label_icon); } }
// 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); } }
public override void OnInspectorGUI() { if (operationMode == Mode.EnableEdit) { if (GUILayout.Button("Disable Edit")) { operationMode = Mode.DisableEdit; } namePrefix = EditorGUILayout.TextField("Name prefix", "WP"); positionAdder = EditorGUILayout.Vector3Field("Change Position", positionAdder); drawType = (DrawType)EditorGUILayout.EnumPopup("Icon Type", drawType); if (drawType == DrawType.Icon) { selectedIcon = (IconManager.Icon)EditorGUILayout.EnumPopup("Icons", selectedIcon); } else if (drawType == DrawType.LabelIcon) { selectedLabelIcon = (IconManager.LabelIcon)EditorGUILayout.EnumPopup("Label Icons", selectedLabelIcon); } if (GUILayout.Button("Reset Count")) { m_count = 0; } EditorGUILayout.LabelField(">>>> Right click for add waypoint <<<<<"); } else if (operationMode == Mode.DisableEdit) { if (GUILayout.Button("Enable Edit")) { operationMode = Mode.EnableEdit; } } }
public static void SetIcon(this GameObject gObj, IconManager.LabelIcon icon) { IconManager.SetIcon(gObj, icon); }