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

◆ UpdateSlotTexture()

void ItemBase::UpdateSlotTexture ( int slot_index)
inlineprivate

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

513 {
514 Slot slot = m_Slots.Get( slot_index );
515
516 // Show / Hide selections according to DIGGED or COVERED states.
517
518 if ( slot.IsDigged() || slot.IsPlanted() )
519 {
520 string str_hide = SLOT_SELECTION_COVERED_PREFIX + (slot_index + 1).ToStringLen(2);
521 string str_show = SLOT_SELECTION_DIGGED_PREFIX + (slot_index + 1).ToStringLen(1);
522
523 HideSelection( str_hide );
524 ShowSelection( str_show );
525 }
526
527 if ( slot.GetFertilityState() == eFertlityState.FERTILIZED && slot.GetFertilityType() != "" )
528 {
529 SetSlotTextureFertilized( slot_index, slot.GetFertilityType() );
530 }
531 else
532 {
533 SetSlotTextureDigged( slot_index );
534 }
535 }
string ToStringLen(int len)
Integer to string with fixed length, padded with zeroes.
Определения EnConvert.c:59
eFertlityState
Определения Slot.c:2
ref array< ref Slot > m_Slots
Определения GardenBase.c:25
static const string SLOT_SELECTION_COVERED_PREFIX
Определения GardenBase.c:18
void SetSlotTextureDigged(int slot_index)
Определения GardenBase.c:537
static const string SLOT_SELECTION_DIGGED_PREFIX
Определения GardenBase.c:17
void SetSlotTextureFertilized(int slot_index, string item_type)
Определения GardenBase.c:561

Перекрестные ссылки m_Slots, SetSlotTextureDigged(), SetSlotTextureFertilized(), SLOT_SELECTION_COVERED_PREFIX, SLOT_SELECTION_DIGGED_PREFIX и ToStringLen().

Используется в Fertilize(), RemoveSlot(), SyncSlots() и UpdateTexturesOnAllSlots().