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

◆ Init()

void SlotsIcon::Init ( EntityAI obj,
bool reservation = false )
inlineprotected

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

502 {
503 if( m_Obj != obj )
504 {
506 m_Obj = obj;
507 m_Item = ItemBase.Cast( m_Obj );
508 m_Obj.GetOnItemFlipped().Insert( UpdateFlip );
509 m_Obj.GetOnViewIndexChanged().Insert( SetItemPreview );
510 m_Reserved = reservation;
511 m_Container = null;
512
513 if(reservation)
514 {
515 ItemManager.GetInstance().SetWidgetDraggable( m_PanelWidget, false );
516
517 m_IsWeapon = false;
518 m_IsMagazine = false;
519 m_HasTemperature = false;
520 m_HasQuantity = false;
521 m_HasItemSize = false;
522 }
523 else
524 {
530 }
531
532 m_ReservedWidget.Show(reservation);
533
535
536 m_GhostSlot.Show( false );
537 m_PanelWidget.Show( true );
538
539 Refresh();
540#ifdef PLATFORM_CONSOLE
541 if ( IsFocused() )
542 {
543 Inventory.GetInstance().UpdateConsoleToolbar();
544 }
545#endif
546 }
547 }
void Inventory(LayoutHolder parent)
Определения Inventory.c:74
class GP5GasMask extends MaskBase ItemBase
void ClearRemainSelected()
Определения SlotsIcon.c:549
override void Refresh()
Определения SlotsIcon.c:345
void UpdateFlip(bool flipped)
Определения SlotsIcon.c:491
bool IsFocused()
Определения SlotsIcon.c:315
Container m_Container
Определения SlotsIcon.c:16
ItemBase m_Item
Определения SlotsIcon.c:14
bool m_HasTemperature
Определения SlotsIcon.c:8
void CheckIsMagazine()
Определения SlotsIcon.c:694
bool m_IsMagazine
Определения SlotsIcon.c:7
void CheckHasTemperature()
Определения SlotsIcon.c:699
Widget m_ReservedWidget
Определения SlotsIcon.c:26
bool m_IsWeapon
Определения SlotsIcon.c:6
void CheckHasItemSize()
Определения SlotsIcon.c:719
EntityAI m_Obj
Определения SlotsIcon.c:13
bool m_HasItemSize
Определения SlotsIcon.c:10
ImageWidget m_GhostSlot
Определения SlotsIcon.c:29
bool m_HasQuantity
Определения SlotsIcon.c:9
void CheckIsWeapon()
Определения SlotsIcon.c:623
Widget m_PanelWidget
Определения SlotsIcon.c:20
void SetItemPreview()
Определения SlotsIcon.c:471
void CheckHasQuantity()
Определения SlotsIcon.c:707
bool m_Reserved
Определения SlotsIcon.c:51

Перекрестные ссылки CheckHasItemSize(), CheckHasQuantity(), CheckHasTemperature(), CheckIsMagazine(), CheckIsWeapon(), ClearRemainSelected(), ItemManager::GetInstance(), Inventory(), IsFocused(), m_Container, m_GhostSlot, m_HasItemSize, m_HasQuantity, m_HasTemperature, m_IsMagazine, m_IsWeapon, m_Item, m_Obj, m_PanelWidget, m_Reserved, m_ReservedWidget, Refresh(), SetItemPreview(), ItemManager::SetWidgetDraggable() и UpdateFlip().

Используется в Attachments::AttachmentAdded(), PlayerContainer::ItemAttached(), ZombieContainer::ItemAttached(), Attachments::OnAttachmentReservationSet(), PlayerContainer::OnAttachmentReservationSet(), AttachmentCategoriesRow::RefreshSlot() и VicinitySlotsContainer::ShowItemsInContainers().