Menu-FN: Hide menu upon connecting to a server, and automatically refresh serverlist when opening the Internet Games menu

This commit is contained in:
Marco Cawthorne 2023-11-18 14:00:42 -08:00
parent 07173b3c7b
commit 602fa9fd93
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2022 Vera Visions LLC.
* Copyright (c) 2016-2023 Vera Visions LLC.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -52,6 +52,7 @@ inet_btnjoin(void)
RichPresence_Clear();
RichPresence_Set("connect", strcat("+connect ", addr));
g_menupage = PAGE_MULTIPLAYER;
m_hide();
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2022 Vera Visions LLC.
* Copyright (c) 2016-2023 Vera Visions LLC.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@ -344,6 +344,7 @@ menu_multiplayer_draw(void)
g_connected = TRUE;
g_connectstatus = CONNECT_NONE;
mp_btninet_start();
inet_btnrefresh();
}
mp_dgConnect.Draw();
WField_Static(162, 180, m_reslbl[IDS_FNET_LOGIN], 320, 260,