Change text-align & Add text notification for bonus chapters

This commit is contained in:
Nutbuster 2021-10-21 17:15:06 +11:00
parent 13ede41c41
commit 610718cb12
2 changed files with 19 additions and 1 deletions

View File

@ -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 ######################################################################

View File

@ -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.