protected override void OnCellRenderer(int groupIndex, int cellIndex, object cellData, RectTransform cellView, bool selected)
    {
        Animator animator = cellView.GetComponent <Animator>();

        if (animator)
        {
            animator.SetBool("IsOn", selected);
        }

        ProduceDialogVO infoVO      = (ProduceDialogVO)cellData;
        OnClickTool     onClickTool = cellView.GetOrAddComponent <OnClickTool>();

        onClickTool.OnClickHandler = OnClick;
        onClickTool.OnEnterHandler = OnEnter;
        onClickTool.OnExitHandler  = OnExit;
        Transform childTf = cellView.transform;

        m_TextDescribe = childTf.Find("Move/Label_Des").GetComponent <TextMeshProUGUI>();
        m_TextDescribe.SetText(TableUtil.GetLanguageString(infoVO.TextDescribe));
        m_TypeName = childTf.Find("Move/Label_Name").GetComponent <TextMeshProUGUI>();
        m_TypeName.SetText(TableUtil.GetLanguageString(infoVO.TypeName));
        m_ImageIcon     = childTf.Find("Image_Icon").GetComponent <Image>();
        m_ImageBsseIcon = childTf.Find("ImageBase").GetComponent <Image>();
        UIUtil.SetIconImage(m_ImageIcon, (uint)infoVO.ImageIcon);
        UIUtil.SetIconImage(m_ImageBsseIcon, (uint)infoVO.ImageBaseIcon);
    }
 private void OnSelectionDataChanged(object obj)
 {
     if (obj is ProduceDialogVO)
     {
         m_CurrentProduceDialogVO = obj as ProduceDialogVO;
         State.GetAction(UIAction.Common_Select).Enabled = true;
     }
     else
     {
         State.GetAction(UIAction.Common_Select).Enabled = false;
     }
 }
 /// <summary>
 /// 创建button
 /// </summary>
 public void CreateButtons()
 {
     m_ProduceDialogVoList.Clear();
     for (int i = 0; i < m_ToggleCount; i++)
     {
         ProduceDialogVO produceDialogVO = new ProduceDialogVO();
         produceDialogVO.Index         = i;
         produceDialogVO.ImageBaseIcon = m_ImageBaseIcons[i];
         produceDialogVO.ImageIcon     = m_ImageIcons[i];
         produceDialogVO.TypeName      = m_TypeNames[i];
         produceDialogVO.TextDescribe  = m_TitleDescribes[i];
         m_ProduceDialogVoList.Add(produceDialogVO);
     }
 }