示例#1
0
        private void OnInvite_TabChange(CUIEvent uiEvent)
        {
            CUIFormScript srcFormScript = uiEvent.m_srcFormScript;
            CUIListScript component     = uiEvent.m_srcWidget.GetComponent <CUIListScript>();
            GameObject    widget        = srcFormScript.GetWidget(0);
            GameObject    obj3          = srcFormScript.GetWidget(1);

            if (component.GetSelectedIndex() == 0)
            {
                widget.CustomSetActive(true);
                obj3.CustomSetActive(false);
            }
            else
            {
                obj3.CustomSetActive(true);
                widget.CustomSetActive(false);
                if (this.m_isFirstlySelectGuildMemberTab)
                {
                    this.InitAllGuildMemberList();
                    this.SendGetGuildMemberGameStateReq();
                    CUITimerScript script3 = srcFormScript.GetWidget(8).GetComponent <CUITimerScript>();
                    script3.SetTotalTime(1000f);
                    script3.SetOnChangedIntervalTime(10f);
                    script3.StartTimer();
                    this.m_isFirstlySelectGuildMemberTab = false;
                }
            }
        }