Add chapter select to screens

This commit is contained in:
Iggy 2024-08-19 20:21:23 -03:00
parent 3e9ea5ddbc
commit 17cdc25bb1

View file

@ -999,6 +999,7 @@ screen preferences():
style_prefix "check"
label _("Developer Tools")
textbutton _("Enable Debug Scores") action ToggleVariable("persistent.enable_debug_scores", True, False)
textbutton _("Enable Chapter Select") action ToggleVariable("persistent.enable_chapter_select", True, False)
if not main_menu:
if config.developer and persistent.enable_debug_scores:
@ -1280,12 +1281,13 @@ screen extrasnavigation():
vbox:
spacing 10
xpos 1885
ypos 1130
ypos (1269 if config.developer else 1130)
use main_menu_buttons("gui/button/menubuttons/template_idle.png",
[
[ _("Help"), ShowMenu("help") ],
[ _("About"), ShowMenu("about") ],
[ _("Gallery"), ShowMenu("cg_gallery") ],
*([(_("Chapter Select"), ShowMenu("label_selector"))] if persistent.enable_chapter_select else []),
[ _("Mods"), ShowMenu("mod_menu") ],
[ _("Return"), ShowMenu("main_menu") ]
] )