/// <summary>
    /// Renders the selected window.
    /// </summary>
    void OnGUI()
    {
        DrawHeader();

        switch ((State)currentWindow.value)
        {
        case State.BATTLE:
            battleEditor.DrawWindow();
            break;

        case State.CHARACTER:
            characterEditor.DrawWindow();
            break;

        case State.ENEMY:
            enemyEditor.DrawWindow();
            break;

        case State.BACKGROUND:
            backgroundEditor.DrawWindow();
            break;

        case State.ITEMEQUIP:
            itemEquipEditor.DrawWindow();
            break;

        case State.KANJI:
            kanjiEditor.DrawWindow();
            break;

        case State.MUSIC:
            musicEditor.DrawWindow();
            break;
        }
    }
    /// <summary>
    /// Renders the selected window.
    /// </summary>
    void OnGUI()
    {
        DrawHeader();

        switch ((State)currentWindow.value)
        {
        case State.CLIP:
            musicEditor.DrawWindow();
            break;

        case State.SONGLIST:
            songlistEditor.DrawWindow();
            break;

        case State.AREA:
            // areaMusicEditor.DrawWindow();
            break;
        }
    }
    /// <summary>
    /// Renders the selected window.
    /// </summary>
    void OnGUI()
    {
        DrawHeader();
        int width  = (int)position.width;
        int height = (int)position.height;

        switch ((State)currentWindow.value)
        {
        case State.MUSIC:
            musicEditor.DrawWindow(width, height);
            break;

        case State.SFX:
            sfxEditor.DrawWindow(width, height);
            break;

        case State.SONGLIST:
            songlistEditor.DrawWindow(width, height);
            break;
        }
    }