Dark GDK / bitmap text class (great for menu's & stats displays) |
| Author | Message | ||
|
shiny
User ![]() Joined: Sat Jan 17th 2004 Location: Santa Monica |
I got a little fed up with seeing the standard monocolor default arial font in dark sdk so I created a class that displays text with a bitmap font. Naturaly you can edit the bitmap to look however you want making this quite a versitile and usefull class. At the moment its fairly limited in functionality but I'm sure someone will find it of use (I know I will). If you are interested in my posting of updates let me know as I'm probably going to expand it to include multiple lines of text, among other things. Enjoy! http://www.vtutorials.com/personal/bitmap_text.zip Note: let me know if my comments are too brief an explanation of how to use it and I'll write a quick tutorial. ![]() |
||
| Back to top |
|||
|
Erick G
Moderator ![]() Joined: Sat Oct 2nd 2004 Location: Texas, USA |
not bad at all where did you get that font ? Is it ok if I use it ? |
||
| Back to top |
|||
|
Mike Johnson
TGC Lead Developer ![]() Joined: Fri Sep 13th 2002 Location: United Kingdom |
I like it |
||
| Back to top |
|||
|
Lampton Worm
User Joined: Wed Sep 4th 2002 Location: United Kingdom |
Cool stuff |
||
| Back to top |
|||
|
shiny
User ![]() Joined: Sat Jan 17th 2004 Location: Santa Monica |
I'm almost done with the next version. : ). Major improvements include: >completely re-written to create "text boxes" rather than just single line text. >multiple line text with automatic wrapping >turn the text to static so it only takes up one sprite and repositions faster >text box is now scrollable >button commands (for using the text as a button) >borders / background options >text can be centered >many more commands! >major speed enhancements >includes many bitmap fonts! I'm also going to provide proper documentation this time. (how to set up & implement). Just a few hurdles left and I'll release it! - if I'm lucky, by the end of the week. ![]() |
||
| Back to top |
|||
|
scooby bloke
User Joined: Thu Nov 4th 2004 Location: Cyberspace |
Cool |
||
| Back to top |
|||
|
Cellbloc Studios
User Joined: Mon Mar 15th 2004 Location: Atlanta, GA |
Great work. I too am looking forwards to it. -This...is my boomstick! |
||
| Back to top |
|||
|
Google Ad
AdBot Joined: Aug 26th 2002 Location: Everywhere |
|||
| Back to top |
|||
|
Lampton Worm
User Joined: Wed Sep 4th 2002 Location: United Kingdom |
Hi, any updates? Cheers |
||
| Back to top |
|||
|
Lampton Worm
User Joined: Wed Sep 4th 2002 Location: United Kingdom |
Oh, btw, if you want to create bitmap fonts to use with this class, check this out: http://www.lmnopc.com/bitmapfontbuilder/ p.s. if anyone has any tips to get this working with more dynamic text, e.g. dbStr(dbScreenFPS()) let me know Cheers! |
||
| Back to top |
|||
|
shiny
User ![]() Joined: Sat Jan 17th 2004 Location: Santa Monica |
I ran into one annoying bug which delayed me into school time. Now I'm helishly busy. My primary db project is still running allong nicely though, and I'll be running into hurdles that will require me to perfect this class soon. Keep an eye out for an update, but I can't say exactly when it will be (damn, some of those logic errors take days to fix). Lampton - not sure exactly what your question is. Does the following not work? my_text.setText(dbScreenFPS()); Either way, the update will have documentation so it should be far easyer to make work : ). Sorry for the delay all! ![]() |
||
| Back to top |
|||
|
Lampton Worm
User Joined: Wed Sep 4th 2002 Location: United Kingdom |
Hi ya, @shiny, yup that works fine, but when the size of the fps string does down during the game (i.e. fps drops from 100 to 60) I seem to get a '0' in there where there should maybe be a blank. If I was at my dev machine I'd do a cut down Look forward to the update Cheers. |
||
| Back to top |
|||
|
Lampton Worm
User Joined: Wed Sep 4th 2002 Location: United Kingdom |
Hi, Just wondered if an updated version is still on the horizon? Cheers |
||
| Back to top |
|||
|
shiny
User ![]() Joined: Sat Jan 17th 2004 Location: Santa Monica |
I could release the alpha version, if you all promise not to be upset when something doesn't work as expected? ![]() |
||
| Back to top |
|||
|
scooby bloke
User Joined: Thu Nov 4th 2004 Location: Cyberspace |
That would be cool. We could always help to fix any problems found |
||
| Back to top |
|||
|
Unkelben
User Joined: Mon Feb 2nd 2004 Location: Montréal, Canada |
Any new developments here? I'd sure like to try a good replacement for the TT fonts, I often get some strange artifacts on some letters, not always the same ones and it varies from a computer to the other. I'd only need the center function to be added. Jonathan |
||
| Back to top |
|||
Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.
You may read it but not reply.
Forum Search
Enter a word or phrase to search our Forum for:
|
|





