Ejemplo n.º 1
0
        public static void OpenMenuItem()
        {
            TextLocaliserGUIEditorSearchWindow window = new TextLocaliserGUIEditorSearchWindow();

            window.titleContent = new GUIContent("Localiser Key Search");
            window.ShowUtility();
        }
Ejemplo n.º 2
0
        static void DrawSearchButton(Rect position, SerializedProperty property)
        {
            Texture searchIcon = (Texture)Resources.Load("search");

            GUIContent _content = new GUIContent(searchIcon);

            if (GUI.Button(position, _content))
            {
                TextLocaliserGUIEditorSearchWindow.Open(property);
            }
        }
Ejemplo n.º 3
0
        static void DrawSearchButton()
        {
            Texture searchIcon = (Texture)Resources.Load("search");

            GUIContent _content = new GUIContent(searchIcon);

            if (GUILayout.Button(_content, GUILayout.MaxHeight(17), GUILayout.MaxWidth(17)))
            {
                TextLocaliserGUIEditorSearchWindow.Open();
            }
        }
Ejemplo n.º 4
0
        public static void Open(SerializedProperty property = null)
        {
            TextLocaliserGUIEditorSearchWindow window = new TextLocaliserGUIEditorSearchWindow();

            window.titleContent = new GUIContent("Localiser Key Search");

            Vector2 mouse = GUIUtility.GUIToScreenPoint(Event.current.mousePosition);
            Rect    r     = new Rect(mouse.x - 450, mouse.y + 10, 10, 10);

            window.ShowAsDropDown(r, new Vector2(500, 300));
            window.property   = property;
            window.isDropdown = true;
        }