mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Increase visible lobbies-per-page to 10
This commit is contained in:
parent
8367e7d6ee
commit
533cb2c8da
1 changed files with 4 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ void djui_panel_join_lobby(struct DjuiBase* caller) {
|
||||||
|
|
||||||
void djui_panel_join_query(uint64_t aLobbyId, UNUSED uint64_t aOwnerId, uint16_t aConnections, uint16_t aMaxConnections, UNUSED const char* aGame, const char* aVersion, const char* aHostName, const char* aMode, const char* aDescription) {
|
void djui_panel_join_query(uint64_t aLobbyId, UNUSED uint64_t aOwnerId, uint16_t aConnections, uint16_t aMaxConnections, UNUSED const char* aGame, const char* aVersion, const char* aHostName, const char* aMode, const char* aDescription) {
|
||||||
if (!sLobbyLayout) { return; }
|
if (!sLobbyLayout) { return; }
|
||||||
|
if (!sLobbyPaginated) { return; }
|
||||||
if (aMaxConnections > MAX_PLAYERS) { return; }
|
if (aMaxConnections > MAX_PLAYERS) { return; }
|
||||||
|
|
||||||
char playerText[64] = "";
|
char playerText[64] = "";
|
||||||
|
|
@ -96,6 +97,8 @@ void djui_panel_join_query(uint64_t aLobbyId, UNUSED uint64_t aOwnerId, uint16_t
|
||||||
}
|
}
|
||||||
|
|
||||||
void djui_panel_join_query_finish(void) {
|
void djui_panel_join_query_finish(void) {
|
||||||
|
if (!sLobbyLayout) { return; }
|
||||||
|
if (!sLobbyPaginated) { return; }
|
||||||
if (!sRefreshButton) { return; }
|
if (!sRefreshButton) { return; }
|
||||||
djui_text_set_text(sRefreshButton->text, DLANG(LOBBIES, REFRESH));
|
djui_text_set_text(sRefreshButton->text, DLANG(LOBBIES, REFRESH));
|
||||||
djui_base_set_enabled(&sRefreshButton->base, true);
|
djui_base_set_enabled(&sRefreshButton->base, true);
|
||||||
|
|
@ -141,7 +144,7 @@ void djui_panel_join_lobbies_create(struct DjuiBase* caller, const char* passwor
|
||||||
struct DjuiThreePanel* panel = djui_panel_menu_create(private ? DLANG(LOBBIES, PRIVATE_LOBBIES) : DLANG(LOBBIES, PUBLIC_LOBBIES));
|
struct DjuiThreePanel* panel = djui_panel_menu_create(private ? DLANG(LOBBIES, PRIVATE_LOBBIES) : DLANG(LOBBIES, PUBLIC_LOBBIES));
|
||||||
struct DjuiBase* body = djui_three_panel_get_body(panel);
|
struct DjuiBase* body = djui_three_panel_get_body(panel);
|
||||||
{
|
{
|
||||||
sLobbyPaginated = djui_paginated_create(body, 8);
|
sLobbyPaginated = djui_paginated_create(body, 10);
|
||||||
sLobbyLayout = sLobbyPaginated->layout;
|
sLobbyLayout = sLobbyPaginated->layout;
|
||||||
djui_flow_layout_set_margin(sLobbyLayout, 4);
|
djui_flow_layout_set_margin(sLobbyLayout, 4);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue