Location of "Settings Bar" color?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom 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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Tormentor667
Posts: 13483
Joined: Wed Jul 16, 2003 3:52 am

Location of "Settings Bar" color?

Post by Tormentor667 »

Dear ZDoomers, as I didn't find the right place on my own, I wonder if someone knows where the color of the translation for the settings bars are defined. Check the screenshots, they seem to use the color definition "White" for their translation as I changed that one through the TextColors lump. But where are they defined as "White"? Thanks already in return.
You do not have the required permissions to view the files attached to this post.
User avatar
Rachael
Posts: 13368
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Location of "Settings Bar" color?

Post by Rachael »

In GZDoom.pk3 they are defined in the file "x11r6rgb.txt"
User avatar
Tormentor667
Posts: 13483
Joined: Wed Jul 16, 2003 3:52 am

Re: Location of "Settings Bar" color?

Post by Tormentor667 »

So can this be changed to a custom color by a mod?
User avatar
Rachael
Posts: 13368
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Location of "Settings Bar" color?

Post by Rachael »

Oh, I misunderstood what you mean, sorry.

They are defined in the actual player pawn.

Using DoomPlayer as an example, here's where the translation range is defined:

https://github.com/coelckers/gzdoom/blo ... yer.zs#L29

And here's the pre-made translations:

https://github.com/coelckers/gzdoom/blo ... zs#L29-L38
User avatar
phantombeta
Posts: 2062
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Location of "Settings Bar" color?

Post by phantombeta »

I'm fairly sure what Torm wants is to change the colour of the slider bar, not of the playerpawn.
User avatar
Tormentor667
Posts: 13483
Joined: Wed Jul 16, 2003 3:52 am

Re: Location of "Settings Bar" color?

Post by Tormentor667 »

phantombeta wrote:I'm fairly sure what Torm wants is to change the colour of the slider bar, not of the playerpawn.
Exactly :)
User avatar
Rachael
Posts: 13368
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Location of "Settings Bar" color?

Post by Rachael »

It cannot be done easily. The sliders are drawn (I think) here:

https://github.com/coelckers/gzdoom/blo ... #L769-L770

Since this is hard coded, it likely would require either remaking the entire function (not recommended) or changing the CR_WHITE in TextColors.txt:

https://github.com/coelckers/gzdoom/blo ... t#L91-L101

The latter may have unintended consequences, changing the color of a lot more text than just the sliders.

What I would recommend is a feature suggestion.
User avatar
Enjay
 
 
Posts: 26476
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Location of "Settings Bar" color?

Post by Enjay »

According to the Wiki, this mapinfo [wiki]GameInfo_definition[/wiki] option exists:
MenuSliderColor = "<color>"
Does that do what is being asked about?
User avatar
Tormentor667
Posts: 13483
Joined: Wed Jul 16, 2003 3:52 am

Re: Location of "Settings Bar" color?

Post by Tormentor667 »

Enjay wrote:According to the Wiki, this mapinfo [wiki]GameInfo_definition[/wiki] option exists:
MenuSliderColor = "<color>"
Does that do what is being asked about?
Unfortunately not, that's the slider controller itself, not the border around it.

Return to “Scripting”