I'm working on a codex for my VN, and what I'm aiming for is for new 'topics' to only be visible after new information has been learned by the player. I'm aware that you can make the topic unclickable, but I don't want most of the topics to be visible to read until they have come across the information, as it would spoil a lot of the game.
What I currently have is this:
Code: Select all
screen codexmain:
tag menu
frame:
xmaximum 1600
ymaximum 900
xalign .5
yalign .5
textbutton _("Back") action Return() xalign 1.0
fixed:
hbox:
xsize 300
ysize 838
ypos 50
frame:
xsize 300
ysize 838
vbox:
text "{size=60}{b}{color=9A0AF5}TOPICS{/color}{/b}{/size}"
viewport:
scrollbars "vertical"
mousewheel True
vbox:
textbutton _("You"):
action If(you_codex<>0, [ShowMenu('codexmain'), SetVariable('you_codex', 1), ShowMenu('you_desc')], None)
textbutton _("Home"):
action If(home_codex<>0, [ShowMenu('codexmain'), SetVariable('home_codex', 1), ShowMenu('home_desc')], None)
frame:
xsize 1288
ysize 838
vbox:
xsize 1276
ysize 826
text _("{color=9A0AF5}DESCRIPTION{/color}")
viewport:
scrollbars "vertical"
mousewheel True
vbox:
transclude
style codexmain_label is gui_label
style codexmain_label_text is gui_label_text
style codexmain_text is gui_text
style codexmain_textbutton:
font "hurtm.ttf"
style codexmain_label_text:
size gui.label_text_size
screen you_desc:
tag menu
use codexmain:
if you_codex == 0:
text ""
elif you_codex == 1:
text "blablabla"
screen home_desc:
tag menu
use codexmain:
if home_codex == 0:
text ""
elif home_codex == 1:
text "blablabla"