Exemplo n.º 1
0
 public void SetTimerEventId(enTimerEventType eventType, enUIEventID eventId)
 {
     if (eventType >= enTimerEventType.TimeStart && eventType < (enTimerEventType)this.m_eventIDs.Length)
     {
         this.m_eventIDs[(int)eventType] = eventId;
     }
 }
Exemplo n.º 2
0
        public void SetTimerEventId(enTimerEventType eventType, enUIEventID eventId)
        {
            int index = (int)eventType;

            if ((index >= 0) && (index < this.m_eventIDs.Length))
            {
                this.m_eventIDs[index] = eventId;
            }
        }
Exemplo n.º 3
0
        private void DispatchTimerEvent(enTimerEventType eventType)
        {
            if (this.m_eventIDs[(int)eventType] != enUIEventID.None)
            {
                CUIEvent uIEvent = Singleton <CUIEventManager> .GetInstance().GetUIEvent();

                uIEvent.m_srcFormScript                = base.m_belongedFormScript;
                uIEvent.m_srcWidget                    = base.gameObject;
                uIEvent.m_srcWidgetScript              = this;
                uIEvent.m_srcWidgetBelongedListScript  = base.m_belongedListScript;
                uIEvent.m_srcWidgetIndexInBelongedList = base.m_indexInlist;
                uIEvent.m_pointerEventData             = null;
                uIEvent.m_eventID     = this.m_eventIDs[(int)eventType];
                uIEvent.m_eventParams = this.m_eventParams[(int)eventType];
                base.DispatchUIEvent(uIEvent);
            }
        }
Exemplo n.º 4
0
    private void DispatchTimerEvent(enTimerEventType eventType)
    {
        if (eventIDs[(int)eventType] != enUIEventID.None)
        {
            UIEvent uiEvent = Singleton <UIEventManager> .GetInstance().GetUIEvent();

            uiEvent.srcFormScript                = belongedFormScript;
            uiEvent.srcWidget                    = gameObject;
            uiEvent.srcWidgetScript              = this;
            uiEvent.srcWidgetBelongedListScript  = belongedListScript;
            uiEvent.SrcWidgetIndexInBelongedList = indexInList;
            uiEvent.pointerEventData             = null;
            uiEvent.eventID     = eventIDs[(int)eventType];
            uiEvent.eventParams = eventParamsArry[(int)eventType];
            base.DispatchUIEvent(uiEvent);
        }
    }