Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Ren'Py Gallery Framework

A (hopefully) easy way to add a CG gallery to your Ren'Py game · By bobcgames

Gallery background

A topic by geciko created Oct 18, 2023 Views: 131 Replies: 2
Viewing posts 1 to 2

Hey! 

Awesome Gallery, thank you very much for sharing! I followed the instructions and works very well!

I have one  problem, I trying to change the background of the Gallery menu for a day now, and I could not find a solution. I am pretty new to RenPy and Googled a lot about it, also checked the forums, but I could not figure it out.

Could you help me please where to look at it? 

I have an image called album (images/album.png) and I wanted to replace the background for that.

Have a nice day!

Developer

Hey!

So the gallery screen is a default renpy game menu, so this will depend a little on whether you've done customizations to the general menus

You can try this modification to the screen in step 8, but your background here will be underneath the default game menu background (configured as gui.game_menu_background) unless you've removed that background or otherwise changed game_menu already:

screen bobcgallery():
     tag menu
     default pagenum = 0
     add "album"
     use game_menu(_("Gallery"), scroll="viewport"):

The better way would probably be to modify game_menu itself.

1) Make this change to screen game_menu in screens.rpy:

screen game_menu(title, scroll=None, yinitial=0.0, bg=None):
    style_prefix "game_menu"
    if bg is not None:
        add bg
    elif main_menu:
        add gui.main_menu_background
    else:
        add gui.game_menu_background

2) Now update bobcgallery:

screen bobcgallery():
     tag menu
     default pagenum = 0
     use game_menu(_("Gallery"), scroll="viewport", bg="album"):

Thanks much, found the game_menu image that covered my background! Honestly I tought it was a hex color somewhere in the codes, but it turns out it was a one colored image.
I am so happy, thank you for the help!