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