public void Show(CUIEvent uievent)
        {
            if (this.form == null)
            {
                return;
            }
            if (!this.bIsSPModel)
            {
                for (int i = 0; i < this.signalEntities.Count; i++)
                {
                    MiniMapSignalPanel.SignalEntity signalEntity = this.signalEntities[i];
                    if (signalEntity != null)
                    {
                        signalEntity.ShowSelected(false);
                    }
                }
            }
            Vector2 pressPosition = uievent.m_pointerEventData.get_pressPosition();

            this.cacheClickX = pressPosition.x;
            this.cacheClickY = pressPosition.y;
            Vector3 position = CUIUtility.ScreenToWorldPoint(this.form.GetCamera(), pressPosition, this.form.transform.position.z);

            this.node.transform.position = position;
            this.node.CustomSetActive(true);
            this.bIsSPModel = true;
        }
 public void Clear()
 {
     for (int i = 0; i < this.signalEntities.Count; i++)
     {
         MiniMapSignalPanel.SignalEntity signalEntity = this.signalEntities[i];
         if (signalEntity != null)
         {
             signalEntity.Clear();
         }
     }
     this.signalEntities.Clear();
     this.node       = null;
     this.form       = null;
     this.bIsSPModel = false;
 }
        public void OnDrag(CUIEvent uievent)
        {
            if (this.form == null)
            {
                return;
            }
            Vector2 position = uievent.m_pointerEventData.get_position();

            for (int i = 0; i < this.signalEntities.Count; i++)
            {
                MiniMapSignalPanel.SignalEntity signalEntity = this.signalEntities[i];
                if (signalEntity != null)
                {
                    signalEntity.ShowSelected(signalEntity.IsInsideRect(this.form, signalEntity.area, ref position));
                }
            }
        }
        public void OnHoldUp(CUIEvent uievent)
        {
            MinimapSys theMinimapSys = Singleton <CBattleSystem> .instance.TheMinimapSys;

            if (theMinimapSys != null)
            {
                theMinimapSys.Switch(MinimapSys.EMapType.Mini);
            }
            if (this.form == null)
            {
                return;
            }
            for (int i = 0; i < this.signalEntities.Count; i++)
            {
                MiniMapSignalPanel.SignalEntity signalEntity = this.signalEntities[i];
                if (signalEntity != null)
                {
                    signalEntity.ProcessUp(this.cacheClickX, this.cacheClickY, this.form, uievent.m_pointerEventData.get_position());
                }
            }
        }