Changing predefined colors for "print"/"hudmessage"

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Changing predefined colors for "print"/"hudmessage"

Postby Tormentor667 » Wed Apr 29, 2020 12:17 pm

I wonder is it possible to change the look of the predefined colors that can be accessed through "print" and "hudmessage"?
These colors are meant: https://zdoom.org/wiki/Print
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Changing predefined colors for "print"/"hudmessage"

Postby AFADoomer » Wed Apr 29, 2020 2:51 pm

The print colors use the colors defined in TEXTCOLORS... Just match the name to the color that you want to change and add that entry in your own TextColors.txt file; it'll override the default color definition when that color is used in your mod.

Example:
This turns everything that's supposed to be dark gray ("\cuSample text") to be blue instead.
Code: Select allExpand view
DarkGray
{
   #000027  #0000FF
Console:
   #000000  #00007F    0 127
   #4040FF  #DEDEFF  128 256
Flat:
   #9999FF
}
User avatar
AFADoomer
 
Joined: 15 Jul 2003

Re: Changing predefined colors for "print"/"hudmessage"

Postby Tormentor667 » Thu Apr 30, 2020 10:47 am

Perfect, thanks kindly AFA, that works well. I knew there was a feature like that somewhere ;)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany


Return to Assets (and other stuff)

Who is online

Users browsing this forum: No registered users and 1 guest