Page 1 of 1

Gallery unlocks screen.

Posted: Sun Sep 16, 2018 12:46 pm
by Minuteman
Hello, I have a question about gallery screen.
I want instead of opening a picture, show a another screen. (Sorry if this sounds dumb....)
( There is little of what I wanted to do )
g.button("01")
if persistent.01=="yes":
*show screen*
So if you unlock and press to this button, you will open a another screen.
This is possible in gallery statement?...

Re: Gallery unlocks screen.

Posted: Tue Sep 18, 2018 6:20 am
by Minuteman
Bump?.....

Re: Gallery unlocks screen.

Posted: Tue Sep 18, 2018 7:07 pm
by philat
Your question is impossibly broad. Yes, it's possible. No one's going to write it for you from scratch.

Re: Gallery unlocks screen.

Posted: Wed Sep 19, 2018 5:39 am
by Minuteman
philat wrote:
Tue Sep 18, 2018 7:07 pm
Your question is impossibly broad. Yes, it's possible. No one's going to write it for you from scratch.
I was not asking to "write from a scratch"
I just don't know which statement I should use for showing screen there.

Re: Gallery unlocks screen.

Posted: Wed Sep 19, 2018 7:43 am
by IrinaLazareva
in this case, it is much simpler to use screen's language instead of standard Gallery's function.

https://renpy.org/doc/html/screens.html ... -statement
https://renpy.org/doc/html/screens.html#grid
https://renpy.org/doc/html/screen_actions.html#ShowMenu
https://renpy.org/doc/html/screen_actions.html#If

the sketch:

Code: Select all

screen mgallery():
    tag gall
    #something....
    if persistent.endone:
        imagebutton idle 'img.png' action ShowMenu('gone')
    ##etc

screen gone():
    tag gall
    #whatever