[SOLVED] How to apply a different bg for history menu?

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
alexei
Regular
Posts: 137
Joined: Mon Sep 09, 2019 10:31 am
Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
Organization: Funigami
itch: funigami
Discord: alexei#5190
Contact:

[SOLVED] How to apply a different bg for history menu?

#1 Post by alexei »

I want for the history menu to:

-have a different background.
-Remove all navigation menu other than return.

I know I should implement them in history screen, but the entire process is unknown to me. Can you guide me through the process?
Last edited by alexei on Mon Sep 13, 2021 3:10 am, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: How to apply a different bg for history menu?

#2 Post by rayminator »

you do it like this

find:

Code: Select all

tag menu
and replace it with:

Code: Select all

add "gui/your_bg.png"
find:

Code: Select all

use game_menu(_("History"), scroll=("vpgrid" if gui.history_height else "viewport"), yinitial=1.0):
and replace with:

Code: Select all

vpgrid:
        cols 1
        spacing 5
        draggable True
        mousewheel True
        #scrollbars "vertical"
there will be other thing you will need to do this is what it will like after that change
screenshot0019.png

alexei
Regular
Posts: 137
Joined: Mon Sep 09, 2019 10:31 am
Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
Organization: Funigami
itch: funigami
Discord: alexei#5190
Contact:

Re: How to apply a different bg for history menu?

#3 Post by alexei »

rayminator wrote: Sun Sep 12, 2021 5:44 pm you do it like this

find:

Code: Select all

tag menu
and replace it with:

Code: Select all

add "gui/your_bg.png"
find:

Code: Select all

use game_menu(_("History"), scroll=("vpgrid" if gui.history_height else "viewport"), yinitial=1.0):
and replace with:

Code: Select all

vpgrid:
        cols 1
        spacing 5
        draggable True
        mousewheel True
        #scrollbars "vertical"
there will be other thing you will need to do this is what it will like after that change
screenshot0019.png
Thanks for the prompt reply dude! I'll check it out. Thanks for your help!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]