DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetFilterOptionsConsoles()

GetServersInput ScriptedWidgetEventHandler::GetFilterOptionsConsoles ( )
inlineprotected

См. определение в файле ServerBrowserFilterContainer.c строка 548

549 {
550 GetServersInput input = new GetServersInput();
551
553
554 #ifdef PLATFORM_MSSTORE
555 input.m_Platform = 2;
556 #endif
557 #ifdef PLATFORM_XBOX
558 input.m_Platform = 2;
559 #endif
560 #ifdef PLATFORM_PS4
561 input.m_Platform = 3;
562 #endif
563
564 if (m_SearchByName)
565 {
566 string name_text = m_SearchByName.GetText();
567 if(name_text != "")
568 {
569 input.SetNameFilter(name_text);
570 }
571 }
572
573 if (m_RegionFilter.IsSet())
574 {
575 input.SetRegionIdFilter(m_RegionFilter.GetValue());
576 }
577
578 if (m_FullServerFilter.IsSet())
579 {
580 input.SetFullServer(m_FullServerFilter.IsEnabled());
581 if (m_FullServerFilter.IsEnabled())
582 {
583 input.SetFreeSlotsMax(1);
584 }
585 else
586 {
587 input.SetFreeSlotsMin(1);
588 }
589 }
590
591 if (m_ThirdPersonFilter.IsSet())
592 {
593 // modeId is used to specify whether third person is allowed on CONSOLE servers
594 // ALLOW third person: modeId = 0
595 // BLOCK third person: modeId = 1
596 input.SetModeIdFilter(!m_ThirdPersonFilter.IsEnabled());
597 }
598
599 if (m_PasswordFilter.IsSet())
600 {
602 }
603
604 if (m_WhitelistFilter.IsSet())
605 {
606 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
607 }
608
609 if (m_KeyboardFilter.IsSet())
610 {
612 }
613
614 if (m_MapFilter.IsSet())
615 {
616 string internalMapName = ServerBrowserHelperFunctions.GetInternalMapName(m_MapFilter.GetStringValue());
617 if (internalMapName != "")
618 input.SetMapNameToRun(internalMapName);
619 }
620
621 if (m_PreviouslyPlayedFilter.IsSet())
622 {
624 }
625
626 return input;
627 }
const int SERVER_BROWSER_PAGE_SIZE
Определения ServerBrowserMenuNew.c:6
int m_RowsPerPage
Определения BiosLobbyService.c:382
void SetModeIdFilter(int mode_id)
Определения BiosLobbyService.c:450
void SetPreviouslyPlayed(bool show)
Определения BiosLobbyService.c:559
void SetFreeSlotsMin(int freeSlotsMin)
Определения BiosLobbyService.c:516
int m_Platform
Определения BiosLobbyService.c:387
void SetNameFilter(string name)
Определения BiosLobbyService.c:438
void SetMapNameToRun(string mapNameToRun)
Определения BiosLobbyService.c:474
void SetFullServer(bool show)
Определения BiosLobbyService.c:571
void SetFreeSlotsMax(int freeSlotsMax)
Определения BiosLobbyService.c:522
void SetMouseAndKeyboardEnabled(bool enabledMouseAndKeyboard)
Определения BiosLobbyService.c:540
void SetRegionIdFilter(int region)
Определения BiosLobbyService.c:504
void SetWhitelistEnabled(bool whitelistEnabled)
Определения BiosLobbyService.c:636
void SetIsPasswordProtectedFilter(bool password_protected)
Определения BiosLobbyService.c:498
ref OptionSelector m_PasswordFilter
Определения ServerBrowserFilterContainer.c:18
ref OptionSelector m_PreviouslyPlayedFilter
Определения ServerBrowserFilterContainer.c:21
ref OptionSelector m_WhitelistFilter
Определения ServerBrowserFilterContainer.c:19
ref OptionSelectorMultistate m_MapFilter
Определения ServerBrowserFilterContainer.c:13
ref OptionSelector m_ThirdPersonFilter
Определения ServerBrowserFilterContainer.c:24
ref OptionSelector m_FullServerFilter
Определения ServerBrowserFilterContainer.c:23
ref OptionSelector m_KeyboardFilter
Определения ServerBrowserFilterContainer.c:20
ref OptionSelectorMultistate m_RegionFilter
Определения ServerBrowserFilterContainer.c:11
EditBoxWidget m_SearchByName
Определения ServerBrowserFilterContainer.c:5

Перекрестные ссылки ServerBrowserHelperFunctions::GetInternalMapName(), m_FullServerFilter, m_KeyboardFilter, m_MapFilter, m_PasswordFilter, GetServersInput::m_Platform, m_PreviouslyPlayedFilter, m_RegionFilter, GetServersInput::m_RowsPerPage, m_SearchByName, m_ThirdPersonFilter, m_WhitelistFilter, SERVER_BROWSER_PAGE_SIZE, GetServersInput::SetFreeSlotsMax(), GetServersInput::SetFreeSlotsMin(), GetServersInput::SetFullServer(), GetServersInput::SetIsPasswordProtectedFilter(), GetServersInput::SetMapNameToRun(), GetServersInput::SetModeIdFilter(), GetServersInput::SetMouseAndKeyboardEnabled(), GetServersInput::SetNameFilter(), GetServersInput::SetPreviouslyPlayed(), GetServersInput::SetRegionIdFilter() и GetServersInput::SetWhitelistEnabled().