mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(UI/QT) network.cpp - dehardcode more additions
This commit is contained in:
parent
f3a7f6971b
commit
181cff34d8
@ -10465,6 +10465,7 @@ static bool setting_append_list(
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_STRING_LINE_EDIT;
|
||||
|
||||
CONFIG_STRING(
|
||||
list, list_info,
|
||||
@ -10479,6 +10480,7 @@ static bool setting_append_list(
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_STRING_LINE_EDIT;
|
||||
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
@ -10575,6 +10577,7 @@ static bool setting_append_list(
|
||||
general_read_handler);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_STRING_LINE_EDIT;
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
@ -10605,6 +10608,7 @@ static bool setting_append_list(
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_PASSWORD_LINE_EDIT;
|
||||
|
||||
CONFIG_STRING(
|
||||
list, list_info,
|
||||
@ -10619,6 +10623,7 @@ static bool setting_append_list(
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_PASSWORD_LINE_EDIT;
|
||||
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
@ -10694,6 +10699,7 @@ static bool setting_append_list(
|
||||
parent_group,
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_UINT_SPINBOX;
|
||||
menu_settings_list_current_add_range(list, list_info, -600, 600, 1, false, false);
|
||||
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
||||
|
||||
@ -10708,6 +10714,7 @@ static bool setting_append_list(
|
||||
parent_group,
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_UINT_SPINBOX;
|
||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||
menu_settings_list_current_add_range(list, list_info, 0, 15, 1, true, true);
|
||||
|
||||
@ -10722,6 +10729,7 @@ static bool setting_append_list(
|
||||
parent_group,
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_UINT_SPINBOX;
|
||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||
menu_settings_list_current_add_range(list, list_info, 0, 15, 1, true, true);
|
||||
|
||||
@ -10756,6 +10764,7 @@ static bool setting_append_list(
|
||||
(*list)[list_info->index - 1].get_string_representation =
|
||||
&setting_get_string_representation_netplay_share_digital;
|
||||
menu_settings_list_current_add_range(list, list_info, 0, RARCH_NETPLAY_SHARE_DIGITAL_LAST-1, 1, true, true);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_UINT_COMBOBOX;
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
@ -10772,6 +10781,7 @@ static bool setting_append_list(
|
||||
(*list)[list_info->index - 1].get_string_representation =
|
||||
&setting_get_string_representation_netplay_share_analog;
|
||||
menu_settings_list_current_add_range(list, list_info, 0, RARCH_NETPLAY_SHARE_ANALOG_LAST-1, 1, true, true);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_UINT_COMBOBOX;
|
||||
|
||||
for (user = 0; user < MAX_USERS; user++)
|
||||
{
|
||||
|
@ -55,14 +55,14 @@ QWidget *NetplayPage::widget()
|
||||
unsigned row = 0;
|
||||
unsigned column = 0;
|
||||
|
||||
checksLayout->addCheckBox(MENU_ENUM_LABEL_NETPLAY_PUBLIC_ANNOUNCE);
|
||||
checksLayout->addCheckBox(MENU_ENUM_LABEL_NETPLAY_START_AS_SPECTATOR);
|
||||
checksLayout->add(MENU_ENUM_LABEL_NETPLAY_PUBLIC_ANNOUNCE);
|
||||
checksLayout->add(MENU_ENUM_LABEL_NETPLAY_START_AS_SPECTATOR);
|
||||
|
||||
serverForm->addStringLineEdit(MENU_ENUM_LABEL_NETPLAY_IP_ADDRESS);
|
||||
serverForm->addUIntSpinBox(MENU_ENUM_LABEL_NETPLAY_TCP_UDP_PORT);
|
||||
serverForm->addPasswordLineEdit(MENU_ENUM_LABEL_NETPLAY_PASSWORD);
|
||||
serverForm->addPasswordLineEdit(MENU_ENUM_LABEL_NETPLAY_SPECTATE_PASSWORD);
|
||||
serverForm->addCheckBox(MENU_ENUM_LABEL_NETPLAY_NAT_TRAVERSAL);
|
||||
serverForm->add(MENU_ENUM_LABEL_NETPLAY_IP_ADDRESS);
|
||||
serverForm->add(MENU_ENUM_LABEL_NETPLAY_TCP_UDP_PORT);
|
||||
serverForm->add(MENU_ENUM_LABEL_NETPLAY_PASSWORD);
|
||||
serverForm->add(MENU_ENUM_LABEL_NETPLAY_SPECTATE_PASSWORD);
|
||||
serverForm->add(MENU_ENUM_LABEL_NETPLAY_NAT_TRAVERSAL);
|
||||
|
||||
serverLayout->addWidget(createMitmServerGroup());
|
||||
serverLayout->addSpacing(30);
|
||||
@ -70,16 +70,16 @@ QWidget *NetplayPage::widget()
|
||||
|
||||
serverGroup->setLayout(serverLayout);
|
||||
|
||||
slaveGroup->addCheckBox(MENU_ENUM_LABEL_NETPLAY_ALLOW_SLAVES);
|
||||
slaveGroup->addCheckBox(MENU_ENUM_LABEL_NETPLAY_REQUIRE_SLAVES);
|
||||
slaveGroup->add(MENU_ENUM_LABEL_NETPLAY_ALLOW_SLAVES);
|
||||
slaveGroup->add(MENU_ENUM_LABEL_NETPLAY_REQUIRE_SLAVES);
|
||||
|
||||
syncGroup->addCheckBox(MENU_ENUM_LABEL_NETPLAY_STATELESS_MODE);
|
||||
syncGroup->addUIntSpinBox(MENU_ENUM_LABEL_NETPLAY_CHECK_FRAMES);
|
||||
syncGroup->addUIntSpinBox(MENU_ENUM_LABEL_NETPLAY_INPUT_LATENCY_FRAMES_MIN);
|
||||
syncGroup->addUIntSpinBox(MENU_ENUM_LABEL_NETPLAY_INPUT_LATENCY_FRAMES_RANGE);
|
||||
syncGroup->add(MENU_ENUM_LABEL_NETPLAY_STATELESS_MODE);
|
||||
syncGroup->add(MENU_ENUM_LABEL_NETPLAY_CHECK_FRAMES);
|
||||
syncGroup->add(MENU_ENUM_LABEL_NETPLAY_INPUT_LATENCY_FRAMES_MIN);
|
||||
syncGroup->add(MENU_ENUM_LABEL_NETPLAY_INPUT_LATENCY_FRAMES_RANGE);
|
||||
|
||||
inputGroup->addUIntComboBox(MENU_ENUM_LABEL_NETPLAY_SHARE_DIGITAL);
|
||||
inputGroup->addUIntComboBox(MENU_ENUM_LABEL_NETPLAY_SHARE_ANALOG);
|
||||
inputGroup->add(MENU_ENUM_LABEL_NETPLAY_SHARE_DIGITAL);
|
||||
inputGroup->add(MENU_ENUM_LABEL_NETPLAY_SHARE_ANALOG);
|
||||
|
||||
for (i = 0; i < MAX_USERS; i++)
|
||||
{
|
||||
@ -167,9 +167,9 @@ QWidget *UpdaterPage::widget()
|
||||
QWidget *widget = new QWidget;
|
||||
FormLayout *layout = new FormLayout;
|
||||
|
||||
layout->addStringLineEdit(MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL);
|
||||
layout->addStringLineEdit(MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL);
|
||||
layout->addCheckBox(MENU_ENUM_LABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE);
|
||||
layout->add(MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL);
|
||||
layout->add(MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL);
|
||||
layout->add(MENU_ENUM_LABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE);
|
||||
|
||||
widget->setLayout(layout);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user