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

◆ GetFilterOptionsConsoles()

GetServersInput ScriptedWidgetEventHandler::GetFilterOptionsConsoles ( )
inlineprotected

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

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