I'm making a bonus section where bonus stories are unlocked upon completing a best end of a char. I set up the screen to have a line of image buttons on the side, in which, if the endings have not been seen, it'll be showing a ??? image. If it's unlocked, it'll show the name of the character that has been unlocked.
This is my code so far:
Code: Select all
screen Extras:
# This ensures that any other menu screen is replaced.
tag menu
add "UI/Extras BG.png"
if persistent.Char1End is True:
imagebutton auto "UI/Extras Char1_%s.png" action NullAction() xalign 0.025 yalign 0.2 focus_mask True
else:
imagebutton auto "UI/Extras locked button_%s.png" action NullAction() xalign 0.025 yalign 0.2 focus_mask True
if persistent.Char2End is True:
imagebutton auto "UI/Extras Char2_%s.png" action NullAction() xalign 0.025 yalign 0.2 focus_mask True
else:
imagebutton auto "UI/Extras locked button_%s.png" action NullAction() xalign 0.025 yalign 0.2 focus_mask True