Ejemplo n.º 1
0
 public void NcGameRecord(HallTransfer.GameRecordRequest gameRecord)
 {
     //点击游戏记录
     GameApp.Account.SendGameRecordRequest(
         gameRecord.dwGameKind,
         gameRecord.dwPage,
         gameRecord.dwPageSize,
         gameRecord.dwTime);
 }
Ejemplo n.º 2
0
    public void OnClick()
    {
        if (!IsLoginRecord)
        {
            HallTransfer.GameRecordRequest gameRecord = new HallTransfer.GameRecordRequest();
            gamePage = HallTransfer.Instance.uiConfig.curRecordPageCount = 1;
            HallTransfer.Instance.resetGameRecord(0);
            if (!HallTransfer.Instance.uiConfig.MobileEdition)
            {
                pageInput.GetComponent <UIInput> ().value = gamePage.ToString();
                detePopup_list.value = DateTime.Now.ToString("yyyy-MM-dd");

                uint tempGameType = 0;
                if (recordGameType.GetComponent <UIPopupList>().value == "全部")
                {
                    gameRecord.dwGameKind = 0;
                }
                else
                {
                    for (int i = 0; i < HallTransfer.Instance.gameIdsRecordList.Count; i++)
                    {
                        if (HallTransfer.Instance.uiConfig.hallGameNames[i] == recordGameType.GetComponent <UIPopupList>().value)
                        {
                            tempGameType = HallTransfer.Instance.uiConfig.hallGameIds[i];
                            break;
                        }
                    }
                    gameRecord.dwGameKind = tempGameType;
                }
            }
            else
            {
                gameRecord.dwGameKind = gameId;
            }

            gameRecord.dwPage     = gamePage;
            gameRecord.dwTime     = gameTime;
            gameRecord.dwPageSize = HallTransfer.Instance.uiConfig.gameRecordPageNum;

//			Debug.LogWarning ("gameRecord.dwPage:" + gameRecord.dwPage);
//			Debug.LogWarning ("gameRecord.dwTime:" + gameRecord.dwTime);
            if (HallTransfer.Instance.uiConfig.page_gameRecord_mask != null)
            {
                HallTransfer.Instance.uiConfig.page_gameRecord_mask.SetActive(true);
            }

            if (HallTransfer.Instance.ncGameRecord != null)
            {
                HallTransfer.Instance.ncGameRecord(gameRecord);
                Invoke("OnResumePage", 3.0f);
            }
        }
        else if (IsLoginRecord)
        {
            gamePage = 1;
            if (!HallTransfer.Instance.uiConfig.MobileEdition)
            {
                pageInput.GetComponent <UIInput>().value = gamePage.ToString();
            }
            HallTransfer.Instance.resetLogonRecord(0);            //跳
        }

//		this.gameObject.GetComponent<UIButton> ().isEnabled = false;
//		Invoke("resumeBtn",3.0f);
    }