Overall description of the new feature:
Each text or picture with text can be draw with align vertical or
horizontal inside the region set by x,y,h,w.
This align to be added to HUD files:
itemDef {
...
align <value>
...
}
The value possible to make via bit flags:
0x00000001 - left
0x00000002 - right
0x00000004 - top
0x00000008 - bottom
If both left + right are set then horizontally the text is aligned on
center.
If both top + bottom are set then vertically the text is aligned on center.
Also this value will be used to determine where the next lines will be
printed.
For example, if it chat and it has the bottom flag, then all next lines
will be printed above previous.
The same with other not constant HUD stuff.
(It can be made in different than this issue - this one is only to get
possibility to set these flags and get them in CG_OwnerDraw())
Variables to control the new feature:
via HUD files.
Original issue reported on code.google.com by igorpana...@gmail.com on 11 Sep 2009 at 2:11
Original issue reported on code.google.com by
igorpana...@gmail.com
on 11 Sep 2009 at 2:11