Code: Select all
screen notes_screen:
default journal_entry = "Index"
tag menu
use navigation
vbox:
xminimum 620
xmaximum 620
frame:
yminimum 593
ymaximum 593
style_group "pref"
has vbox
if journal_entry == "Index":
textbutton "Page 1" action SetScreenVariable("journal_entry", "page_1")
textbutton "Page 2" action SetScreenVariable("journal_entry", "page_2")
if journal_entry == "page_1":
label _("Hello World")
label _("I hate ye")
if journal_entry == "page_2":
label _("Page")
label _("Number two")
vbox:
xpos 607
xmaximum 140
frame:
style_group "pref"
has vbox
textbutton _("Index") action SetScreenVariable("journal_entry", "Index")

What I want is to make the textbuttons only appear if a variable is set to True, so they unlock with each ending. How can I do that?
(Also, is there a way to center the textbuttons inside the vbox?)
Thanks in advance