How to Refresh channel state with button on Channel Select when is Down or Busy?
#1

Hello.

I managed to add a button 'Refresh' to update state when a channel is busy or down. 

For example when the game server is still loading obv the client will mark as down. 

Without make Exit and Relog I'd like to reload information.

I did this but does not work:

if (m_pWnd != NULL)
{
switch (m_cmdTpye)
{
case GotoLogin:
m_pWnd->GotoLogin();
break;
case ConnectServer:
m_pWnd->ConnectServer();
break;
case Refresh:
m_pWnd->UpdateServerList();
....

I tried also:

m_pWnd->ResetServerAndChannelData();
m_pWnd->Lock(TRUE);
Sleep(500);
m_pWnd->Lock(FALSE);
m_pWnd->UpdateServerList();

but does not work either.

If toggling m_pWnd->CloseUI() and m_pWnd->OpenUI() the form of selection does not appear anymore.

Does anyone how to fix this or If my approach is totally wrong?

Thanks

Best Regards



Messages In This Thread
[No subject] - by Andrein95 - 05-21-2023, 10:22 AM
[No subject] - by nicolasg - 05-21-2023, 06:43 PM
[No subject] - by Andrein95 - 08-21-2023, 08:50 AM
[No subject] - by nicolasg - 08-21-2023, 12:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)