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

◆ Play() [3/3]

void UIScriptedMenu::Play ( )
inlineprotected

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

679 {
681 {
682 string mapNM = m_SelectedServer.GetMapToRun();
683
684 if (!g_Game.VerifyWorldOwnership(mapNM))
685 {
686 /*JsonDataDLCList data = DlcDataLoader.GetData();
687 foreach (JsonDataDLCInfo dlcInfo : data.DLCs)
688 {
689 // fetch mod info
690 // if server runs this dlcInfo && !info.GetIsOwned()
691 //info.GoToStore();
692 }*/
693
694 GetGame().GetUIManager().ShowDialog("#server_browser_connect_label", "#mod_detail_info_warning", 232, DBT_OK, DBB_NONE, DMT_INFO, GetGame().GetUIManager().GetMenu());
695 g_Game.GoBuyWorldDLC(mapNM);
696 return;
697 }
698
699 string ip = m_SelectedServer.GetIP();
700 int port = m_SelectedServer.GetPort();
701 int steamQueryPort = m_SelectedServer.GetSteamQueryPort();
702 g_Game.ConnectFromServerBrowserEx(ip, port, steamQueryPort, "");
703 }
704 }
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().