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

◆ updateSlotsCount()

void updateSlotsCount ( )
protected

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

229 {
230 int slotsCount = _player.GetQuickBarBonus();
231 int attCount = _player.GetInventory().AttachmentCount();
232
233 for ( int i = 0; i < attCount; ++i)
234 {
235 slotsCount += _player.GetInventory().GetAttachmentFromIndex(i).GetQuickBarBonus();
236 }
237
238 //max slots is 10
239 SetSize(Math.Min(slotsCount, 10));
240 }
PlayerBase _player
Определения QuickBarBase.c:18
void SetSize(int newSize)
Определения QuickBarBase.c:34
Определения EnMath.c:7
static proto float Min(float x, float y)
Returns smaller of two given values.

Перекрестные ссылки _player, Math::Min() и SetSize().