Forum

Coloured Text?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Coloured Text?

Postby jim » Thu May 29, 2008 5:23 pm

Is it possible to print a message with some other colour than white? Like this: You got an Automatic Needle SMG with Poison Needles
zbang!
User avatar
jim
 
Posts: 599
Joined: Fri Aug 05, 2005 2:35 pm
Location: In The Sun

Postby Spike » Thu May 29, 2008 6:03 pm

^1like ^2this ^3in ^4darkplaces ^5or ^6fte.


alternativly in any engine (charset willing), you can add 128 to every char's value to get it in red (hex editor?).
(in fteqcc you can use \s to set the rest of that string to be red)
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby jim » Thu May 29, 2008 7:18 pm

Thanks, I think the ^# number method is better. Looks like it's just 10 colours? Just good, I don't have to try out hundreds of numbers to find out what's the correct...

Here's a list of them:
^1 = red
^2 = green
^3 = yellow
^4 = blue
^5 = turquise
^6 = purple
^7 = white
^8 = light grey
^9 = dark grey
^0 = black
zbang!
User avatar
jim
 
Posts: 599
Joined: Fri Aug 05, 2005 2:35 pm
Location: In The Sun

Postby Stealth Kill » Fri May 30, 2008 9:59 pm

is it possible to make in a standard gl quake engine blue and red text without modifing the conchars?
Stealth Kill
 
Posts: 83
Joined: Fri Dec 29, 2006 12:34 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest