Example #1
0
	public void Recv_Search( body1_SC_PRIVATESHOP_SEARCH_RESULT _result)
	{
		Debug.Log("AsPStoreManager::Recv_Search: " + _result);
		
		if( m_SearchDlg != null)
		{
			m_SearchDlg.Recv_Search( _result);
		}
	}
Example #2
0
	void PrivateShop_SearchResult( byte[] _packet)
	{
		body1_SC_PRIVATESHOP_SEARCH_RESULT search = new body1_SC_PRIVATESHOP_SEARCH_RESULT();
		search.PacketBytesToClass( _packet);
		
		AsPStoreManager.Instance.Recv_Search( search);
	}
Example #3
0
	public void Recv_Search( body1_SC_PRIVATESHOP_SEARCH_RESULT _result)
	{
		StopCoroutine( "Cool_CR");
		CoolCompletion();
		
		m_listSlot.Clear();
		listResult.ClearList( true);
		
		if( _result.body.Length == 0)
			AsNotify.Instance.MessageBox(AsTableManager.Instance.GetTbl_String(126), AsTableManager.Instance.GetTbl_String(2183));
		
		foreach( body2_SC_PRIVATESHOP_SEARCH_RESULT node in _result.body)
		{
			GameObject objItemBg = Instantiate( Resources.Load( "UI/Optimization/ListItem/SearchStoreDlgListItem")) as GameObject;
			UIPStoreSearchSlot slot = objItemBg.GetComponent<UIPStoreSearchSlot>();
			m_listSlot.Add( slot);
			slot.Init( listResult, node, Del_ListBtnClicked);
		}
		
//		_SortByName();
		
		#region - page -
		m_PageMax = _result.nMaxPageCount;
		if( m_PageIdx > m_PageMax)
			m_PageIdx = m_PageMax;
		txtPage.Text = m_PageIdx + " / " + m_PageMax;
		#endregion
	}