예제 #1
0
        private bool InternalRegisterTextElementForGraphicRebuild(TMP_Text element)
        {
            int id = element.GetInstanceID();

            if (this.m_GraphicQueueLookup.ContainsKey(id))
            {
                return(false);
            }

            m_GraphicQueueLookup[id] = id;
            this.m_GraphicRebuildQueue.Add(element);

            return(true);
        }
예제 #2
0
 void DisplayMessage(TMP_Text message)
 {
     for (int i = 0; i < dialogMessages.Length; i++)
     {
         if (dialogMessages[i].GetInstanceID() != message.GetInstanceID())
         {
             dialogMessages[i].gameObject.SetActive(false);
         }
         else
         {
             dialogMessages[i].gameObject.SetActive(true);
         }
     }
 }
예제 #3
0
        private void InternalUnRegisterTextElementForLayoutRebuild(TMP_Text element)
        {
            //if (this.m_PerformingLayoutRebuild)
            //{
            //    Debug.LogError((object)string.Format("Trying to remove {0} from rebuild list while we are already inside a rebuild loop. This is not supported.", (object)element));
            //}
            //else
            //{
            int id = element.GetInstanceID();

            //element.LayoutComplete();
            TMP_UpdateManager.instance.m_LayoutRebuildQueue.Remove(element);
            m_LayoutQueueLookup.Remove(id);
            //}
        }