Page 1 of 1

(SOLVED) How to change locked image text color in Gallery?

Posted: Sat Jul 17, 2021 1:46 pm
by SypherZent
This code is from renpy/common/00gallery.rpy:

Code: Select all

    screen _gallery:

        if locked:
            add "#000"
            text _("Image [index] of [count] locked.") align (0.5, 0.5)
        else:
            for d in displayables:
                add d
How do I change the color of this text that says "Image [index] of [count] locked"??
Currently, the text is showing up black, causing the entire screen to be black and it looks broken.

Note: I have no styles anywhere in the game causing text to be black, and I cannot find any settings to change this text style in gui.rpy.

Re: How to change locked image text color in Gallery?

Posted: Sat Jul 17, 2021 2:36 pm
by SypherZent
I found the color. It's shared with the in-game dialogue text: gui.text_color, which was near-black so it could hardly be seen in the gallery.

Why does the gallery use the same text color as the dialogue in game? Who knows.

Anyway, solved my own problem (again). Hope it helps someone else.