I figured I could place the ending list in the image gallery I have under a tab named "Others" or "Extras".
My problem is, I don't know how to actually code the screen for it.
This is part of the code to my gallery:
Code: Select all
screen gallery_b():
default cg_page_b = 1
zorder 100
tag menu
hbox:
style_prefix "gallery_stuff"
## Our buttons for the pages of Character B's Gallery section.
textbutton _("1") action SetLocalVariable("cg_page_b", 1)
textbutton _("2") action SetLocalVariable("cg_page_b", 2)
showif cg_page_b == 1:
grid 2 2:
style_prefix "gallery_stuff"
## Replace one null with one button created according to this structure:
## add g.make_button("CG_Button_Name", "path/Unlocked_Thumbnail.png", "path/Locked_Thumbnail.png")
add g.make_button("CG7_Button", "images/char1cgthumb.png", "images/thumbnail_locked.png")
add g.make_button("CG8_Button", "images/char2cgthumb.png", "images/thumbnail_locked.png")
add g.make_button("CG9_Button", "images/char3cgthumb.png", "images/thumbnail_locked.png")
add g.make_button("CG10_Button", "images/char4cgthumb.png", "images/thumbnail_locked.png")
elif cg_page_b == 2:
grid 2 2:
style_prefix "gallery_stuff"
## Replace one null with one button created according to this structure:
## add g.make_button("CG_Button_Name", "path/Unlocked_Thumbnail.png", "path/Locked_Thumbnail.png")
add g.make_button("CG11_Button", "images/char5cgthumb.png", "images/thumbnail_locked.png")
add g.make_button("CG12_Button", "images/char6cgthumb.png", "images/thumbnail_locked.png")
null
null
Here is an example of what I'm trying to code.
How would I achieve this type of screen exactly? Would it be easy to allow players to replay these endings when they click on them in the gallery screen? I'm assuming the code would go into the screens.rpy as well.