Example #1
0
	public void Init( body_SC_RANK_CHANGE_MYRANK data)
	{
		AsSoundManager.Instance.PlaySound( "Sound/Interface/S6035_EFF_RankingAlarm", Vector3.zero, false);
			
		//alarm.Init( data.sMyRankInfo);
		alarm.Init( data);
	}
	public void Init( body_SC_RANK_CHANGE_MYRANK scData)
	{
		if( eRANKTYPE.eRANKTYPE_ARENA == scData.eRankType)
		{
			nameText.Text = AsTableManager.Instance.GetTbl_String(1763);
			fluctuationText.Text = AsTableManager.Instance.GetTbl_String(2104);
			rankPointText.Text = AsTableManager.Instance.GetTbl_String(2049);
		}
		else
		{
			nameText.Text = AsTableManager.Instance.GetTbl_String(1763);
			fluctuationText.Text = AsTableManager.Instance.GetTbl_String(1764);
			rankPointText.Text = AsTableManager.Instance.GetTbl_String(1765);
		}
		
		sMYRANKINFO data = scData.sMyRankInfo;
		
		SetDelegateImage();

		StringBuilder sb = new StringBuilder();
		sb.AppendFormat( AsTableManager.Instance.GetTbl_String(1766), data.nRank);
		rank.Text = sb.ToString();
		nameField.Text = AsUserInfo.Instance.SavedCharStat.charName_;
		
		foreach( SimpleSprite icon in fluctuationIcon)
			icon.gameObject.SetActiveRecursively( false);
		
		if( 0 > data.nDiffRank)
		{
			fluctuationIcon[0].gameObject.SetActiveRecursively( true);
			fluctuationPoint.Color = Color.blue;
		}
		else if( 0 < data.nDiffRank)
		{
			fluctuationIcon[2].gameObject.SetActiveRecursively( true);
			fluctuationPoint.Color = Color.red;
		}
		else
		{
			fluctuationIcon[1].gameObject.SetActiveRecursively( true);
			fluctuationPoint.Color = Color.green;
		}
		
		fluctuationPoint.Text = data.nDiffRank.ToString();
		myRankPoint.Text = data.nRankPoint.ToString();
	}
Example #3
0
	private void RankChangeMyRank( byte[] _packet)
	{
		body_SC_RANK_CHANGE_MYRANK changeRank = new body_SC_RANK_CHANGE_MYRANK();
		changeRank.PacketBytesToClass( _packet);

		AsHudDlgMgr.Instance.PromptRankChangeAlarm( changeRank);
	}
	public void Insert( body_SC_RANK_CHANGE_MYRANK data)
	{
		lstAlarms.Add( data);
	}