fixed Netplay interface

This commit is contained in:
Nayla Hanegan 2024-01-04 19:06:20 -05:00
commit 09fe9ed15b
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D

View file

@ -174,17 +174,17 @@ void NetPlaySetupDialog::CreateMainLayout()
connection_layout->addWidget(m_connect_port_label, 0, 2); connection_layout->addWidget(m_connect_port_label, 0, 2);
connection_layout->addWidget(m_connect_port_box, 0, 3); connection_layout->addWidget(m_connect_port_box, 0, 3);
connection_layout->addWidget( connection_layout->addWidget(
new QLabel( new QLabel(tr(
tr("ALERT:\n\n" "ALERT:\n\n"
"All players must use the same Dolphin version, unless MPN Dolphin is used to host\n" "All players must use the same Dolphin version, unless MPN Dolphin is used to host\n"
"If enabled, SD cards must be identical between players.\n" "If enabled, SD cards must be identical between players.\n"
"If DSP LLE is used, DSP ROMs must be identical between players.\n" "If DSP LLE is used, DSP ROMs must be identical between players.\n"
"If a game is hanging on boot, it may not support Dual Core Netplay." "If a game is hanging on boot, it may not support Dual Core Netplay."
" Disable Dual Core.\n" " Disable Dual Core.\n"
"If connecting directly, the host must have the chosen UDP port open/forwarded!\n" "If connecting directly, the host must have the chosen UDP port open/forwarded!\n"
"\n" "\n"
"Wii Remote support in netplay is experimental and may not work correctly.\n" "Wii Remote support in netplay is experimental and may not work correctly.\n"
"Use at your own risk.\n")), "Use at your own risk.\n")),
1, 0, -1, -1); 1, 0, -1, -1);
connection_layout->addWidget(m_connect_button, 3, 3, Qt::AlignRight); connection_layout->addWidget(m_connect_button, 3, 3, Qt::AlignRight);
@ -209,7 +209,6 @@ void NetPlaySetupDialog::CreateMainLayout()
m_host_server_name->setToolTip(tr("Name of your session shown in the server browser")); m_host_server_name->setToolTip(tr("Name of your session shown in the server browser"));
m_host_server_name->setPlaceholderText(tr("Name")); m_host_server_name->setPlaceholderText(tr("Name"));
host_layout->addWidget(m_host_port_box, 0, 0, Qt::AlignLeft); host_layout->addWidget(m_host_port_box, 0, 0, Qt::AlignLeft);
#ifdef USE_UPNP #ifdef USE_UPNP
host_layout->addWidget(m_host_upnp, 0, 5, Qt::AlignRight); host_layout->addWidget(m_host_upnp, 0, 5, Qt::AlignRight);
@ -273,10 +272,12 @@ void NetPlaySetupDialog::ConnectWidgets()
m_host_chunked_upload_limit_box->setEnabled(value); m_host_chunked_upload_limit_box->setEnabled(value);
SaveSettings(); SaveSettings();
}); });
connect(m_host_chunked_upload_limit_box, &QSpinBox::valueChanged, this, connect(m_host_chunked_upload_limit_box, &QSpinBox::valueChanged, this,
&NetPlaySetupDialog::SaveSettings); &NetPlaySetupDialog::SaveSettings);
connect(m_host_server_browser, &QCheckBox::toggled, this, &NetPlaySetupDialog::SaveSettings); connect(m_host_server_browser, &QCheckBox::toggled, this, &NetPlaySetupDialog::SaveSettings);
connect(m_host_server_name, &QLineEdit::textChanged, this, &NetPlaySetupDialog::SaveSettings); connect(m_host_server_name, &QLineEdit::textChanged, this, &NetPlaySetupDialog::SaveSettings);
#ifdef USE_UPNP #ifdef USE_UPNP
@ -329,7 +330,6 @@ void NetPlaySetupDialog::SaveSettings()
Config::SetBaseOrCurrent(Config::NETPLAY_INDEX_NAME, m_nickname_edit->text().toStdString()); Config::SetBaseOrCurrent(Config::NETPLAY_INDEX_NAME, m_nickname_edit->text().toStdString());
Config::SetBaseOrCurrent(Config::NETPLAY_INDEX_PASSWORD, ""); Config::SetBaseOrCurrent(Config::NETPLAY_INDEX_PASSWORD, "");
// Browser Stuff // Browser Stuff
auto& settings = Settings::Instance().GetQSettings(); auto& settings = Settings::Instance().GetQSettings();
@ -543,7 +543,6 @@ void NetPlaySetupDialog::UpdateListBrowser()
m_table_widget->setItem(i, 1, game_id); m_table_widget->setItem(i, 1, game_id);
m_table_widget->setItem(i, 2, player_count); m_table_widget->setItem(i, 2, player_count);
m_table_widget->setItem(i, 3, in_game); m_table_widget->setItem(i, 3, in_game);
} }
m_status_label->setText( m_status_label->setText(