Change the dialog options color

Started by DiegoHolt, Wed 23/10/2024 18:58:34

Previous topic - Next topic

DiegoHolt

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)

Khris

You can do this in game_start to change the highlight color:
Code: ags
  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.)

DiegoHolt

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?

Khris

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

DiegoHolt

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.

SMF spam blocked by CleanTalk