Controllable Menu Font Colors

Moderator: GZDoom Developers

Post Reply
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Controllable Menu Font Colors

Post by Major Cooke »

Since I no longer have any ideas on how to control the menu font itself, I have to ask if we can have some means of controlling the font colors. Because this with D4D is quite annoying. It's very difficult to make out some of the letters at times honestly.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Controllable Menu Font Colors

Post by Enjay »

You can define menu colours in MENUDEF if that's of any use to you.

Image

And you can use colours defined in the textcolors lump, so yu can set up your own centre/border combinations etc.
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Controllable Menu Font Colors

Post by Major Cooke »

Can you show me how?

While that'll be nice for putting in my mods, old mods that are out of date is where the concern comes into play and that means people would have to go in and modify them.

It's also not listed in MENUDEF on the wiki.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Controllable Menu Font Colors

Post by Enjay »

Actually, I mis-spoke, it's a combination of effects.

The yellow text above was created with:

Code: Select all

StaticTextSwitchable 	"ENTER to change, BACKSPACE to clear", "Press new key for control, ESC to cancel", "ControlMessage", "NJMYellow"
(NJMYellow is defined in textcolors.txt)

But it's actually the gameinfo section of MAPINFO that is used for the rest:

e.g.

Code: Select all

	menufontcolor_title = "Untranslated"  	//Title text right at the top
	menufontcolor_label = "NJMBlue"       	//Most menu entries
	menufontcolor_value = "NJMLtGrey"     	//Options like Yes, No, Doom-Like etc
	menufontcolor_action = "NJMTeal"	//The main menu choices for sub-menus
	menufontcolor_header = "Purple"		//Dunno! - I think I maybe over-rode this in MENUDEF
	menufontcolor_highlight = "NJMRed"	//Selected and waiting for input (e.g. key customisation) 
	menufontcolor_selection = "NJMOrange"   //Selection colour for most menu items
	MenuSliderColor = "NJMOrange"		//The option slider buttons 
The comments in the above code are my interpretation of what refers to what, so may nt be fully accurate.

So, given that it is mostly MAPINFO stuff, it's more mod-friendly than I first thought.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Controllable Menu Font Colors

Post by Graf Zahl »

You can add color control codes into the text wherever you like. The color selection item itself does this.
User avatar
Rachael
Posts: 13558
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Controllable Menu Font Colors

Post by Rachael »

https://zdoom.org/wiki/MAPINFO/GameInfo_definition

@Cooke: Look up the "menufontcolor" entries here.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”