public void UpdateList( body1_SC_GUILD_SEARCH_RESULT data )
	{
		m_maxPage = data.nMaxPage;
		m_pageNum.Text = string.Format( "{0}/{1}",m_curPage + 1, data.nMaxPage);
		
		m_guildList.ClearList( true);
		
		for( int i = 0; i < data.nCnt; i++)
		{
			UIListButton itemBtn = m_guildList.CreateItem( m_listItem) as UIListButton;
			AsGuildNewListItem_Guild item = itemBtn.gameObject.GetComponent<AsGuildNewListItem_Guild>();
			item.Data = data.search[i];
		}
	}
Пример #2
0
	void GuildSearchResult( byte[] _packet)
	{
		body1_SC_GUILD_SEARCH_RESULT searchResult = new body1_SC_GUILD_SEARCH_RESULT();
		searchResult.PacketBytesToClass( _packet);
	
		if( null == AsHudDlgMgr.Instance.GuildDlg)
		{
			Debug.LogWarning( "Guild dlg is not exist");
			AsCommonSender.isSendGuild = false;
			return;
		}
		
		AsGuildDlg guildDlg = AsHudDlgMgr.Instance.GuildDlg.gameObject.GetComponentInChildren<AsGuildDlg>();
		guildDlg.InitListTab( searchResult );
		AsCommonSender.isSendGuild = false;
	}
Пример #3
0
	public void UpdateGuildList( body1_SC_GUILD_SEARCH_RESULT data )
	{
		listPanel.UpdateList( data );
	}
Пример #4
0
	public void UpdateList( body1_SC_GUILD_SEARCH_RESULT data )
	{
		maxPage = data.nMaxPage;
		pageNum.Text = string.Format( "{0}/{1}", curPage + 1, data.nMaxPage);
		
		guildList.ClearList( true);
		
		for( int i = 0; i < data.nCnt; i++)
		{
			UIListButton itemBtn = guildList.CreateItem( listItem) as UIListButton;
			AsGuildListItem item = itemBtn.gameObject.GetComponent<AsGuildListItem>();
			item.Data = data.search[i];
		}
		
		noGuild.gameObject.SetActiveRecursively( 0 == guildList.Count);
	}
Пример #5
0
	public void InitListTab( body1_SC_GUILD_SEARCH_RESULT data)
	{
		panelManager.Init( AsGuildPanelManager.eGuildPanelState.List, data);
	}
Пример #6
0
	public void UpdateGuildList( body1_SC_GUILD_SEARCH_RESULT data )
	{
		panelManager.UpdateGuildList( data );
	}
Пример #7
0
	public new void PacketBytesToClass( byte[] data)
	{
		Type infotype = this.GetType();
		FieldInfo headerinfo = null;

		int index = ParsePacketHeader( data);

		// eType
		byte[] type = new byte[ sizeof( Int32)];
		Buffer.BlockCopy( data, index, type, 0, sizeof( Int32));
		headerinfo = infotype.GetField( "eType", BINDING_FLAGS_PIG);
		headerinfo.SetValue( this, BitConverter.ToInt32( type, 0));
		index += sizeof( Int32);

		switch( eType)
		{
		case eGUILD_UI_SCROLL.eGUILD_UI_SCROLL_GUILD:
			searchResult = new body1_SC_GUILD_SEARCH_RESULT();
			searchResult.PacketBytesToClass2( data, index);
			break;
		case eGUILD_UI_SCROLL.eGUILD_UI_SCROLL_APPROVE_MEMBER:
		case eGUILD_UI_SCROLL.eGUILD_UI_SCROLL_NOT_APPROVE_MEMBER:
			memberInfoResult = new body1_SC_GUILD_MEMBER_INFO_RESULT();
			memberInfoResult.PacketBytesToClass2( data, index);
			break;
		}
	}