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

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
SypherZent
Veteran
Posts: 362
Joined: Fri Sep 02, 2016 3:14 am
Completed: Multiverse Heroes, Space Hamster in Turmoil
Location: Puerto Rico
Contact:

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

#1 Post 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.
Last edited by SypherZent on Sat Jul 17, 2021 2:36 pm, edited 1 time in total.

User avatar
SypherZent
Veteran
Posts: 362
Joined: Fri Sep 02, 2016 3:14 am
Completed: Multiverse Heroes, Space Hamster in Turmoil
Location: Puerto Rico
Contact:

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

#2 Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users