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

◆ SetBaseAlpha()

void IngameHudHeatBuffer::SetBaseAlpha ( Widget hbw,
float valuePercent,
float stageThreshold )
inlineprotected

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

240 {
241 float baseAlpha = Math.Lerp(0.05, 1.00, (valuePercent / stageThreshold));
242 baseAlpha = Math.Floor(baseAlpha * 100) / 100;
243
244 #ifdef HEATBUFFER_INDICATOR_DEBUG
245 Print("HEAT BUFFER - Set base alpha=" + baseAlpha + " | Widget=" + hbw.GetName());
246 #endif
247
248 hbw.SetAlpha(baseAlpha); // Set the current alpha to the base alpha
249 }
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки Math::Floor(), Math::Lerp() и Print().

Используется в Update().