- Aug 4, 2020
- 925
- 1,459
Hello, here I come back with another little problem.
In the game I am developing I want a photo book to appear.
In principle, until there is no photo in the game, I want that the option to call the photo album is neither in the main menu nor in the quick menu.
For this I have defined the variable "show_photos".
In gui.rpy I have defined the variable:
In screens.rpy in main menu I have added the option like this:
And in Quick menu I have put this (the quick menu is graphic):
In the game code I release the Photo Book with:
If I go back to the main menu the option to view the Photo Book is available, but in the Quick Menu there is no change, the new button does not appear.
Is there any way to fix this, what am I doing wrong?
In the game I am developing I want a photo book to appear.
In principle, until there is no photo in the game, I want that the option to call the photo album is neither in the main menu nor in the quick menu.
For this I have defined the variable "show_photos".
In gui.rpy I have defined the variable:
Code:
define show_photos = False
Code:
...
textbutton _("Load") action ShowMenu("load")
textbutton _("Options") action ShowMenu("preferences")
if show_photos:
textbutton _("Photo Book") action ShowMenu("album_fotos")
if _in_replay:
textbutton _("En Replay") action EndReplay(confirm=True)
...
Code:
...
imagebutton:
idle "gui/textbox/Hide.png"
hover "gui/textbox/HideHover.png"
action HideInterface()
tooltip "Hide UI."
if show_photos:
imagebutton:
idle "gui/textbox/Album.png"
hover "gui/textbox/AlbumHover.png"
action ShowMenu('photo_book)
tooltip "Photo Book."
imagebutton:
idle "gui/textbox/Quit.png"
hover "gui/textbox/QuitHover.png"
action Quit(confirm=False)
tooltip "Quit."
..
Code:
scene raquel_photo2
$ show_photos = True
$ renpy.restart_interaction()
scene raquel_photo3
com "The Photo Book is now available."
Is there any way to fix this, what am I doing wrong?