65 {
70
73
74 #ifdef HEATBUFFER_INDICATOR_DEBUG
75 Print(
"-----------------------------------------------------------------------");
86 #endif
87
89 {
92
93 #ifdef HEATBUFFER_INDICATOR_DEBUG
95 #endif
96
97
98
99
101 {
102
104 {
106 }
107 else
108 {
109 #ifdef HEATBUFFER_INDICATOR_DEBUG
110 Print(
"HEAT BUFFER - DYNAMIC MAX REACHED - DONT CHANGE DIRECTION");
111 #endif
113 }
114 }
116 {
118 }
119
120 #ifdef HEATBUFFER_INDICATOR_DEBUG
122 #endif
123
124
126 {
128 {
132 }
133
136 }
137
138
140 {
142
144 {
146 {
147 #ifdef HEATBUFFER_INDICATOR_DEBUG
148 Print(
"HEAT BUFFER - STAGE " +
i +
" - INCREASING");
149 hbw.SetColor(
ARGB(
hbw.GetAlpha() * 255, 220, 220, 0));
150 #endif
151
153
155 {
159 }
160
162 }
164 {
165 #ifdef HEATBUFFER_IND ICATOR_DEBUG
166 Print(
"HEAT BUFFER - STAGE " +
i +
" - DECREASING");
167 #endif
168
170
172 {
174 }
175
178 {
180 }
181
182 #ifdef HEATBUFFER_INDICATOR_DEBUG
184 hbw.SetColor(
ARGB(
hbw.GetAlpha() * 255, 0, 206, 209));
185 #endif
186
188 {
189 #ifdef HEATBUFFER_INDICATOR_DEBUG
190 Print(
"HEAT BUFFER - STAGE " +
i +
" - FLASHING");
191 #endif
192
195
196 #ifdef HEATBUFFER_INDICATOR_DEBUG
197 hbw.SetColor(
ARGB(
hbw.GetAlpha() * 255, 255, 0, 0));
198 #endif
199
201
204 {
210 }
211 }
212 }
214 {
215 #ifdef HEATBUFFER_INDICATOR_DEBUG
216 Print(
"HEAT BUFFER - STAGE " +
i +
" - STAL");
217 #endif
218
220 }
221 }
222 else
223 {
224 #ifdef HEATBUFFER_INDICATOR_DEBUG
225 Print(
"HEAT BUFFER - STAGE " +
i +
" - MAXED");
226 #endif
227
229 #ifdef HEATBUFFER_INDICATOR_DEBUG
230 hbw.SetColor(
ARGB(
hbw.GetAlpha() * 255, 220, 220, 220));
231 #endif
232 }
233 }
234 }
235
238 }
Definition HeatBuffer.c:2
const float STAGE_THRESHOLDS[NUMBER_OF_STAGES]
Definition HeatBuffer.c:4
const int NUMBER_OF_STAGES
Definition HeatBuffer.c:3
void SetBaseAlpha(Widget hbw, float valuePercent, float stageThreshold)
Definition IngameHudHeatBuffer.c:241
bool m_IsActive
Definition IngameHudHeatBuffer.c:7
void UpdateEffect(Widget hbw, float duration, float timeslice)
Definition IngameHudHeatBuffer.c:253
float m_FlashingTime
Definition IngameHudHeatBuffer.c:15
float m_CurrentValue
Definition IngameHudHeatBuffer.c:6
int ARGB(int a, int r, int g, int b)
Definition proto.c:322