private IEnumerator DoDisplayChatStamp(int stampId) { chatStampUI.SetActive(false); LoadingQueue lqstamp = new LoadingQueue(this); LoadObject lostamp = lqstamp.LoadChatStamp(stampId, true); yield return((object)lqstamp.Wait()); if (!(lostamp.loadedObject == null)) { if (chatStampTexture != null) { chatStampTexture.mainTexture = (lostamp.loadedObject as Texture2D); } if (CanDisplayChat()) { chatStampUI.SetActive(true); if (chatStampTween != null) { chatStampTween.ResetToBeginning(); chatStampTween.PlayForward(); } } } }
private IEnumerator LoadStamp(Transform root, int stampId) { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_stamp = load_queue.LoadChatStamp(stampId, false); while (load_queue.IsLoading()) { yield return((object)null); } if (lo_stamp.loadedObject != null) { Texture2D stamp = lo_stamp.loadedObject as Texture2D; SetActive(root, UI.OBJ_SYMBOL, true); SetTexture(root, UI.TEX_STAMP, stamp); } }
private IEnumerator CoroutineLoadStamp(int stampId) { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_stamp = load_queue.LoadChatStamp(stampId, false); while (load_queue.IsLoading()) { yield return((object)null); } if (lo_stamp.loadedObject != null) { Texture2D stamp = lo_stamp.loadedObject as Texture2D; m_TexStamp.get_gameObject().SetActive(true); m_TexStamp.mainTexture = stamp; } m_CoroutineLoadStamp = null; }
private IEnumerator CoroutineLoadStamp(string name, int stampId) { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_stamp = load_queue.LoadChatStamp(stampId, false); yield return((object)load_queue.Wait()); if (!(lo_stamp.loadedObject == null)) { Texture2D stamp = lo_stamp.loadedObject as Texture2D; texStamp.get_gameObject().SetActive(true); texStamp.mainTexture = stamp; nameLabel.text = name; messeageLabel.get_gameObject().SetActive(false); coroutineLoadStamp = null; _AnnounceStart(); } }
private IEnumerator CoroutineLoadStamp() { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_stamp = load_queue.LoadChatStamp(StampId, false); while (load_queue.IsLoading()) { yield return((object)null); } if (lo_stamp.loadedObject != null) { Texture2D stamp = lo_stamp.loadedObject as Texture2D; m_Texture.mainTexture = stamp; SetActiveComponents(true); IsReady = true; } m_CoroutineLoadStamp = null; }
private IEnumerator DoDisplayChatStamp(int stampId) { SetActive((Enum)UI.OBJ_TWEEN_ROOT, false); LoadingQueue lqstamp = new LoadingQueue(this); LoadObject lostamp = lqstamp.LoadChatStamp(stampId, true); yield return((object)lqstamp.Wait()); if (!(lostamp.loadedObject == null)) { SetTexture((Enum)UI.TXT_STAMP, lostamp.loadedObject as Texture2D); SetActive((Enum)UI.OBJ_TWEEN_ROOT, true); TweenScale tween = GetCtrl(UI.OBJ_TWEEN_ROOT).GetComponent <TweenScale>(); tween.SetOnFinished(OnFinish); tween.ResetToBeginning(); tween.PlayForward(); } }