示例#1
0
	public void SetMyInfo(eRankViewType type, int nRankPoint)
	{
		if( eRankViewType.PvpWorld == type || eRankViewType.PvpFriend == type)
			rankLabel.Text = AsTableManager.Instance.GetTbl_String(2107);
		else
			rankLabel.Text = AsTableManager.Instance.GetTbl_String(1668);
		
		rankPoint.Text = nRankPoint.ToString();
	}
示例#2
0
	public void Init( body_SC_RANK_SUMMARY_MYRANK_LOAD_RESULT data)
	{
		eType = eRankViewType.World;
		
		baseDate = data;
		
		//InvokeRepeating( "UpdateRenewalTime", 0.0f, 60.0f);
		renewTime.Hide( true); // ilmeda
		
		myInfo.Init( data);
		
		body_CS_RANK_MYRANK_LOAD myRank = new body_CS_RANK_MYRANK_LOAD( eRANKTYPE.eRANKTYPE_ITEM);
		byte[] sendData = myRank.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( sendData);

#if false
		WorldMaxPage = (Int16)( data.nWorldItemRankMaxCount / ItemsPerPage);
		if( 0 != ( data.nWorldItemRankMaxCount % ItemsPerPage))
			WorldMaxPage++;
		
		FriendMaxPage = (Int16)( data.nFriendItemRankMaxCount / ItemsPerPage);
		if( 0 != ( data.nFriendItemRankMaxCount % ItemsPerPage))
			FriendMaxPage++;
#endif

		_SetString_SubTitle( eType);

		//toggleBtn.Text = AsTableManager.Instance.GetTbl_String(1670);
		pageText.Text = "1/1";
		
		prevPage.SetControlState( UIButton.CONTROL_STATE.DISABLED);
		nextPage.SetControlState( UIButton.CONTROL_STATE.DISABLED);
	}
示例#3
0
	private void _SetString_SubTitle(eRankViewType type)
	{
		if( eRankViewType.PvpWorld == type || eRankViewType.PvpFriend == type)
		{
			nameText.Text = AsTableManager.Instance.GetTbl_String(1767);
			rankText.Text = AsTableManager.Instance.GetTbl_String(2105);
			fluctuationText.Text = AsTableManager.Instance.GetTbl_String(2104);
			rankPointText.Text = AsTableManager.Instance.GetTbl_String(2106);
			toggleBtn.Text = AsTableManager.Instance.GetTbl_String(909);
		}
        else if (eRankViewType.Week == type)
        {
            nameText.Text = AsTableManager.Instance.GetTbl_String(1767);
            rankText.Text = AsTableManager.Instance.GetTbl_String(2105);
            fluctuationText.Text = AsTableManager.Instance.GetTbl_String(2104);
            rankPointText.Text = AsTableManager.Instance.GetTbl_String(2106);
            toggleBtn.Text = AsTableManager.Instance.GetTbl_String(909);
        }
        else
        {
            nameText.Text = AsTableManager.Instance.GetTbl_String(1767);
            rankText.Text = AsTableManager.Instance.GetTbl_String(1662);
            fluctuationText.Text = AsTableManager.Instance.GetTbl_String(1764);
            rankPointText.Text = AsTableManager.Instance.GetTbl_String(1768);
            toggleBtn.Text = AsTableManager.Instance.GetTbl_String(1670);
        }
	}
示例#4
0
    private void OnWeekTab()
    {
        if( eRankViewType.Week == eType)
			return;
		
		AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);
		
		eType = eRankViewType.Week;
		curPage = 0;
		
		toggleBtn.spriteText.color = Color.black;
		_SetString_SubTitle( eType);

        btnRewardLineup.gameObject.SetActive(true);

//		pageText.Text = string.Format( "{0}/{1}", curPage + 1, FriendMaxPage);
		prevPage.SetControlState( UIButton.CONTROL_STATE.NORMAL);
		nextPage.SetControlState( UIButton.CONTROL_STATE.NORMAL);
		//toggleBtn.Text = AsTableManager.Instance.GetTbl_String(909);
		toggleBtn.SetControlState( UIButton.CONTROL_STATE.NORMAL);
		isMyInfo = false;

        body_CS_RANK_TOP_LOAD myRank = new body_CS_RANK_TOP_LOAD(eRANKTYPE.eRANKTYPE_AP, curPage);
        byte[] sendData = myRank.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( sendData);
    }
示例#5
0
	private void OnPvpWorldTab()
	{
		if( eRankViewType.PvpWorld == eType)
			return;
		
		AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);
		
		eType = eRankViewType.PvpWorld;
		curPage = 0;
		
		toggleBtn.spriteText.color = Color.black;
		_SetString_SubTitle( eType);

        btnRewardLineup.gameObject.SetActive(false);

		pageText.Text = "1/1";
		prevPage.SetControlState( UIButton.CONTROL_STATE.DISABLED);
		nextPage.SetControlState( UIButton.CONTROL_STATE.DISABLED);
		toggleBtn.SetControlState( UIButton.CONTROL_STATE.NORMAL);
		
		body_CS_RANK_MYRANK_LOAD myRank = new body_CS_RANK_MYRANK_LOAD( eRANKTYPE.eRANKTYPE_ARENA);
		byte[] sendData = myRank.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( sendData);
	}