I'm trying to make a horizontal bar to represent a variable on my HUD. The bar shows up fine, but it doesn't change at all when the variable changes. Here's my code:
Code:
panel chargebar{
pos_x=0;
pos_y=0;
window (20,30,600,5,whitebar,chargelevel,0);
flags=overlay,visible,refresh;
}
Some info:
-whitebar is a 600x20 .pcx file
-chargelevel is always between 0 and 100
Does anyone know what the problem could be?