Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Simple Text Formatting Function...

Author
Message
LordDario
21
Years of Service
User Offline
Joined: 26th Apr 2003
Location:
Posted: 4th Jun 2005 05:38 Edited at: 4th Jun 2005 05:40
I created a very simple text formatting function which will allow you to change a texts color, font and size all in one line. How useful do you guys think this is?

TextFormatting(150,0,0,"Bard",20) : Text 300,10,"Text Formatting"

Function TextFormatting(r,g,b,fontstyle$,textsize)
Ink Rgb(r,g,b),0
Set Text Font fontstyle$
Set Text Size textsize
EndFunction
NanoBrain
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 4th Jun 2005 06:05
LordDario,

It can be useful. Depends on if the program requires a great deal of text formatting throughout it.


+NanoBrain+
LordDario
21
Years of Service
User Offline
Joined: 26th Apr 2003
Location:
Posted: 4th Jun 2005 06:08
yeah i was actually doing it to help out a friend. He had a million lines of code filled with just changing text color, size and style, so i figured why not just do it all at once
NanoBrain
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 5th Jun 2005 05:00
LordDario,

It will definantly save him from having to type as many characters.


+NanoBrain+
Cloggy
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 7th Jun 2005 07:08
Lord Dario,

Have a look at my plugin

http://forum.thegamecreators.com/?m=forum_view&t=52852&b=18

The text commands are much faster than those supplied with DBP.

Won't save the typing but will improve the fps.

Cheers,

Cloggy

Login to post a reply

Server time is: 2024-09-23 21:17:12
Your offset time is: 2024-09-23 21:17:12