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

◆ SetBattleyeState()

void ScriptedWidgetEventHandler::SetBattleyeState ( int enabled = -1)
inlineprotected

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

263 {
264 string result = "#STR_server_browser_no_server_selected";
265 int color = ARGB(255, 255, 255, 255);
266
267 switch (enabled)
268 {
269 case 0:
270 {
271 result = "#server_browser_entry_disabled";
272 color = ARGB(255, 255, 0, 0);
273 break:
274 }
275 case 1:
276 {
277 result = "#server_browser_entry_enabled";
278 color = ARGB(255, 0, 255, 0);
279 break:
280 }
281 }
282
283 m_BattleyeResult.SetText(result);
284 m_BattleyeResult.SetColor(color);
285 }
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

Перекрестные ссылки ARGB() и m_BattleyeResult.