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

◆ GetFilterOptionsPC()

GetServersInput ScriptedWidgetEventHandler::GetFilterOptionsPC ( )
inlineprotected

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

466 {
467 GetServersInput input = new GetServersInput();
468
470 input.m_Platform = 1;
471
472 if (m_SearchByName)
473 {
474 string name_text = m_SearchByName.GetText();
475 if (name_text != "")
476 {
477 input.SetNameFilter(name_text);
478 }
479 }
480
481 if (m_FullServerFilter.IsSet())
482 {
483 input.SetFullServer(m_FullServerFilter.IsEnabled());
484 }
485
486 if (m_ThirdPersonFilter.IsSet())
487 {
488 input.SetThirdPerson(m_ThirdPersonFilter.IsEnabled());
489 }
490
491 if (m_PasswordFilter.IsSet())
492 {
493 input.SetPassworded(m_PasswordFilter.IsEnabled());
494 }
495
496 if (m_WhitelistFilter.IsSet())
497 {
498 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
499 }
500
501 if (m_MapFilter.IsSet())
502 {
503 string internalMapName = ServerBrowserHelperFunctions.GetInternalMapName(m_MapFilter.GetStringValue());
504 if (internalMapName != "")
505 input.SetMapNameToRun(internalMapName);
506 }
507
508 #ifndef PLATFORM_CONSOLE
509 if (m_SearchByIP)
510 {
511 string ip_text = m_SearchByIP.GetText();
512 if (ip_text != "")
513 {
514 input.SetHostIp(ip_text);
515 }
516 }
517
518 if (m_PingFilter.IsSet())
519 {
520 string str_ping = m_PingFilter.GetStringValue();
521 int ping = str_ping.Substring(1, str_ping.Length() - 1).ToInt();
522 input.SetPingFilter(ping);
523 }
524
525 if (m_FriendsPlayingFilter.IsSet())
526 {
527 input.SetFriendsPlaying(m_FriendsPlayingFilter.IsEnabled());
528 }
529
530 if (m_PreviouslyPlayedFilter.IsSet())
531 {
533 }
534
535 if (m_VersionMatchFilter.IsSet())
536 {
538 }
539 #endif
540
541 return input;
542 }
const int SERVER_BROWSER_PAGE_SIZE
Определения ServerBrowserMenuNew.c:6
int m_RowsPerPage
Определения BiosLobbyService.c:383
void SetHostIp(string hostIp)
Определения BiosLobbyService.c:529
void SetThirdPerson(bool show)
Определения BiosLobbyService.c:578
void SetPreviouslyPlayed(bool show)
Определения BiosLobbyService.c:560
int m_Platform
Определения BiosLobbyService.c:388
void SetPassworded(bool show)
Определения BiosLobbyService.c:618
void SetNameFilter(string name)
Определения BiosLobbyService.c:439
void SetMapNameToRun(string mapNameToRun)
Определения BiosLobbyService.c:475
void SetProperVersionMatch(bool show)
Определения BiosLobbyService.c:566
void SetFullServer(bool show)
Определения BiosLobbyService.c:572
void SetPingFilter(int pingMaxValue)
Определения BiosLobbyService.c:607
void SetFriendsPlaying(bool show)
Определения BiosLobbyService.c:554
void SetWhitelistEnabled(bool whitelistEnabled)
Определения BiosLobbyService.c:637
ref OptionSelector m_VersionMatchFilter
Определения ServerBrowserFilterContainer.c:20
ref OptionSelector m_FriendsPlayingFilter
Определения ServerBrowserFilterContainer.c:15
ref OptionSelectorMultistate m_PingFilter
Определения ServerBrowserFilterContainer.c:12
ref OptionSelector m_PasswordFilter
Определения ServerBrowserFilterContainer.c:16
ref OptionSelector m_PreviouslyPlayedFilter
Определения ServerBrowserFilterContainer.c:19
ref OptionSelector m_WhitelistFilter
Определения ServerBrowserFilterContainer.c:17
EditBoxWidget m_SearchByIP
Определения ServerBrowserFilterContainer.c:6
ref OptionSelectorMultistate m_MapFilter
Определения ServerBrowserFilterContainer.c:13
ref OptionSelector m_ThirdPersonFilter
Определения ServerBrowserFilterContainer.c:22
ref OptionSelector m_FullServerFilter
Определения ServerBrowserFilterContainer.c:21
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().