vloup / sgfork

Automatically exported from code.google.com/p/sgfork
GNU General Public License v2.0
0 stars 1 forks source link

New CG/UI_DrawText function and possibility to add own fonts #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Overall description of the new feature:
There is only one font (with three different sizes) in CG assets.
It is possible to make there more user-defined fonts to use each in 
different HUD&UI stuff.
SG already has own system for drawing numbers - that one is to be removed 
and new flexible font&draw string functions to be created.

To replace with new function most of current text drawings.
(Possibly just to replace current CG_drawString())

In HUD.menu it should looks like:
itemDef {
...
font "myFont1"
...
}

Variables to control the new feature:
via HUD&UI files

Functions to look at:
CG_Text_Paint()
CG_OwnerDraw()

Original issue reported on code.google.com by igorpana...@gmail.com on 11 Sep 2009 at 1:57