I'm fairly new here, and new to Ren'py.
Code: Select all
screen screen_chronicle():
tag menu
use game_menu(_("Chronicle"), scroll="viewport"):
style_prefix "Chronicle"
default screen_chronicle_index = "Player"
default screen_player_inventory_index = 0
fixed:
frame:
hbox:
null width 16
textbutton _("Player") action SetScreenVariable("screen_chronicle_index", "Player")
null width 16
textbutton _("Chronology") action SetScreenVariable("screen_chronicle_index", "Chronology")
null width 16
textbutton _("Item") action SetScreenVariable("screen_chronicle_index", "Item")
null width 16
textbutton _("Character") action SetScreenVariable("screen_chronicle_index", "Character")
null width 16
textbutton _("World") action SetScreenVariable("screen_chronicle_index", "World")
null width 16
textbutton _("Information") action SetScreenVariable("screen_chronicle_index", "Information")
I want it to remember the navigation, for example; if I selected Character, exit the menu, then come back, it will stay in Character sub-menu.
But I have no idea how to do that. No matter what I tried, it just won't work. I'm slamming my head hard here.
If it works, one of those textbuttons should highlight as selected, but it didn't.
Edit: Additionally, I also want that kind of effect for the Game Menu when I press Escape. How do I achieve that as well?
Thanks, awaiting reply.