Code: Select all
display_pool:
huddraw_font 50 facfont-20
huddraw_align 50 "right" "top"
huddraw_rect 50 -90 -50 100 100
huddraw_string 50 ("allies spawnpool = " + local.spawnpool_al)
huddraw_color 50 0.0 0.0 0.0
huddraw_alpha 50 0.5
huddraw_font 51 facfont-20
huddraw_align 51 "right" "top"
huddraw_rect 51 -90 50 100 100
huddraw_string 51 ("axis spawnpool = " + local.spawnpool_ax)
huddraw_color 51 1.0 0.0 0.0
huddraw_alpha 51 0.5
thread display_pool1
end
display_pool1:
huddraw_font 52 facfont-20
huddraw_align 52 "right" "top"
huddraw_rect 52 -90 -50 0 0
huddraw_string 52 ("allies spawnpool = " + local.spawnpool_al)
huddraw_color 52 0.0 1.0 0.0
huddraw_alpha 52 0.5
huddraw_font 53 facfont-20
huddraw_align 53 "right" "top"
huddraw_rect 53 -90 50 100 100
huddraw_string 53 ("axis spawnpool = " + local.spawnpool_ax)
huddraw_color 53 0.0 0.0 1.0
huddraw_alpha 53 0.5
end I don't get it to work, maybe I have to leave out the size:
But console didn't give me errors..so I'm a little confused, I also tried to wait some minutes ingame, to see if it's delayed but for nothing..huddraw_string <index> <string>
This sets the huddraw element to display a string instead of a shader graphic. The size
of the font can not be adjusted, but the color and alpha settings do affect the text.
The width and height parameters of huddraw_rect are only used for alignment centering,
Not for setting the size of the string.