Exemplo n.º 1
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);
	}
Exemplo n.º 2
0
	public void Init( body_SC_RANK_SUMMARY_MYRANK_LOAD_RESULT data)
	{
		foreach( SimpleSprite cls in classes)
			cls.gameObject.SetActiveRecursively( false);
		classes[ AsUserInfo.Instance.SavedCharStat.class_ - 1].gameObject.SetActiveRecursively( true);

		levelText.Text = AsUserInfo.Instance.SavedCharStat.level_.ToString();
		nameField.Text = AsUserInfo.Instance.SavedCharStat.charName_;
		rankLabel.Text = AsTableManager.Instance.GetTbl_String(1668);
		rankPoint.Text = data.nCurItemRankPoint.ToString();
		
		SetDelegateImage();
	}
Exemplo n.º 3
0
	private void RankMyRankLoadResult( byte[] _packet)
	{
		body_SC_RANK_SUMMARY_MYRANK_LOAD_RESULT result = new body_SC_RANK_SUMMARY_MYRANK_LOAD_RESULT();
		result.PacketBytesToClass( _packet);

		if( eRESULTCODE.eRESULT_SUCC != result.eResult)
		{
			Debug.LogError( "RankMyRankLoadResult : " + result.eResult);
			return;
		}

		AsHudDlgMgr.Instance.OpenRankingDlg( result);
	}