View Single Post
Re: send debug to HUD text?
Old
  (#16)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: send debug to HUD text? - 04-03-2004

Actually you can only display 3 HUD texts at once (with different colors, different texts, at different locations). If you try to display more simultaneously, the oldest ones will disappear from the screen.

The maximum text length for a HUD text is 512 characters.

To display text like in the picture, I use 3 channels, left, right and center, and I compose the text by adding carriage returns when needed.

The X/Y values for the 3 channels are:
left: 0, 0
middle: -1, 0
right: 1, 0

Inside the WRITE_SHORT()'s of the message, this gives:
left: 0, 0
middle: -8192, 0
right 8192, 0



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote