Example #1
0
	public void Init( CHAT_FILTER_TYPE type)
	{
		filterType = type;
		
		switch( type)
		{
		case CHAT_FILTER_TYPE.None:
			foreach( AsNewChatAlarm alram in news)
				alram.NewMsgExist = false;
			_inactivateWhisperBalloon();
			break;
		case CHAT_FILTER_TYPE.General:
			news[ (int)type].NewMsgExist = false;
			_inactivateWhisperBalloon();
			break;
		case CHAT_FILTER_TYPE.Party:
			news[ (int)type].NewMsgExist = false;
			_inactivateWhisperBalloon();
			break;
		case CHAT_FILTER_TYPE.Guild:
			news[ (int)type].NewMsgExist = false;
			_inactivateWhisperBalloon();
			break;
		case CHAT_FILTER_TYPE.Whisper:
			news[ (int)type].NewMsgExist = false;
			_activateWhisperBalloon();
			break;
		case CHAT_FILTER_TYPE.System:
			news[ (int)type].NewMsgExist = false;
			_inactivateWhisperBalloon();
			break;
		default:
			Debug.LogError( "Invalid chat filter type");
			return;
		}

		textField.spriteText.transform.localPosition = new Vector3( 0.0f, 0.0f, -0.2f);
		textField.Text = m_strDefaultText;
		
		_InitScroll();
	}
Example #2
0
	public void Init( CHAT_FILTER_TYPE type)
	{
		allList.gameObject.SetActiveRecursively( true);
		allList.ScrollListTo( 1.0f);

		filterType = type;

		StopCoroutine( "InsertChatFromRawData");
		StartCoroutine( "InsertChatFromRawData");
	}