Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: DiegoHolt on Wed 23/10/2024 18:58:34

Title: Change the dialog options color
Post by: DiegoHolt on Wed 23/10/2024 18:58:34
I know this is absolutely BASIC, but I can't seem to find where to do it.

I want to change the color of the text when you choose the dialog options, both the normal color and the mouse over color.

That's it, pretty simple right?  (roll)
Title: Re: Change the dialog options color
Post by: Khris on Wed 23/10/2024 19:22:32
You can do this in game_start to change the highlight color:
  game.dialog_options_highlight_color = Game.GetColorFromRGB(255, 255, 0); // bright yellow
To change the text color, simply change the player character's SpeechColor (in the editor).

(You can also use custom dialog rendering.)
Title: Re: Change the dialog options color
Post by: DiegoHolt on Wed 23/10/2024 21:07:42
I've just copied the code you gave me @Khris and pasted it in game_start but nothing changed.

Also, my character's speech color is white but the text in the options is (sort of) blue (I've never touched it so it has the thumbleweed template colors)

Any idea what's going on?
Title: Re: Change the dialog options color
Post by: Khris on Wed 23/10/2024 21:13:16
You neglected to mention you're using the Tumbleweed template, which uses a custom dialog GUI... ;)

Open Scripts -> Tumbleweed -> TemplateSettings -> Edit Script
Scroll down to lines 169 & 170
Title: Re: Change the dialog options color
Post by: DiegoHolt on Thu 24/10/2024 00:03:28
You sir, are a genius. I'm sorry I didn't say anything about Thumbleweed, I was hoping that my avatar would gave me away  :P

Thanks again, I promise from now on that I will inspect everything a little closer before asking such rookie questions.