/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    public void OnButtonBlockChecked(BasicButton sender)
    {
        if(sender.Checked){
            if(Data.selChapter.selBlock!=null){
                if(Data.selChapter.selBlock.BlockType==Data.Chapter.Block.blockTypes.Voice){
                    soundRecorder.ResetAudio((int)Data.selChapter.selBlock.FilterType);
                }else{
                    soundRecorder.ResetAudio();
                }
            }
            Data.selChapter.selBlock = sender.iObj as Data.Chapter.Block;
            SetCurrentBlockElements();
            HideAllButtonBars();
        }

        sender.SetTextColor(sender.Checked, new Color(1,0,0.5f,1)); //pink
        sender.SetTextBottomColor(sender.Checked, new Color(1,0,0.5f,1)); //pink
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Chapter button
    public void OnButtonChapterChecked(BasicButton sender)
    {
        if(sender.Checked){
            Data.selChapter = sender.iObj as Data.Chapter;
            Data.selChapter.loadBlocks();
            HideAllButtonBars();
            SetCurrentChapterElements();
            SetDataGameObjects();
            Data.selChapter.Frame(0,false);
        }

        sender.SetTextColor(sender.Checked, new Color(1,0.82f,0,1)); //yellow
    }