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

◆ UpdateProxySelections()

void UpdateProxySelections ( )
protected

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

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

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