コード例 #1
0
        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);
                    }
                }
            }
        }
コード例 #2
0
        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);
                    }
                }
            }
        }