void CPartyFinderWindow::InitPartySearch()
{
PartyResetInfo();
for ( int k = 0; k < 2; k++ ) // change < 2 to how many maps you added for example you added 4 make it 6
{
CString strTemp;
strTemp.Format( "%s", ID2GAMEWORD( "PARTYFINDER_AREAS", k) );
int nIndex = m_pListTextBox->AddText ( strTemp.GetString(), NS_UITEXTCOLOR::WHITE );
m_pListTextBox->SetTextData ( nIndex, k );
}
//select first line
if ( m_pListTextBox->GetCount () > 0 )
{
m_pListTextBox->SetSelectPos( 0 );
int nIndex = m_pListTextBox->GetSelectPos ();
if ( m_pListTextBox->GetCount () <= nIndex || nIndex < 0 ) return;
DWORD dwType = m_pListTextBox->GetTextData ( nIndex );
m_nSelectIndexType = nIndex;
//SelectPartyArea( dwType ); // ETO DI TO NEED, KASE MAGBABASED TAYO SA PARTY SEARCH BUTTON
m_pListTextBox->SetUseOverColor ( TRUE );
m_pListTextBox->SetOverColor ( nIndex, NS_UITEXTCOLOR::ORANGE );
}
// FOR TEST PURPOSE LANG TO, THIS FUNCTION WILL BE CALLED ONLY WHEN THE BUTTON IS PRESSED
/*SelectPartyArea (m_nSelectIndexType);*/
}