public void Initialize(string bodyText, string titleText, ImageData icon, bool startStationaryAtZero = true)
        {
            if (m_TitleSection != null)
            {
                m_TitleSection.SetTitle(titleText, icon);
            }

            if (m_BodyText != null)
            {
                if (string.IsNullOrEmpty(bodyText))
                {
                    m_BodyText.transform.parent.gameObject.SetActive(false);
                }
                else
                {
                    m_BodyText.SetGraphicText(bodyText);
                }
            }

            if (m_ProgressIndicator == null)
            {
                SetupIndicator(m_LinearIndicator != null);
            }

            if (!startStationaryAtZero)
            {
                m_ProgressIndicator.StartIndeterminate();
            }
            else
            {
                m_ProgressIndicator.SetProgress(0f, false);
            }

            //Initialize();
        }
Esempio n. 2
0
        public void Initialize(string bodyText, string titleText, ImageData icon, bool startStationaryAtZero = true)
        {
            m_TitleSection.SetTitle(titleText, icon);

            if (string.IsNullOrEmpty(bodyText))
            {
                m_BodyText.transform.parent.gameObject.SetActive(false);
            }
            else
            {
                m_BodyText.text = bodyText;
            }

            if (!startStationaryAtZero)
            {
                m_ProgressIndicator.StartIndeterminate();
            }
            else
            {
                m_ProgressIndicator.SetProgress(0f, false);
            }

            Initialize();
        }