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

◆ RefreshDLCIcon()

void ScriptedWidgetEventHandler::RefreshDLCIcon ( )
inlineprivate

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

459 {
460 if (m_ServerData && m_ServerData.m_DLCs != EDLCId.UNKNOWN)
461 {
462 string mapNM = GetMapToRun();
463 ContentDLC contentDLC = g_Game.GetContentDLCService();
464 EDLCId dlcId = contentDLC.GetDLCFromWorld(mapNM);
465 bool own = contentDLC.IsDLCInstalled(dlcId);
466 m_ServerModIcon.Show(true);
467 m_ServerModIcon.FindWidget("Owned").Show(own);
468 m_ServerModIcon.FindWidget("Unowned").Show(!own);
469 }
470 else
471 {
472 m_ServerModIcon.FindWidget("Owned").Show(false);
473 m_ServerModIcon.FindWidget("Unowned").Show(false);
474 }
475 }
EDLCId
Определения ContentDLC.c:4
DayZGame g_Game
Определения DayZGame.c:4074
proto bool IsDLCInstalled(EDLCId dlcId)
proto EDLCId GetDLCFromWorld(string world)
ImageWidget m_ServerModIcon
Определения ServerBrowserEntry.c:13
string GetMapToRun()
Определения ServerBrowserEntry.c:548
ref GetServersResultRow m_ServerData
Определения ServerBrowserEntry.c:34

Перекрестные ссылки g_Game, ContentDLC::GetDLCFromWorld(), GetMapToRun(), ContentDLC::IsDLCInstalled(), m_ServerData и m_ServerModIcon.

Используется в FillInfo().