Add fade for say boxes in interface context

This commit is contained in:
LoafyLemon 2024-11-06 21:25:47 +00:00
parent f2d96c8813
commit 481270faaf
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ transform gui_modal_popup:
on hide: on hide:
easeout_back 0.4 zoom 0.0 alpha 0.0 easeout_back 0.4 zoom 0.0 alpha 0.0
image gui_fade_bottom = Frame(Image("gui/creamy_pumpkin_pie/fade_bottom.png", oversample=4), ysize=150, yalign=1.0)
image gui_fade_both = Fixed(Frame(Image("gui/creamy_pumpkin_pie/fade_top.png", oversample=4)), Frame(Image("gui/creamy_pumpkin_pie/fade_bottom.png", oversample=4))) image gui_fade_both = Fixed(Frame(Image("gui/creamy_pumpkin_pie/fade_top.png", oversample=4)), Frame(Image("gui/creamy_pumpkin_pie/fade_bottom.png", oversample=4)))
style frame is empty: style frame is empty:

View File

@ -30,6 +30,7 @@ screen say(who, what, side_doll=None, side_image=None, icon=None):
if not is_game_menu(): if not is_game_menu():
# Allows dialogues to function inside interface elements # Allows dialogues to function inside interface elements
# add "gui_fade_bottom"
use invisible_button(Return(), keysym="dismiss") use invisible_button(Return(), keysym="dismiss")
if states.settings.interface_hidden: if states.settings.interface_hidden: