![]() |
Re: send debug to HUD text?
(0, 0) is the top left corner ; (-1, -1) is the center of the screen. For the rest I don't know exactly...
|
Re: send debug to HUD text?
To post a reply to my own question, just in case ..
think of x, y instead of coordinates, as a tri-state variable on the horizontal, 1 'right-align' the text 0 'left-align' the text -1 'center' the text (horizontally) and for the vertical: 1 'bottom' align the text 0 'top-align' the text -1 'center' the text (vertically) thanks for the basis ! |
Re: send debug to HUD text?
|
Re: send debug to HUD text?
what are the x/y values for each of those lil areas you're out'ing to ?
or are you just out'ing to each of the 9 'points' and spacing out with carriage returns ? also, have you found a max limit on the string that can be passed down here? Thanks in advance for any info ! :) |
Re: send debug to HUD text?
I just tried some values with a console command with my texts....and the limit for each frame is 512 bytes I think. Sometimes I had more and a msg box poped up saying that the text message was overflowed before it had end :)
|
Re: send debug to HUD text?
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 |
All times are GMT +2. The time now is 03:37. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.