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

◆ Play() [3/3]

void UIScriptedMenu::Play ( )
inlineprotected

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

687 {
689 {
690 string mapNM = m_SelectedServer.GetMapToRun();
691
692 if (!g_Game.VerifyWorldOwnership(mapNM))
693 {
694 /*JsonDataDLCList data = DlcDataLoader.GetData();
695 foreach (JsonDataDLCInfo dlcInfo : data.DLCs)
696 {
697 // fetch mod info
698 // if server runs this dlcInfo && !info.GetIsOwned()
699 //info.GoToStore();
700 }*/
701
702 GetGame().GetUIManager().ShowDialog("#server_browser_connect_label", "#mod_detail_info_warning", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu());
703 g_Game.GoBuyWorldDLC(mapNM);
704 return;
705 }
706
707 string ip = m_SelectedServer.GetIP();
708 int port = m_SelectedServer.GetPort();
709 int steamQueryPort = m_SelectedServer.GetSteamQueryPort();
710 g_Game.ConnectFromServerBrowserEx(ip, port, steamQueryPort, "");
711 }
712 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native UIManager GetUIManager()
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
ServerBrowserEntry m_SelectedServer
Определения ServerBrowserMenuNew.c:27
proto native CGame GetGame()

Перекрестные ссылки g_Game, GetGame(), CGame::GetUIManager(), m_SelectedServer и UIManager::ShowDialog().