internal static GUIContent IconContent(string title, string iconName, string description) { GUIContent content = new GUIContent(title, description); if (EditorGUIUtility.isProSkin) { iconName += "_dark"; } Texture2D tex = ResourceUtility.EditorLoadTexture("Splines/Editor/Icons", iconName); if (tex != null) { content.image = tex; content.text = ""; } return(content); }
public bool EditButton(bool selected) { float width = 40f; editButtonContent.image = ResourceUtility.EditorLoadTexture("Splines/Editor/Icons", "edit_cursor"); if (editButtonContent.image != null) { editButtonContent.text = ""; width = 25f; } if (SplineEditorGUI.EditorLayoutSelectableButton(editButtonContent, true, selected, GUILayout.Width(width))) { SceneView.RepaintAll(); return(true); } return(false); }
protected override void GetHeader() { header = ResourceUtility.EditorLoadTexture("Splines/Editor/Icons", "plugin_header"); }
protected override void GetHeader() { header = ResourceUtility.EditorLoadTexture("Forever/Editor/Images", "forever_header"); }