static void Init()
    {
        Controller.resetInstance();
        openedWindow = WelcomeWindowType.New;

        Language.Initialize();
        thisWindowReference = EditorWindow.GetWindow(typeof(WelcomeWindow));
        windowWidth         = EditorWindow.focusedWindow.position.width;
        windowHeight        = EditorWindow.focusedWindow.position.height;
        logo = (Texture2D)Resources.Load("EAdventureData/img/logo-editor", typeof(Texture2D));

        logoRect    = new Rect(0.01f * windowWidth, 0.01f * windowHeight, windowWidth * 0.98f, windowHeight * 0.25f);
        buttonsRect = new Rect(0.01f * windowWidth, 0.27f * windowHeight, windowWidth * 0.98f, windowHeight * 0.28f);
        windowRect  = new Rect(0.01f * windowWidth, 0.32f * windowHeight, 0.98f * windowWidth, 0.67f * windowHeight);

        //newGameWindow = new NewGameWindow(windowRect, new GUIContent(TC.get("GeneralText.New")), "Window");
        //openGameWindow = new OpenGameWindow(windowRect, new GUIContent(TC.get("GeneralText.Open")), "Window");
        newGameWindow  = new NewGameWindow(windowRect, new GUIContent("New"), "Window");
        openGameWindow = new OpenGameWindow(windowRect, new GUIContent("Open"), "Window");
        //recentGameWindow = new RecentGameWindow(windowRect, new GUIContent(Language.GetText("RECENT_GAME")), "Window");
    }
        // Add menu item
        private void OnEnable()
        {
            if (!thisWindowReference)
            {
                thisWindowReference = this;
            }
            else
            {
                DestroyImmediate(this);
                return;
            }

            if (!Language.Initialized)
            {
                Language.Initialize();
            }

            openedWindow = WelcomeWindowType.New;

            logo = Resources.Load <Texture2D>("EAdventureData/img/icons/logo-editor");
        }
 void OnWindowTypeChanged(WelcomeWindowType type_)
 {
     openedWindow = type_;
 }