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

◆ GetFilterOptionsPC()

GetServersInput ScriptedWidgetEventHandler::GetFilterOptionsPC ( )
inlineprotected

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

470 {
471 GetServersInput input = new GetServersInput();
472
474 input.m_Platform = 1;
475
476 if (m_SearchByName)
477 {
478 string name_text = m_SearchByName.GetText();
479 if (name_text != "")
480 {
481 input.SetNameFilter(name_text);
482 }
483 }
484
485 if (m_FullServerFilter.IsSet())
486 {
487 input.SetFullServer(m_FullServerFilter.IsEnabled());
488 }
489
490 if (m_ThirdPersonFilter.IsSet())
491 {
492 input.SetThirdPerson(m_ThirdPersonFilter.IsEnabled());
493 }
494
495 if (m_PasswordFilter.IsSet())
496 {
497 input.SetPassworded(m_PasswordFilter.IsEnabled());
498 }
499
500 if (m_WhitelistFilter.IsSet())
501 {
502 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
503 }
504
505 if (m_MapFilter.IsSet())
506 {
507 string internalMapName = ServerBrowserHelperFunctions.GetInternalMapName(m_MapFilter.GetStringValue());
508 if (internalMapName != "")
509 input.SetMapNameToRun(internalMapName);
510 }
511
512 #ifndef PLATFORM_CONSOLE
513 if (m_SearchByIP)
514 {
515 string ip_text = m_SearchByIP.GetText();
516 if (ip_text != "")
517 {
518 input.SetHostIp(ip_text);
519 }
520 }
521
522 if (m_PingFilter.IsSet())
523 {
524 string str_ping = m_PingFilter.GetStringValue();
525 int ping = str_ping.Substring(1, str_ping.Length() - 1).ToInt();
526 input.SetPingFilter(ping);
527 }
528
529 if (m_FriendsPlayingFilter.IsSet())
530 {
531 input.SetFriendsPlaying(m_FriendsPlayingFilter.IsEnabled());
532 }
533
534 if (m_PreviouslyPlayedFilter.IsSet())
535 {
537 }
538
539 if (m_VersionMatchFilter.IsSet())
540 {
542 }
543 #endif
544
545 return input;
546 }
const int SERVER_BROWSER_PAGE_SIZE
Определения ServerBrowserMenuNew.c:6
int m_RowsPerPage
Определения BiosLobbyService.c:356
void SetHostIp(string hostIp)
Определения BiosLobbyService.c:502
void SetThirdPerson(bool show)
Определения BiosLobbyService.c:551
void SetPreviouslyPlayed(bool show)
Определения BiosLobbyService.c:533
int m_Platform
Определения BiosLobbyService.c:361
void SetPassworded(bool show)
Определения BiosLobbyService.c:591
void SetNameFilter(string name)
Определения BiosLobbyService.c:412
void SetMapNameToRun(string mapNameToRun)
Определения BiosLobbyService.c:448
void SetProperVersionMatch(bool show)
Определения BiosLobbyService.c:539
void SetFullServer(bool show)
Определения BiosLobbyService.c:545
void SetPingFilter(int pingMaxValue)
Определения BiosLobbyService.c:580
void SetFriendsPlaying(bool show)
Определения BiosLobbyService.c:527
void SetWhitelistEnabled(bool whitelistEnabled)
Определения BiosLobbyService.c:610
ref OptionSelector m_VersionMatchFilter
Определения ServerBrowserFilterContainer.c:22
ref OptionSelector m_FriendsPlayingFilter
Определения ServerBrowserFilterContainer.c:16
ref OptionSelectorMultistate m_PingFilter
Определения ServerBrowserFilterContainer.c:12
ref OptionSelector m_PasswordFilter
Определения ServerBrowserFilterContainer.c:18
ref OptionSelector m_PreviouslyPlayedFilter
Определения ServerBrowserFilterContainer.c:21
ref OptionSelector m_WhitelistFilter
Определения ServerBrowserFilterContainer.c:19
EditBoxWidget m_SearchByIP
Определения ServerBrowserFilterContainer.c:6
ref OptionSelectorMultistate m_MapFilter
Определения ServerBrowserFilterContainer.c:13
ref OptionSelector m_ThirdPersonFilter
Определения ServerBrowserFilterContainer.c:24
ref OptionSelector m_FullServerFilter
Определения ServerBrowserFilterContainer.c:23
EditBoxWidget m_SearchByName
Определения ServerBrowserFilterContainer.c:5
proto native int Length()
Returns length of string.
proto native int ToInt()
Converts string to integer.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.

Перекрестные ссылки ServerBrowserHelperFunctions::GetInternalMapName(), string::Length(), m_FriendsPlayingFilter, m_FullServerFilter, m_MapFilter, m_PasswordFilter, m_PingFilter, GetServersInput::m_Platform, m_PreviouslyPlayedFilter, GetServersInput::m_RowsPerPage, m_SearchByIP, m_SearchByName, m_ThirdPersonFilter, m_VersionMatchFilter, m_WhitelistFilter, SERVER_BROWSER_PAGE_SIZE, GetServersInput::SetFriendsPlaying(), GetServersInput::SetFullServer(), GetServersInput::SetHostIp(), GetServersInput::SetMapNameToRun(), GetServersInput::SetNameFilter(), GetServersInput::SetPassworded(), GetServersInput::SetPingFilter(), GetServersInput::SetPreviouslyPlayed(), GetServersInput::SetProperVersionMatch(), GetServersInput::SetThirdPerson(), GetServersInput::SetWhitelistEnabled(), string::Substring() и string::ToInt().