示例#1
0
 public override void CancelUpdateHandler()
 {
     this.cMgr.StopAllCoroutine();
     this.msgShowQueue.Clear();
     this.msgFreeQueue.Clear();
     this.msgWaitQueue.Clear();
     this.speedUpTip = null;
     this.tPos       = null;
 }
示例#2
0
        private void AddNewMsg(SiderTipMsg _msg)
        {
            if (this.msgShowQueue.Count >= 3)
            {
                this.msgWaitQueue.Enqueue(_msg);
                return;
            }
            SiderTipCtrl siderTipCtrl = this.msgFreeQueue.Dequeue();

            siderTipCtrl.defaultPos = new Vector3(0f, (float)this.counter * -this.cellHeight, 0f);
            this.counter++;
            this.cMgr.StartCoroutine(this.ShowMsg(_msg, siderTipCtrl), true);
            this.msgShowQueue.Enqueue(siderTipCtrl);
        }
示例#3
0
 public override void HandleAfterOpenModule()
 {
     if (this.isRightSider)
     {
         this.siderPrefab = ResourceManager.LoadPath <SiderTipCtrl>("Prefab/HUDModule/SiderTip", null, 0);
     }
     else
     {
         this.siderPrefab = ResourceManager.LoadPath <SiderTipCtrl>("Prefab/HUDModule/SiderTip_left", null, 0);
     }
     for (int i = 0; i < 4; i++)
     {
         SiderTipCtrl siderTipCtrl = (SiderTipCtrl)UnityEngine.Object.Instantiate(this.siderPrefab);
         siderTipCtrl.transform.parent        = this.cacheContainer;
         siderTipCtrl.transform.localPosition = Vector3.zero;
         siderTipCtrl.transform.localScale    = Vector3.one;
         this.msgFreeQueue.Enqueue(siderTipCtrl);
         siderTipCtrl.gameObject.SetActive(false);
     }
 }
示例#4
0
 public override void Init()
 {
     this.counter        = 0;
     this.speedUpTip     = null;
     this.triggerBtn     = this.transform.Find("Trigger").gameObject;
     this.cacheContainer = this.transform.Find("CacheContainer");
     this.msgShowQueue.Clear();
     this.msgFreeQueue.Clear();
     this.msgWaitQueue.Clear();
     this.tPos = this.cacheContainer.GetComponent <TweenPosition>();
     UIEventListener.Get(this.triggerBtn).onClick = new UIEventListener.VoidDelegate(this.onTriggerMsg);
     if (Singleton <MiniMapView> .Instance.gameObject)
     {
         if (Singleton <HUDModuleManager> .Instance.IsVastMap)
         {
             this.ResetHeight(145f);
         }
         else
         {
             this.ResetHeight(30f + Singleton <MiniMapView> .Instance.GetMapHeight());
         }
     }
 }
示例#5
0
 private IEnumerator ShowMsg(SiderTipMsg _msg, SiderTipCtrl _tweenComp)
 {
     SiderTipsModule.< ShowMsg > c__IteratorDE <ShowMsg> c__IteratorDE = new SiderTipsModule.< ShowMsg > c__IteratorDE();