[Not needed] Controllable Menu Font Colors

Moderator: GZDoom Developers

Controllable Menu Font Colors

Postby Major Cooke » Sun May 19, 2019 7: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.
User avatar
Major Cooke
Do unto others as you would have unto you. Judge yourself first.
 
Joined: 28 Jan 2007

Re: Controllable Menu Font Colors

Postby Enjay » Sun May 19, 2019 7: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.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Controllable Menu Font Colors

Postby Major Cooke » Sun May 19, 2019 10: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.
User avatar
Major Cooke
Do unto others as you would have unto you. Judge yourself first.
 
Joined: 28 Jan 2007

Re: Controllable Menu Font Colors

Postby Enjay » Sun May 19, 2019 10:38 am

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

The yellow text above was created with:

Code: Select allExpand view
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 allExpand view
   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
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Controllable Menu Font Colors

Postby Graf Zahl » Sun May 19, 2019 10:48 am

You can add color control codes into the text wherever you like. The color selection item itself does this.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Controllable Menu Font Colors

Postby Rachael » Sun May 19, 2019 1:29 pm

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

@Cooke: Look up the "menufontcolor" entries here.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Graphics Processor: nVidia with Vulkan support


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest