702 {
703 float alpha = 1;
705 int whiteColor =
ARGBF(1, 1, 1, 1);
706 int populationColor = whiteColor;
707 int populationOutline = 1;
708
710 {
711 if (maxPlayers > 0)
712 {
714 float pop_percentage = population / maxPlayers;
715
716 if (pop_percentage >= 1)
717 {
718 populationColor =
ARGBF(1, 1, 0, 0);
719 }
720 else if (pop_percentage >= 0.8)
721 {
722 populationColor =
ARGBF(1, 1, 0.5, 0);
723 }
724 }
725 }
726 else
727 {
728 alpha = 0.5;
729 populationOutline = 0;
730
732 }
733
744 }
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.