[crossfire] Shortening experience bar for GTK2 client

Kevin Zheng kevinz5000 at gmail.com
Tue Sep 18 20:27:55 CDT 2012


Greetings,

I've written a patch that lets the client use two suffixes (K and M) to 
represent large experience numbers. The current implementation uses the 
suffixes only when there are at least 3 significant digits.

For instance, instead of showing 30,000 as "30K" it shows it as "30000". 
300,000 now shows up as "300K" instead.

This method seems to involve the least amount of work, as doing a percent 
meter or the like will probably require some client layout changes. Ideas?

(patch also changes to symbolic names for update_stat(), i.e. STAT_BAR_HP)

Sincerely,
Kevin Zheng
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-stats.diff
Type: text/x-patch
Size: 2592 bytes
Desc: not available
URL: <http://mailman.metalforge.org/pipermail/crossfire/attachments/20120918/63924b1b/attachment.bin>


More information about the crossfire mailing list