Exemplo n.º 1
0
        /**
         * <summary>Initialises the window.</summary>
         * <param name = "_languageIndex">The index number of the language to select by default.</param>
         */
        public static void Init(int _languageIndex = 0)
        {
            ScriptSheetWindow window = EditorWindow.GetWindowWithRect <ScriptSheetWindow> (new Rect(0, 0, 400, 305), true, "Script sheet exporter", true);

            window.titleContent.text = "Script sheet exporter";
            window.position          = new Rect(300, 200, 400, 305);
            window.languageIndex     = _languageIndex;
        }
        /**
         * <summary>Initialises the window.</summary>
         * <param name = "_languageIndex">The index number of the language to select by default.</param>
         */
        public static void Init(int _languageIndex = 0)
        {
            ScriptSheetWindow window = EditorWindow.GetWindowWithRect <ScriptSheetWindow> (new Rect(0, 0, 400, 305), true, "Script sheet exporter", true);

            UnityVersionHandler.SetWindowTitle(window, "Script sheet exporter");
            window.position      = new Rect(300, 200, 400, 305);
            window.languageIndex = _languageIndex;
        }
Exemplo n.º 3
0
        /**
         * <summary>Initialises the window.</summary>
         * <param name = "_languageIndex">The index number of the language to select by default.</param>
         */
        public static void Init(int _languageIndex = 0)
        {
            ScriptSheetWindow window = (ScriptSheetWindow)EditorWindow.GetWindow(typeof(ScriptSheetWindow));

            UnityVersionHandler.SetWindowTitle(window, "Script sheet exporter");
            window.position      = new Rect(300, 200, 350, 185);
            window.languageIndex = _languageIndex;
        }