From 610718cb12697c4a2c0b44f374a28673805fd8d2 Mon Sep 17 00:00:00 2001 From: nutbuster Date: Thu, 21 Oct 2021 17:15:06 +1100 Subject: [PATCH] Change text-align & Add text notification for bonus chapters --- game/gui.rpy | 2 +- game/screens.rpy | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/game/gui.rpy b/game/gui.rpy index 78fcfe1..858ef3f 100644 --- a/game/gui.rpy +++ b/game/gui.rpy @@ -294,7 +294,7 @@ define gui.page_spacing = 0 define gui.slot_spacing = 15 ## The position of the main menu text. -define gui.main_menu_text_xalign = 1.0 +define gui.main_menu_text_xalign = 0.5 ## Frames ###################################################################### diff --git a/game/screens.rpy b/game/screens.rpy index 3712abd..9a1bfe9 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -463,6 +463,11 @@ screen main_menu_buttons(filename, label_functions): for l_f in label_functions: use main_menu_button(filename, l_f[0], l_f[1]) +transform bonus_notif: +#text_align 0.5 + pause 6.00 + easeout_cubic 0.65 alpha 0 + screen main_menu(): ## This ensures that any other menu screen is replaced. @@ -475,7 +480,20 @@ screen main_menu(): ## This empty frame darkens the main menu. frame: + #text "You have unlocked all bonus chapters!" pass + if persistent.old_endings != persistent.endings: + fixed: + xalign 0.125 + yalign 0.5 + xsize 1920/2 + ysize 1080/4 + add Solid(gui.accent_color) + at bonus_notif + if persistent.endings == 0b1111: + text "You have unlocked all bonus chapters!" style "main_menu_text" yalign 0.5 + else: + text "You have unlocked new bonus chapters, complete unseen endings to see more!" style "main_menu_text" yalign 0.5 ## The use statement includes another screen inside this one. The actual ## contents of the main menu are in the navigation screen.