diff options
Diffstat (limited to 'game/screens.rpy')
-rw-r--r-- | game/screens.rpy | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/game/screens.rpy b/game/screens.rpy index 9a3c5e6..e5507a5 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -407,6 +407,10 @@ screen navigation(): ## Help isn't necessary or relevant to mobile devices. textbutton _("Help") action ShowMenu("help") + if not (main_menu or story_mode or hud_interface): + if Player["quest"] >= 5: + textbutton _("Summons") action ShowMenu("sumconf") + if not renpy.ios and not renpy.emscripten: ## The quit button is banned on iOS and unnecessary on Android and @@ -725,6 +729,41 @@ style slot_button_text: properties gui.button_text_properties("slot_button") +## About screen ################################################################ +## +## This screen gives credit and copyright information about the game and Ren'Py. +## +## There's nothing special about this screen, and hence it also serves as an +## example of how to make a custom screen. + +screen sumconf(): + + tag menu + + ## This use statement includes the game_menu screen inside this one. The + ## vbox child is then included inside the viewport inside the game_menu + ## screen. + use game_menu(_("Configure Summon"), scroll="viewport"): + + style_prefix "about" + + vbox: + for i, e in enumerate(allsummons): + if i < Player["max_sum"]: + hbox: + if persistent.summon == i: + image "gui/up_on.png" + else: + button: + action SetVariable("persistent.summon", i) + add "gui/up_off.png" + label _(" %s" % e["name"]) + text _("%s" % e["desc"]) + null height 10 + + text _("\n[config.name!t] [config.version!t] [persistent.release_name!t]") + + ## Preferences screen ########################################################## ## ## The preferences screen allows the player to configure the game to better suit |