Exemplo n.º 1
0
                private void OpenTextEditor(string key, SystemLanguage language)
                {
                    Rect position = new Rect();

                    position.width  = this.position.width * 0.75f;
                    position.height = this.position.height * 0.33f;
                    position.x      = this.position.x + this.position.width * 0.125f;
                    position.y      = this.position.y + this.position.height * 0.33f;

                    LocalisationEditorTextWindow.ShowEditKey(this, key, language, position);
                }
                public static void ShowEditKey(LocalisationEditorWindow parent, string key, SystemLanguage language, Rect position)
                {
                    LocalisationEditorTextWindow textEditor = (LocalisationEditorTextWindow)GetWindow(typeof(LocalisationEditorTextWindow), false, kWindowWindowName);

                    textEditor.Show(parent, key, language, position);
                }