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

◆ UpdateProxySelections()

void UpdateProxySelections ( )
protected

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

396 {
397 if ( GetInventory().AttachmentCount() > 0)
398 {
399 ItemBase attachment = ItemBase.Cast( GetInventory().GetAttachmentFromIndex(0) );
400
401 if ( attachment )
402 {
403 // Hide all proxies
404 for (int i = 1; i <= 3; i++)
405 {
406 HideSelection("s" + i + "_charge");
407 }
408
409 // Now show the one we need to see
410 string proxy_to_show = string.Format("s%1_charge", GetState() );
411 //Print(proxy_to_show);
412 ShowSelection( proxy_to_show );
413 }
414 }
415 }
int GetState()
returns one of STATE_...
Определения Trap_TripWire.c:177

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