Comments

Log in with itch.io to leave a comment.

Hello! so i have a question, what would I have to edit to make it so that certain text boxes show up with certain characters?
Like character A has a blue text box while character B has a green one for example?

I tried messing with this code

define B = Character("B", ctc = "ctc", what_prefix = "\"", what_suffix = "\"")

But kept getting an error

Hi! You should be able to use the "window" prefix, according to the documentation page (scroll down until you see "Styling text and windows"): https://www.renpy.org/doc/html/dialogue.html#Character

So, if you have a textbox2.png in your GUI folder for example, and you'd want B to use it, you'd do:

define B = Character("B", ctc = "ctc", what_prefix = "\"", what_suffix = "\"", window_background = "gui/textbox2.png")

You can apply your own style to this window by using "window_style", also mentioned in the same section of the documentation.