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);
249 }
proto void Print(void var)
Prints content of variable to console/log.