Example #1
0
        protected override void ApplyReload(ScrollDataView.ReloadEventArgs oldArgs, ScrollDataView.ReloadEventArgs newArgs)
        {
            BaseDialogList dialog = DataView != null?DataView.GetComponentInParent <BaseDialogList>() : null;

            if (dialog != null)
            {
                OptionData option = Data as OptionData;
                if (m_ItemText != null)
                {
                    m_ItemText.SetGraphicText(option != null ? option.text : "");
                }
                if (m_ItemIcon != null)
                {
                    m_ItemIcon.SetImageData(option != null ? option.imageData : null);
                    //m_ItemIcon.gameObject.SetActive(m_ItemIcon.GetImageData() != null && m_ItemIcon.GetImageData().ContainsData(true));
                }
            }
        }