Controllable Menu Font Colors

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Controllable Menu Font Colors

Re: Controllable Menu Font Colors

by Rachael » Sun May 19, 2019 12:29 pm

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

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

Re: Controllable Menu Font Colors

by Graf Zahl » Sun May 19, 2019 9:48 am

You can add color control codes into the text wherever you like. The color selection item itself does this.

Re: Controllable Menu Font Colors

by Enjay » Sun May 19, 2019 9:38 am

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.

Re: Controllable Menu Font Colors

by Major Cooke » Sun May 19, 2019 9:01 am

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.

Re: Controllable Menu Font Colors

by Enjay » Sun May 19, 2019 6:42 am

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.

Controllable Menu Font Colors

by Major Cooke » Sun May 19, 2019 6:12 am

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.

Top