Exemple #1
0
        protected void ClearMessageBoxQueue()
        {
            if (m_messageBoxQueue.Any() == false)
            {
                return;
            }

            for (int i = 0; i < m_messageBoxQueue.Count; ++i)
            {
                MessageBoxDataParam messageBoxDataParam = m_messageBoxQueue.Dequeue();
                if (messageBoxDataParam != null)
                {
                    messageBoxDataParam.Dispose();
                }
            }

            m_messageBoxQueue.Clear();
        }
Exemple #2
0
        protected void UpdateMessageBoxQueue(float delta)
        {
            if (m_messageBoxQueue.Any() == false)
            {
                return;
            }

            MessageBoxWidget widget = m_widgetRepositories.FindWidget("MessageBoxWidget") as MessageBoxWidget;

            if (widget != null && widget.IsGameOjectActive != true)
            {
                MessageBoxDataParam messageBoxDataParam = m_messageBoxQueue.Dequeue();
                if (messageBoxDataParam != null)
                {
                    widget.Show(messageBoxDataParam.ActiveTime, messageBoxDataParam);
                }
                messageBoxDataParam.Dispose();
            }
        }