695 {
696 float alpha = 1;
698 int whiteColor =
ARGBF(1, 1, 1, 1);
699 int populationColor = whiteColor;
700 int populationOutline = 1;
701
703 {
704 if (maxPlayers > 0)
705 {
707 float pop_percentage = population / maxPlayers;
708
709 if (pop_percentage >= 1)
710 {
711 populationColor =
ARGBF(1, 1, 0, 0);
712 }
713 else if (pop_percentage >= 0.8)
714 {
715 populationColor =
ARGBF(1, 1, 0.5, 0);
716 }
717 }
718 }
719 else
720 {
721 alpha = 0.5;
722 populationOutline = 0;
723
725 }
726
737 }
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.