Server list ranking.
#18
The menu items are constructed using strings such as
"\fs\f%c%d\t\fs\f%c%d/%d\fr\t\a%c  "
in both the current code and my patch.

These strings are (eventually) passed to vsnprintf, and then the length of each field is equalized and padded a constant amount on the right by a special text rendering function. The field separator is just the \t character you see repeated. It doesn't take any flags or precision specifiers etc.

The %s conversion specifiers can take a precision (length) specifier, which I use on the map name field (%.12s) to limit the number of characters. However, neither the fixed amount of padding that is appended to the right (after the field has been equalized), nor the width of the field in pixels can be specified (without changing the functions in render_text.cpp, which I know better than to touch :P ).
Thanks given by:


Messages In This Thread
Server list ranking. - by ExodusS - 11 Jan 12, 06:34PM
RE: Server list ranking. - by Jason - 11 Jan 12, 07:10PM
RE: Server list ranking. - by DES|Anderson - 11 Jan 12, 07:40PM
RE: Server list ranking. - by MasterKaen - 11 Jan 12, 10:56PM
RE: Server list ranking. - by Marti - 11 Jan 12, 10:58PM
RE: Server list ranking. - by sgt.d - 12 Jan 12, 12:07AM
RE: Server list ranking. - by MasterKaen - 12 Jan 12, 12:12AM
RE: Server list ranking. - by Aekom - 12 Jan 12, 12:29AM
RE: Server list ranking. - by Ronald_Reagan - 12 Jan 12, 01:34AM
RE: Server list ranking. - by ExodusS - 12 Jan 12, 01:14PM
RE: Server list ranking. - by MasterKaen - 12 Jan 12, 07:04PM
RE: Server list ranking. - by ExodusS - 12 Jan 12, 07:28PM
RE: Server list ranking. - by MykeGregory - 12 Jan 12, 08:09PM
RE: Server list ranking. - by Reedie-oH - 12 Jan 12, 07:34PM
RE: Server list ranking. - by Felix-The-Ghost - 12 Jan 12, 08:09PM
RE: Server list ranking. - by MasterKaen - 12 Jan 12, 08:33PM
RE: Server list ranking. - by Felix-The-Ghost - 12 Jan 12, 09:08PM
RE: Server list ranking. - by MasterKaen - 12 Jan 12, 10:17PM
RE: Server list ranking. - by ExodusS - 12 Jan 12, 10:54PM
RE: Server list ranking. - by Versace - 13 Jan 12, 10:13AM
RE: Server list ranking. - by ExodusS - 13 Jan 12, 08:22PM
RE: Server list ranking. - by Andrez - 13 Jan 12, 08:51PM