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

◆ GetFilterOptionsConsoles()

GetServersInput ScriptedWidgetEventHandler::GetFilterOptionsConsoles ( )
inlineprotected

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

549 {
550 GetServersInput input = new GetServersInput();
551
553
554 #ifdef PLATFORM_XBOX
555 input.m_Platform = 2;
556 #endif
557 #ifdef PLATFORM_PS4
558 input.m_Platform = 3;
559 #endif
560
561 if (m_SearchByName)
562 {
563 string name_text = m_SearchByName.GetText();
564 if(name_text != "")
565 {
566 input.SetNameFilter(name_text);
567 }
568 }
569
570 if (m_RegionFilter.IsSet())
571 {
572 input.SetRegionIdFilter(m_RegionFilter.GetValue());
573 }
574
575 if (m_FullServerFilter.IsSet())
576 {
577 input.SetFullServer(m_FullServerFilter.IsEnabled());
578 if (m_FullServerFilter.IsEnabled())
579 {
580 input.SetFreeSlotsMax(1);
581 }
582 else
583 {
584 input.SetFreeSlotsMin(1);
585 }
586 }
587
588 if (m_ThirdPersonFilter.IsSet())
589 {
590 // modeId is used to specify whether third person is allowed on CONSOLE servers
591 // ALLOW third person: modeId = 0
592 // BLOCK third person: modeId = 1
593 input.SetModeIdFilter(!m_ThirdPersonFilter.IsEnabled());
594 }
595
596 if (m_PasswordFilter.IsSet())
597 {
599 }
600
601 if (m_WhitelistFilter.IsSet())
602 {
603 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
604 }
605
606 if (m_KeyboardFilter.IsSet())
607 {
609 }
610
611 if (m_MapFilter.IsSet())
612 {
613 string internalMapName = ServerBrowserHelperFunctions.GetInternalMapName(m_MapFilter.GetStringValue());
614 if (internalMapName != "")
615 input.SetMapNameToRun(internalMapName);
616 }
617
618 if (m_PreviouslyPlayedFilter.IsSet())
619 {
621 }
622
623 return input;
624 }
const int SERVER_BROWSER_PAGE_SIZE
Определения ServerBrowserMenuNew.c:6
int m_RowsPerPage
Определения BiosLobbyService.c:356
void SetModeIdFilter(int mode_id)
Определения BiosLobbyService.c:424
void SetPreviouslyPlayed(bool show)
Определения BiosLobbyService.c:533
void SetFreeSlotsMin(int freeSlotsMin)
Определения BiosLobbyService.c:490
int m_Platform
Определения BiosLobbyService.c:361
void SetNameFilter(string name)
Определения BiosLobbyService.c:412
void SetMapNameToRun(string mapNameToRun)
Определения BiosLobbyService.c:448
void SetFullServer(bool show)
Определения BiosLobbyService.c:545
void SetFreeSlotsMax(int freeSlotsMax)
Определения BiosLobbyService.c:496
void SetMouseAndKeyboardEnabled(bool enabledMouseAndKeyboard)
Определения BiosLobbyService.c:514
void SetRegionIdFilter(int region)
Определения BiosLobbyService.c:478
void SetWhitelistEnabled(bool whitelistEnabled)
Определения BiosLobbyService.c:610
void SetIsPasswordProtectedFilter(bool password_protected)
Определения BiosLobbyService.c:472
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().