static void DrawAddButton(Rect position, string key) { Texture searchIcon = (Texture)Resources.Load("store"); GUIContent _content = new GUIContent(searchIcon); if (!CheckIsValid(key)) { if (GUI.Button(position, _content)) { if (!CheckIsValid(key)) { TextLocaliserGUIEditorAlertWindow.Open(key); } } } }
static void DrawAddButton(string key) { Texture searchIcon = (Texture)Resources.Load("store"); GUIContent _content = new GUIContent(searchIcon); if (!CheckIsValid(key)) { if (GUILayout.Button(_content, GUILayout.MaxHeight(17), GUILayout.MaxWidth(17))) { if (!CheckIsValid(key)) { TextLocaliserGUIEditorAlertWindow.Open(key); } } } }