public static bool Button(Texture2D iconButton, Color c, GUIStyle style, BotonDelegate botonFunc, params GUILayoutOption[] options) { GUI.color = c; bool res = Button(iconButton, style, botonFunc, options); GUI.color = Color.white; return(res); }
public static bool Button(string labelButton, Color c, BotonDelegate botonFunc, params GUILayoutOption[] options) { GUI.color = c; bool res = Button(labelButton, botonFunc, options); GUI.color = Color.white; return(res); }
public static bool Button(string label, string labelButton, Color c, BotonDelegate botonFunc, params GUILayoutOption[] options) { UnityEditor.EditorGUILayout.BeginHorizontal(); UnityEditor.EditorGUILayout.LabelField(label); bool res = Button(labelButton, c, botonFunc, options); UnityEditor.EditorGUILayout.EndHorizontal(); return(res); }
public static bool Button(GUIContent content, GUIStyle style, BotonDelegate botonFunc, params GUILayoutOption[] options) { bool res = false; if (GUILayout.Button(content, style, options)) { GUI.color = Color.white; res = true; botonFunc(); } return(res); }
public static bool Button(Texture2D iconButton, BotonDelegate botonFunc, params GUILayoutOption[] options) { bool res = false; if (GUILayout.Button(iconButton, options)) { GUI.color = Color.white; res = true; botonFunc(); } return(res); }
public static bool Button(string label, Texture2D iconButton, BotonDelegate botonFunc, params GUILayoutOption[] options) { UnityEditor.EditorGUILayout.BeginHorizontal(); UnityEditor.EditorGUILayout.LabelField(label); bool res = false; if (GUILayout.Button(iconButton, options)) { res = true; botonFunc(); } UnityEditor.EditorGUILayout.EndHorizontal(); return(res); }
public static bool ButtonGo(string label, Color c, BotonDelegate botonFunc, params GUILayoutOption[] options) { return(Button(label, "Go", c, botonFunc, GUILayout.Width(30))); }